-
Notifications
You must be signed in to change notification settings - Fork 3.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
AndroidKernel: Disable debugfs for user builds
Debugfs is not needed on user builds, so disabling same at compile time for ARM 64. Change-Id: If6708c9de060584ebcba4cac9bad8e85d6a5ab7f Signed-off-by: Swetha Chikkaboraiah <schikk@codeaurora.org>
- Loading branch information
Swetha Chikkaboraiah
authored and
Gerrit - the friendly Code Review server
committed
Aug 21, 2020
1 parent
3a91551
commit 1f17430
Showing
2 changed files
with
46 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
#!/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 |