-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathbuild_oc.sh
executable file
·26 lines (26 loc) · 1.5 KB
/
build_oc.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
rm initramfs.cpio
cd initramfs
echo "strip modules"
/opt/toolchains/arm-2011.03/bin/arm-none-eabi-strip -g lib/modules/cifs.ko
/opt/toolchains/arm-2011.03/bin/arm-none-eabi-strip -g lib/modules/dhd.ko
/opt/toolchains/arm-2011.03/bin/arm-none-eabi-strip -g lib/modules/fsr.ko
/opt/toolchains/arm-2011.03/bin/arm-none-eabi-strip -g lib/modules/fsr_stl.ko
/opt/toolchains/arm-2011.03/bin/arm-none-eabi-strip -g lib/modules/lockd.ko
/opt/toolchains/arm-2011.03/bin/arm-none-eabi-strip -g lib/modules/nfs.ko
/opt/toolchains/arm-2011.03/bin/arm-none-eabi-strip -g lib/modules/nfs_acl.ko
/opt/toolchains/arm-2011.03/bin/arm-none-eabi-strip -g lib/modules/param.ko
/opt/toolchains/arm-2011.03/bin/arm-none-eabi-strip -g lib/modules/ramzswap.ko
/opt/toolchains/arm-2011.03/bin/arm-none-eabi-strip -g lib/modules/scsi_wait_scan.ko
/opt/toolchains/arm-2011.03/bin/arm-none-eabi-strip -g lib/modules/Si4709_driver.ko
/opt/toolchains/arm-2011.03/bin/arm-none-eabi-strip -g lib/modules/storage.ko
/opt/toolchains/arm-2011.03/bin/arm-none-eabi-strip -g lib/modules/sunrpc.ko
/opt/toolchains/arm-2011.03/bin/arm-none-eabi-strip -g lib/modules/svnet.ko
/opt/toolchains/arm-2011.03/bin/arm-none-eabi-strip -g lib/modules/tun.ko
/opt/toolchains/arm-2011.03/bin/arm-none-eabi-strip -g lib/modules/vibrator.ko
/opt/toolchains/arm-2011.03/bin/arm-none-eabi-strip -g lib/modules/xt_TCPMSS.ko
find . -print0 | cpio --null -ov --format=newc > ../initramfs.cpio
cd ../Kernel
make menuconfig
export KBUILD_BUILD_VERSION="cm7_kernel_oc_1.2"
make -j8
echo Ready