| #!/bin/bash |
| |
| DEFCONFIG_FILE=$1 |
| |
| if [ -z "$DEFCONFIG_FILE" ]; then |
| echo "Need defconfig file(hammerhead_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 |