thor: fix invalid larger device descriptor than requested
[profile/mobile/platform/kernel/u-boot-tm1.git] / make_idh.sh
1 #!/bin/sh
2
3 DIR_PROTECT="arch/arm/cpu/armv7/sc8810 arch/arm/cpu/arm926ejs/sc8800g arch/arm/cpu/arm926ejs/sc8800x property nand_fdl nand_spl"
4 PRODUCTS="sc8810_openphone sp8810 sp8805ga sp6810a openphone native_openphone 788"
5
6 argu=$1
7 if [ -z $argu ]; then
8 argu="clean"
9 elif [ $argu != "clean" ] && [ $argu != "restore" ]; then
10 echo " you should type as $0 clean or restore"
11 exit 0
12 fi
13
14 if [ $argu = "clean" ]; then
15     for dir in $DIR_PROTECT; do
16     find $dir -name *.c -o -name *.S | xargs rm -f
17     done
18
19     echo "CONFIG_IDH_BUILD = 1" > ./include/idh_config.mk
20 fi 
21
22 if [ $argu = "restore" ]; then
23     for dir in $DIR_PROTECT; do
24     git checkout -- $dir
25     done
26     rm ./include/idh_config.mk 2>/dev/null
27 fi
28