| BRANCH=u-boot-mainline |
| SKIP_CP_KERNEL_HDR=1 |
| KERNEL_DIR=u-boot |
| |
| CLANG_PREBUILT_BIN=prebuilts-master/clang/host/linux-x86/clang-r416183b/bin |
| CC=clang |
| HOSTCC=clang |
| NM=llvm-nm |
| |
| # b/162850629 |
| # py3-cmd distutils is broken; use clang's copy |
| LIBUFDT_PREBUILTS_BIN=build/kernel/build-tools/path/linux-x86 |
| BUILDTOOLS_PREBUILT_BIN=${CLANG_PREBUILT_BIN}/../python3/bin |
| |
| # Hack to avoid using incompatible host bfd |
| LINUX_GCC_CROSS_COMPILE_COMPAT_PREBUILTS_BIN=prebuilts/gcc/linux-x86/x86/x86_64-linux-android-4.9/x86_64-linux-android/bin |
| |
| function check_u-boot_defconfig() { |
| (cd ${OUT_DIR} && \ |
| make ${TOOL_ARGS} O=${OUT_DIR} savedefconfig) |
| echo Verifying that savedefconfig matches ${KERNEL_DIR}/configs/${DEFCONFIG} |
| RES=0 |
| diff -u ${KERNEL_DIR}/configs/${DEFCONFIG} ${OUT_DIR}/defconfig || |
| RES=$? |
| if [ ${RES} -ne 0 ]; then |
| echo ERROR: savedefconfig does not match ${KERNEL_DIR}/configs/${DEFCONFIG} |
| fi |
| return ${RES} |
| } |
| POST_DEFCONFIG_CMDS="check_u-boot_defconfig" |