benbaker76 / linux-acs-override

25 stars 5 forks source link

Newer kernels break `dpkg-buildpackage` #3

Open groundsada opened 1 year ago

groundsada commented 1 year ago

If you are running a newer kernel than the one you are trying to patch, you will get:

dpkg-buildpackage: error: debian/rules build subprocess returned exit status 2

Please use make oldconfig

groundsada commented 1 year ago

This fixed it:

# Navigate to the linux source directory (mine is at the root dir)
cd /linux

# start the editable menuconfig UI
make menuconfig

# Navigate to: 
# Cryptographic API
#    > Certificates for signature checking
#       > X.509 certificates to be preloaded into the system blacklist keyring
# Change the 'debian/certs/debian-uefi-certs.pem' string to ''

# Save your .config and exit the menuconfig UI

Credit: https://stackoverflow.com/questions/67530734/no-rule-to-make-target-when-compiling-linux-kernel-when-needed-by-certs-x509-cer

Zhaodaidai commented 5 months ago

I used make oldconfig to replace the ones in sh,and Change the 'debian/certs/debian-uefi-certs.pem' string to '' ,but still reporting an error

groundsada commented 5 months ago

I used make oldconfig to replace the ones in sh,and Change the 'debian/certs/debian-uefi-certs.pem' string to '' ,but still reporting an error

If you'd like, I forked the repo, applied a fix and built the kernels: https://github.com/groundsada/linux-acs-override