Skip to content

Commit f475bda

Browse files
tpruvotPonsAsinorem
authored andcommittedJan 15, 2014
android: add a script to regenerate prebuilt config
since x86 CROSS_COMPILER removal, it can be hard to do that properly Change-Id: I6011e3b4dac5b5e670385df4812baf32f2e5ebc5
1 parent ee37cc1 commit f475bda

File tree

3 files changed

+21
-2
lines changed

3 files changed

+21
-2
lines changed
 

‎android_config.sh

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# Use ". android_config.sh" to refresh prebuilt android config
2+
# Note: this rebuild the compressed usage ressources and should be done
3+
# in a separate commit, to ignore it on future merge/rebase
4+
5+
make mrproper
6+
7+
cp .config-minimal .config
8+
echo >> .config
9+
echo 'CONFIG_CROSS_COMPILER_PREFIX="arm-eabi-"' >> .config
10+
make prepare
11+
cd include-minimal && ./copy-current.sh
12+
cd ..
13+
14+
cp .config-full .config
15+
echo >> .config
16+
echo 'CONFIG_CROSS_COMPILER_PREFIX="arm-eabi-"' >> .config
17+
make prepare
18+
cd include-full && ./copy-current.sh
19+
cd ..

‎include-full/copy-current.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# this step is no more required to build busybox, it is made automatically
33
# in Android.mk (busybox_prepare module)
44

5-
cp ../.config ../.config-full
5+
cat ../.config | grep -v CONFIG_CROSS_COMPILER_PREFIX > ../.config-full
66

77
cp ../include/applets.h ./
88
cp ../include/applet_tables.h ./

‎include-minimal/copy-current.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# this step is no more required to build busybox, it is made automatically
33
# in Android.mk (busybox_prepare module)
44

5-
cp ../.config ../.config-minimal
5+
cat ../.config | grep -v CONFIG_CROSS_COMPILER_PREFIX > ../.config-minimal
66

77
cp ../include/applets.h ./
88
cp ../include/applet_tables.h ./

0 commit comments

Comments
 (0)
Please sign in to comment.