blob: 1a451110f24a8e1052d9af09a736ca340f996f90 [file] [log] [blame]
. ${ROOT_DIR}/u-boot/build.config.constants
BRANCH=u-boot-mainline
SKIP_CP_KERNEL_HDR=1
KERNEL_DIR=u-boot
LLVM=
CC=clang
HOSTCC=clang
NM=llvm-nm
unset DTC
# 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"