[Xperia Z3 Compact General] m0d:
I tried following the guide but it does not seem to work for me:

Export includes file: vendor/sony/system/mkqcdtbootimg/Android.mk -- out/host/linux-x86/obj32/EXECUTABLES/mkqcdtbootimg_intermediates/export_includes
host Executable: mkqcdtbootimg (out/host/linux-x86/obj32/EXECUTABLES/mkqcdtbootimg_intermediates/mkqcdtbootimg)
Notice file: system/core/libmincrypt/NOTICE -- out/host/linux-x86/obj/NOTICE_FILES/src//lib/libmincrypt.a.txt
Install: out/host/linux-x86/bin/mkqcdtbootimg
Target ram disk: out/target/product/aries/ramdisk.img
make: *** No rule to make target `prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.8/lib32/kernel', needed by `out/target/product/aries/kernel'. Stop.

The kernel is not copied to out folder, even though I have

# Try to build the kernel

TARGET_KERNEL_SOURCE := kernel/sony

TARGET_KERNEL_CONFIG := kernel/sony/arch/arm/configs/aosp_shinano_aries_defconfig

# Keep this as a fallback

TARGET_PREBUILT_KERNEL := $(LOCAL_PATH)/kernel​

Maybe the PRODUCT_OUT is not the right tag?

# device.mk doesn't know about us, and we can't PRODUCT_COPY_FILES here.

# So cp will do.

.PHONY: $(PRODUCT_OUT)/kernel

$(PRODUCT_OUT)/kernel: $(TARGET_PREBUILT_KERNEL)

cp $(TARGET_PREBUILT_KERNEL) $(PRODUCT_OUT)/kernel​

KERNEL_OUT does not work, either

Or, am I missing something else?

Thank you for your help

Did you get it to work?

Export includes file: vendor/sony/system/mkqcdtbootimg/Android.mk -- out/host/linux-x86/obj32/EXECUTABLES/mkqcdtbootimg_intermediates/export_includes
mkdir -p out/host/linux-x86/obj32/EXECUTABLES/mkqcdtbootimg_intermediates/ && rm -f out/host/linux-x86/obj32/EXECUTABLES/mkqcdtbootimg_intermediates/export_includes
touch out/host/linux-x86/obj32/EXECUTABLES/mkqcdtbootimg_intermediates/export_includes
host Executable: mkqcdtbootimg (out/host/linux-x86/obj32/EXECUTABLES/mkqcdtbootimg_intermediates/mkqcdtbootimg)
prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.11-4.6/bin/x86_64-linux-g++ out/host/linux-x86/obj32/EXECUTABLES/mkqcdtbootimg_intermediates/mkqcdtbootimg.o -Wl,--whole-archive -Wl,--no-whole-archive out/host/linux-x86/obj32/STATIC_LIBRARIES/libfdt_intermediates/libfdt.a out/host/linux-x86/obj32/STATIC_LIBRARIES/libmincrypt_intermediates/libmincrypt.a -Wl,-rpath-link=out/host/linux-x86/obj32/lib -Wl,-rpath,\$ORIGIN/../lib -Lout/host/linux-x86/obj32/lib -m32 -Wl,-z,noexecstack -pie -Wl,--no-undefined -o out/host/linux-x86/obj32/EXECUTABLES/mkqcdtbootimg_intermediates/mkqcdtbootimg
Notice file: system/core/libmincrypt/NOTICE -- out/host/linux-x86/obj/NOTICE_FILES/src//lib/libmincrypt.a.txt
mkdir -p out/host/linux-x86/obj/NOTICE_FILES/src//lib/
cat system/core/libmincrypt/NOTICE > out/host/linux-x86/obj/NOTICE_FILES/src//lib/libmincrypt.a.txt
Install: out/host/linux-x86/bin/mkqcdtbootimg
out/host/linux-x86/bin/acp -fp out/host/linux-x86/obj32/EXECUTABLES/mkqcdtbootimg_intermediates/mkqcdtbootimg out/host/linux-x86/bin/mkqcdtbootimg
out/host/linux-x86/bin/mkbootfs out/target/product/aries/root | out/host/linux-x86/bin/minigzip > out/target/product/aries/ramdisk.img
make: *** No rule to make target `prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.8/lib32/kernel', needed by `out/target/product/aries/kernel'. Stop.