- Edited
Hello,
I'm having some troubles building the latest kernel for Pixel 6A ( Bluejay ) . I'm experienced with AOSP and the Linux kernel, I'd like to contribute to GrapheneOS development, but this is stopping me. If anyone could give some advice I'd be very grateful.
I'm following the official steps at https://grapheneos.org/build#kernel-6th-generation-pixels . I'm building from a new terminal with clean env, using Ubuntu 22.04 LTS with both binutils and libgcc-12-dev installed. It builds out/mixed/dist/Image.lz4 , but then it fails. I'm using the command "LTO=full BUILD_AOSP_KERNEL=1 ./build_bluejay.sh" to build the kernel.
The error it's failing on :
ERROR: modpost: "__invalid_creds" [drivers/soc/google/vh/kernel/sched/vh_sched.ko] undefined!
ERROR: modpost: "creds_are_invalid" [drivers/soc/google/vh/kernel/sched/vh_sched.ko] undefined!
make[2]: *** [/storage/kernel/bluejay/private/gs-google/scripts/Makefile.modpost:152: modules-only.symvers] Error 1
make[2]: *** Deleting file 'modules-only.symvers'
make[1]: *** [/storage/kernel/bluejay/private/gs-google/Makefile:1496: modules] Error 2
make: *** [/storage/kernel/bluejay/private/gs-google/Makefile:185: __sub-make] Error 2
ERROR: Failed to compile device kernel: retval=2
ERROR: Failed to create mixed build: retval=2