My AOSP building steps are as follows
mkdir AOSP_ROOT && cd AOSP_ROOTrepo init -u ``https://android.googlesource.com/platform/manifest`` -b android-12.1.0_r12repo syncdownload google_devices-bluejay-sd2a.220601.001.a1-0145bbe6.tgz copy it to AOSP_ROOT/unzip google_devices-bluejay-sd2a.220601.001.a1-0145bbe6.tgzrun extract-google_devices-bluejay.shsource build/envsetup.shlunch aosp_bluejay-userdebugmake updatepackage -j16
i flashed the zip image with following command
fastboot -w update out/target/product/bluejay/aosp_bluejay-img-eng.host.zip
Kernel building steps are as follows
mkdir KERNEL_ROOT && cd KERNEL_ROOTrepo init uhttps://android.googlesource.com/kernel/manifest-b android-gs-bluejay-5.10-android12L-d2repo syncBUILD_CONFIG=private/devices/google/bluejay/build.config.bluejay build/build.sh
with above commands i got Image.lz4 in the path out/android-gs-pixel-5.10/dist i tried to flash the Image.lz4 with command
fastboot boot out/android-gs-pixel-5.10/dist/Image.lz4
then also the device is not booted then i tried to flash the boot.img with the following command
fastboot flash boot out/android-gs-pixel-5.10/dist/boot.img
now the device is stuck at google logo it is not booting. I have also try to copy all files in
KERNEL_ROOT/out/android-gs-pixel-5.10/dist to AOSP_ROOT/device/google/bluejay-kernel and export TARGET_PREBUILT_KERNEL=/KERNEL_ROOT/out/android-gs-pixel-5.10/dist/Image.lz4 and then go to the android folder to make bootimage. The Pixel 6a still couldn't boot up after that. hoping for your help regard this!!
i developed android custom kernel for pixel 6a according to the official documention provided by google
and i embedded kernel images onto the aosp still it is not working
From what I remember, AOSP no longer does kernel builds during the full OS compilation but supports prebuilts. But since you do want to modify that and add your own custom changes in the kernel source, I came across these sets of patches to allow custom kernel builds for gs101 when applied to LineageOS (AOSP fork)
https://review.lineageos.org/q/topic:gs101-inline-kernel