You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
29 lines
859 B
29 lines
859 B
#!/bin/bash
|
|
# SPDX-License-Identifier: GPL-2.0
|
|
|
|
# disable debugfs for user builds
|
|
export MAKE_ARGS=$@
|
|
|
|
if [ ${DISABLE_DEBUGFS} == "true" ]; then
|
|
echo "build variant ${TARGET_BUILD_VARIANT}"
|
|
if [ ${TARGET_BUILD_VARIANT} == "user" ] && \
|
|
[ ${ARCH} == "arm64" ]; then
|
|
echo "combining fragments for user build"
|
|
(cd $KERNEL_DIR && \
|
|
ARCH=${ARCH} CROSS_COMPILE=${CROSS_COMPILE}\
|
|
./scripts/kconfig/merge_config.sh \
|
|
./arch/${ARCH}/configs/$DEFCONFIG \
|
|
./arch/${ARCH}/configs/vendor/debugfs.config
|
|
make ${MAKE_ARGS} ARCH=${ARCH} \
|
|
CROSS_COMPILE=${CROSS_COMPILE} savedefconfig
|
|
mv defconfig ./arch/${ARCH}/configs/$DEFCONFIG
|
|
rm .config)
|
|
else
|
|
if [[ ${DEFCONFIG} == *"perf_defconfig" ]] && \
|
|
[ ${ARCH} == "arm64" ]; then
|
|
echo "resetting perf defconfig"
|
|
(cd ${KERNEL_DIR} && \
|
|
git checkout arch/$ARCH/configs/$DEFCONFIG)
|
|
fi
|
|
fi
|
|
fi
|
|
|