mirror of
https://github.com/followmsi/android_kernel_google_msm.git
synced 2024-11-06 23:17:41 +00:00
Add make_defconfig script
tools for save defconfig $ ./make_defconfig.sh mako-perf_defconfig it will update in arch/arm/configs Change-Id: Ic4946b4ac020faf7026bde216b480994ff9a71a8
This commit is contained in:
parent
06ce948e5c
commit
03a9acbabb
1 changed files with 27 additions and 0 deletions
27
make_defconfig.sh
Executable file
27
make_defconfig.sh
Executable file
|
@ -0,0 +1,27 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
DEFCONFIG_FILE=$1
|
||||||
|
|
||||||
|
if [ -z "$DEFCONFIG_FILE" ]; then
|
||||||
|
echo "Need defconfig file(j1v-perf_defconfig)!"
|
||||||
|
exit -1
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [ ! -e arch/arm/configs/$DEFCONFIG_FILE ]; then
|
||||||
|
echo "No such file : arch/arm/configs/$DEFCONFIG_FILE"
|
||||||
|
exit -1
|
||||||
|
fi
|
||||||
|
|
||||||
|
# make .config
|
||||||
|
env KCONFIG_NOTIMESTAMP=true \
|
||||||
|
make ARCH=arm CROSS_COMPILE=arm-eabi- ${DEFCONFIG_FILE}
|
||||||
|
|
||||||
|
# run menuconfig
|
||||||
|
env KCONFIG_NOTIMESTAMP=true \
|
||||||
|
make menuconfig ARCH=arm
|
||||||
|
|
||||||
|
make savedefconfig ARCH=arm
|
||||||
|
# copy .config to defconfig
|
||||||
|
mv defconfig arch/arm/configs/${DEFCONFIG_FILE}
|
||||||
|
# clean kernel object
|
||||||
|
make mrproper
|
Loading…
Reference in a new issue