From 4cba5b1881d4a7a9cd161661cfa85a6fb8bdced4 Mon Sep 17 00:00:00 2001 From: Raghavendra Rao Ananta Date: Wed, 3 Jul 2019 10:08:57 -0700 Subject: [PATCH] scripts: gki: Clean the generted files by hand instead of mrproper The script generate_defconfig.sh runs 'make mrproper' at the end as a part of its cleanup routine. This action, however, also removes tags, cscope.*, and other necessary files from the source tree, which is not desired. Hence, hand-pick the generated files manually and remove them instead of relying on 'make mrproper'. Change-Id: I8996cb7be5574d6177b23b72bf3e241d43a350dd Signed-off-by: Raghavendra Rao Ananta --- scripts/gki/generate_defconfig.sh | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/scripts/gki/generate_defconfig.sh b/scripts/gki/generate_defconfig.sh index 127abef5de09..3b6cfeddc154 100755 --- a/scripts/gki/generate_defconfig.sh +++ b/scripts/gki/generate_defconfig.sh @@ -63,8 +63,5 @@ ${KERN_SRC}/scripts/kconfig/merge_config.sh $FINAL_DEFCONFIG_BLEND make savedefconfig mv defconfig $CONFIGS_DIR/$REQUIRED_DEFCONFIG -# Cleanup the allyes config fragment that was generated -rm -f $QCOM_GKI_ALLYES_FRAG - -# Cleanup the kernel source -make mrproper +# Cleanup the allyes config fragment and other generated files +rm -rf $QCOM_GKI_ALLYES_FRAG .config include/config/ include/generated/ arch/$ARCH/include/generated/