mkorpershoek/update-manifest-4.19-khadas
While building (following the instructions in https://gitlab.com/baylibre/amlogic/atv/aosp/device/amlogic/yukawa/-/wikis/Khadas_VIM3L) we got the following build errors:
~/data/atv-kernel-4.19-khadas ϟ DIST_DIR=~/data/atv-khadas/device/amlogic/yukawa-kernel/ BUILD_CONFIG=hikey-linaro/build.config.yukawa.aarch64 build/build.sh
= Set default KERNEL_DIR: hikey-linaro
= The final value for KERNEL_DIR: hikey-linaro
========================================================
= build config: /srv/data/mkorpershoek/atv-kernel-4.19-khadas/hikey-linaro/build.config.yukawa.aarch64
. ${ROOT_DIR}/hikey-linaro/build.config.common
. ${ROOT_DIR}/hikey-linaro/build.config.aarch64
BRANCH=mirror-aosp-android-amlogic-bmeson-4.19
DEFCONFIG=meson_defconfig
KERNEL_DIR=hikey-linaro
POST_DEFCONFIG_CMDS="check_defconfig"
LZ4_PREBUILTS_BIN=prebuilts/misc/linux-x86/lz4
STOP_SHIP_TRACEPRINTK=1
SKIP_CP_KERNEL_HDR=1
# this is needed to generate __symbols__ for u-boot
DTC_FLAGS="-@"
FILES="
arch/arm64/boot/dts/amlogic/meson-g12a-sei510.dtb
arch/arm64/boot/dts/amlogic/meson-g12a-sei510-android.dtb
arch/arm64/boot/dts/amlogic/meson-sm1-sei610.dtb
arch/arm64/boot/dts/amlogic/meson-sm1-sei610-android.dtb
arch/arm64/boot/dts/amlogic/meson-sm1-khadas-vim3l.dtb
arch/arm64/boot/dts/amlogic/meson-sm1-khadas-vim3l-android.dtb
arch/arm64/boot/Image.lz4
"
EXTRA_CMDS="lz4_compress"
DIST_CMDS="rename_file"
function lz4_compress() {
./${LZ4_PREBUILTS_BIN}/lz4c -f ${OUT_DIR}/arch/arm64/boot/Image ${OUT_DIR}/arch/arm64/boot/Image.lz4
}
function rename_file(){
KERN_VER=$(echo "$BRANCH" | cut -f 6 -d "-")
for FILE in ${FILES}; do
if [ -f ${DIST_DIR}/${FILE##*/} ]; then
cp -p ${DIST_DIR}/${FILE##*/} ${DIST_DIR}/${FILE##*/}-${KERN_VER}
else
echo " $FILE is not a file, skipping"
fi
done
}
PATH=/srv/data/mkorpershoek/atv-kernel-4.19-khadas/build/build-tools/path/linux-x86:/srv/data/mkorpershoek/atv-kernel-4.19-khadas/prebuilts/misc/linux-x86/lz4:/srv/data/mkorpershoek/atv-kernel-4.19-khadas/prebuilts-master/clang/host/linux-x86/clang-r383902/bin:/srv/data/mkorpershoek/atv-kernel-4.19-khadas/prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.9/bin/:/srv/data/mkorpershoek/atv-kernel-4.19-khadas/prebuilts/gcc/linux-x86/aarch64/aarch64-linux-android-4.9/bin:/usr/local/bin:/home/mkorpershoek/bin:/home/mkorpershoek/.cargo/bin:/home/mkorpershoek/.cargo/bin:/usr/local/bin:/home/mkorpershoek/bin:/home/mkorpershoek/.cargo/bin:/home/mkorpershoek/.cargo/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/home/mkorpershoek/.fzf/bin:/home/mkorpershoek/work/bin/:/home/mkorpershoek/work/bin/
========================================================
Setting up for build
+ cd hikey-linaro
+ make LLVM=1 DEPMOD=depmod O=/srv/data/mkorpershoek/atv-kernel-4.19-khadas/out/mirror-aosp-android-amlogic-bmeson-4.19/hikey-linaro mrproper
make[1]: Entering directory '/srv/data/mkorpershoek/atv-kernel-4.19-khadas/out/mirror-aosp-android-amlogic-bmeson-4.19/hikey-linaro'
make[3]: arm-linux-androidkernel-gcc: Command not found
CLEAN scripts/basic
CLEAN scripts/kconfig
make[1]: Leaving directory '/srv/data/mkorpershoek/atv-kernel-4.19-khadas/out/mirror-aosp-android-amlogic-bmeson-4.19/hikey-linaro'
+ set +x
+ cd hikey-linaro
+ make LLVM=1 DEPMOD=depmod O=/srv/data/mkorpershoek/atv-kernel-4.19-khadas/out/mirror-aosp-android-amlogic-bmeson-4.19/hikey-linaro meson_defconfig
make[1]: Entering directory '/srv/data/mkorpershoek/atv-kernel-4.19-khadas/out/mirror-aosp-android-amlogic-bmeson-4.19/hikey-linaro'
HOSTCC scripts/basic/fixdep
GEN ./Makefile
HOSTCC scripts/kconfig/conf.o
YACC scripts/kconfig/zconf.tab.c
LEX scripts/kconfig/zconf.lex.c
/srv/data/mkorpershoek/atv-kernel-4.19-khadas/build/build-tools/path/linux-x86/bison: line 7: /srv/data/mkorpershoek/atv-kernel-4.19-khadas/build/build-tools/path/linux-x86/../../../../prebuilts/build-tools/linux-x86/bin/bison: No such file or directory
scripts/Makefile.lib:196: recipe for target 'scripts/kconfig/zconf.tab.c' failed
make[2]: *** [scripts/kconfig/zconf.tab.c] Error 127
make[2]: *** Waiting for unfinished jobs....
/srv/data/mkorpershoek/atv-kernel-4.19-khadas/hikey-linaro/Makefile:558: recipe for target 'meson_defconfig' failed
make[1]: *** [meson_defconfig] Error 2
make[1]: Leaving directory '/srv/data/mkorpershoek/atv-kernel-4.19-khadas/out/mirror-aosp-android-amlogic-bmeson-4.19/hikey-linaro'
Makefile:146: recipe for target 'sub-make' failed
make: *** [sub-make] Error 2
Fix them by backporting some manifest patches from https://android.googlesource.com/kernel/manifest/+log/refs/heads/hikey-linaro-android-4.19