[General Questions and Answers] taqi.feedback@gmail.com:
module "generated_kernel_includes": cmd: unknown variable '$(KERNEL_MAKE_FLAGS)'

Os-Ubuntu 18.10

android os-lineage os 16

download the lineage os 16 code using git

cd lineage_16

repo sync

make clobber

output

----------

15:09:36 Entire build directory removed.

source build/envsetup.sh

o/p

------------

including device/generic/car/vendorsetup.sh

including device/generic/mini-emulator-arm64/vendorsetup.sh

including device/generic/mini-emulator-armv7-a-neon/vendorsetup.sh

including device/generic/mini-emulator-x86_64/vendorsetup.sh

including device/generic/mini-emulator-x86/vendorsetup.sh

including device/generic/uml/vendorsetup.sh

including device/huawei/angler/vendorsetup.sh

including vendor/lineage/vendorsetup.sh

including sdk/bash_completion/adb.bash

lunch

o/p

-------

You're building on Linux

Lunch menu... pick a combo:

1. aosp_arm-eng

2. aosp_arm64-eng

3. aosp_mips-eng

4. aosp_mips64-eng

5. aosp_x86-eng

6. aosp_x86_64-eng

7. aosp_car_arm-userdebug

8. aosp_car_arm64-userdebug

9. aosp_car_x86-userdebug

10. aosp_car_x86_64-userdebug

11. mini_emulator_arm64-userdebug

12. m_e_arm-userdebug

13. mini_emulator_x86_64-userdebug

14. mini_emulator_x86-userdebug

15. uml-userdebug

16. aosp_angler-userdebug

Which would you like? [aosp_arm-eng] :11

Trying dependencies-only mode on a non-existing device tree?

============================================

PLATFORM_VERSION_CODENAME=REL

PLATFORM_VERSION=9

TARGET_PRODUCT=mini_emulator_arm64

TARGET_BUILD_VARIANT=userdebug

TARGET_BUILD_TYPE=release

TARGET_ARCH=arm64

TARGET_ARCH_VARIANT=armv8-a

TARGET_CPU_VARIANT=generic

TARGET_2ND_ARCH=arm

TARGET_2ND_ARCH_VARIANT=armv7-a-neon

TARGET_2ND_CPU_VARIANT=cortex-a15

HOST_ARCH=x86_64

HOST_2ND_ARCH=x86

HOST_OS=linux

HOST_OS_EXTRA=Linux-4.18.0-10-generic-x86_64-Ubuntu-18.10

HOST_CROSS_OS=windows

HOST_CROSS_ARCH=x86

HOST_CROSS_2ND_ARCH=x86_64

HOST_BUILD_TYPE=release

BUILD_ID=PPR2.181005.003

OUT_DIR=/home/taqi/Documents/android-lineage-16.0/out

============================================

$make -j4

o/p

--------------

============================================

PLATFORM_VERSION_CODENAME=REL

PLATFORM_VERSION=9

TARGET_PRODUCT=mini_emulator_arm64

TARGET_BUILD_VARIANT=userdebug

TARGET_BUILD_TYPE=release

TARGET_ARCH=arm64

TARGET_ARCH_VARIANT=armv8-a

TARGET_CPU_VARIANT=generic

TARGET_2ND_ARCH=arm

TARGET_2ND_ARCH_VARIANT=armv7-a-neon

TARGET_2ND_CPU_VARIANT=cortex-a15

HOST_ARCH=x86_64

HOST_2ND_ARCH=x86

HOST_OS=linux

HOST_OS_EXTRA=Linux-4.18.0-10-generic-x86_64-Ubuntu-18.10

HOST_CROSS_OS=windows

HOST_CROSS_ARCH=x86

HOST_CROSS_2ND_ARCH=x86_64

HOST_BUILD_TYPE=release

BUILD_ID=PPR2.181005.003

OUT_DIR=/home/taqi/Documents/android-lineage-16.0/out

============================================

[1/1] /home/taqi/Documents/android-lineage-16.0/out/soong/.mi...cuments/android-lineage-16.0/out/soong/.bootstrap/build.ninja

[55/56] glob prebuilts/ndk/stl.bp

[80/80] /home/taqi/Documents/android-lineage-16.0/out/soong/....ome/taqi/Documents/android-lineage-16.0/out/soong/build.ninja

FAILED: /home/taqi/Documents/android-lineage-16.0/out/soong/build.ninja

/home/taqi/Documents/android-lineage-16.0/out/soong/.bootstrap/bin/soong_build -t -l /home/taqi/Documents/android-lineage-16.0/out/.module_paths/Android.bp.list -b /home/taqi/Documents/android-lineage-16.0/out/soong -n /home/taqi/Documents/android-lineage-16.0/out -d /home/taqi/Documents/android-lineage-16.0/out/soong/build.ninja.d -o /home/taqi/Documents/android-lineage-16.0/out/soong/build.ninja Android.bp

error: vendor/lineage/build/soong/Android.bp:31:8: module "generated_kernel_includes": cmd: unknown variable '$(KERNEL_MAKE_FLAGS)'

ninja: build stopped: subcommand failed.

15:49:16 soong bootstrap failed with: exit status 1

#### failed to build some targets (03:03 (mm:ss)) ####