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

Compile error after removing the KERNEL_DIR #9

Open
ztmzzz opened this issue Feb 11, 2025 · 0 comments
Open

Compile error after removing the KERNEL_DIR #9

ztmzzz opened this issue Feb 11, 2025 · 0 comments

Comments

@ztmzzz
Copy link

ztmzzz commented Feb 11, 2025

I am building the Pixel 8 Pro ROM and encountered an issue in the scripts/3_build_rom.sh script. The relevant section of the script is:

KERNEL_DIR=$(ls "device/google/${DEVICE_GROUP}-kernels/${KERNEL_VERSION}" | grep -v '.git')
rm -rf "device/google/${DEVICE_GROUP}-kernels/${KERNEL_VERSION}/${KERNEL_DIR}/*"
cp -Rfv ../kernel_out/* "device/google/${DEVICE_GROUP}-kernels/${KERNEL_VERSION}/${KERNEL_DIR}/"

If I completely remove the contents of the KERNEL_DIR folder, the build process fails with the error: missing drm/samsung_drm.h
However, if I copy the contents of kernel_out into KERNEL_DIR without deleting the existing files, the build works fine. It seems that KERNEL_DIR contains some essential files that are not present in kernel_out.
I think the rm command can be removed.

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

1 participant