[Xiaomi Mi 6 ROMs, Kernels, Recoveries, & Other Dev] moonheartmoon:
hello, I'm building with your device source and the stock pre-built kernel extracted from boot.img in MIUI ROM zip,

but got following error.

I've set the zImage path in BoardConfig.mk as TARGET_PREBUILT_KERNEL := device/xiaomi/sagit/prebuilt/zImage and put the file there.

it seems that files in kernel source is needed but we don't have the kernel source, how can I configure it to work?

============================================
ln: failed to create symbolic link '/home/moon/android/lineage/out/target/product/sagit/system/etc/gps.conf': File exists
build/core/binary.mk:1253: external/deqp/Android.mk: libdeqp: Unused source files: \
build/core/binary.mk:1253: external/deqp/Android.mk: libdeqp: Unused source files: \
build/core/binary.mk:1253: external/pdfium/third_party/pdfiumbigint.mk: libpdfiumbigint: Unused source files: bigint/BigInteger.cc bigint/BigIntegerUtils.cc bigint/BigUnsigned.cc bigint/BigUnsignedInABase.cc
build/core/binary.mk:1253: external/pdfium/third_party/pdfiumbigint.mk: libpdfiumbigint: Unused source files: bigint/BigInteger.cc bigint/BigIntegerUtils.cc bigint/BigUnsigned.cc bigint/BigUnsignedInABase.cc
./external/speex/Android.mk:56: TODOArm64: enable neon in libspeex
build/core/package_internal.mk:143: Empty argument supplied to find-subdir-assets
find: ‘/home/moon/android/lineage/out/target/common/obj/SHARED_LIBRARIES/libwifi-hal-mock_intermediates’: No such file or directory
build/core/package_internal.mk:143: Empty argument supplied to find-subdir-assets
vendor/cm/build/tasks/kernel.mk:159: ***************************************************************
vendor/cm/build/tasks/kernel.mk:160: * Using prebuilt kernel binary instead of source *
vendor/cm/build/tasks/kernel.mk:161: * THIS IS DEPRECATED, AND WILL BE DISCONTINUED *
vendor/cm/build/tasks/kernel.mk:162: * Please configure your device to download the kernel *
vendor/cm/build/tasks/kernel.mk:163: * source repository to kernel/xiaomi/msm8998
vendor/cm/build/tasks/kernel.mk:164: * See http://wiki.lineageos.org/w/Doc:_integrated_kernel_building
vendor/cm/build/tasks/kernel.mk:165: * for more information *
vendor/cm/build/tasks/kernel.mk:166: ***************************************************************
build/core/java.mk:334: warning: overriding commands for target `/home/moon/android/lineage/out/target/common/obj/APPS/Dialer_intermediates/src/src/org/codeaurora/presenceserv/IPresenceService.java'
build/core/java.mk:334: warning: ignoring old commands for target `/home/moon/android/lineage/out/target/common/obj/APPS/Dialer_intermediates/src/src/org/codeaurora/presenceserv/IPresenceService.java'
build/core/java.mk:334: warning: overriding commands for target `/home/moon/android/lineage/out/target/common/obj/APPS/Dialer_intermediates/src/src/org/codeaurora/presenceserv/IPresenceServiceCB.java'
build/core/java.mk:334: warning: ignoring old commands for target `/home/moon/android/lineage/out/target/common/obj/APPS/Dialer_intermediates/src/src/org/codeaurora/presenceserv/IPresenceServiceCB.java'
build/core/base_rules.mk:320: warning: overriding commands for target `/home/moon/android/lineage/out/target/product/sagit/root/res/images/charger/battery_fail.png'
build/core/base_rules.mk:320: warning: ignoring old commands for target `/home/moon/android/lineage/out/target/product/sagit/root/res/images/charger/battery_fail.png'
build/core/Makefile:34: warning: overriding commands for target `/home/moon/android/lineage/out/target/product/sagit/system/lib64/hw/consumerir.default.so'
build/core/base_rules.mk:320: warning: ignoring old commands for target `/home/moon/android/lineage/out/target/product/sagit/system/lib64/hw/consumerir.default.so'
Starting build with ninja
ninja: Entering directory `.'
ninja: error: '/home/moon/android/lineage/out/target/product/sagit/obj/KERNEL_OBJ/usr', needed by '/home/moon/android/lineage/out/target/product/sagit/obj/STATIC_LIBRARIES/libsdcard_intermediates/sdcard.o', missing and no known rule to make it
build/core/ninja.mk:151: recipe for target 'ninja_wrapper' failed
make: *** [ninja_wrapper] Error 1
make: Leaving directory '/home/moon/android/lineage'

#### make failed to build some targets (04:34 (mm:ss)) ####