Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Newer kernels break dpkg-buildpackage #3

Open
groundsada opened this issue Aug 1, 2023 · 3 comments
Open

Newer kernels break dpkg-buildpackage #3

groundsada opened this issue Aug 1, 2023 · 3 comments

Comments

@groundsada
Copy link

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
Copy link
Author

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
Copy link

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
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants