3 oedir
=/u
/moko
/build
/tmp
4 export CROSS_COMPILE
=${oedir}/cross
/bin
/arm-angstrom-linux-gnueabi-
7 [ "${1}" = "1" ] && L
="1"
8 [ "${1}" = "2" ] && L
="2"
14 net/ipv4/netfilter/nf_nat.ko \
15 net/ipv4/netfilter/ip_tables.ko \
16 net/ipv4/netfilter/nf_conntrack_ipv4.ko \
17 net/ipv4/netfilter/iptable_nat.ko \
18 net/ipv4/netfilter/iptable_filter.ko \
19 net/ipv4/netfilter/ipt_MASQUERADE.ko \
20 net/netfilter/x_tables.ko \
21 net/netfilter/nf_conntrack.ko \
22 drivers/hid/usbhid/usbhid.ko \
23 drivers/net/ppp_mppe.ko \
25 drivers/net/ppp_async.ko \
26 drivers/net/ppp_generic.ko \
27 drivers/net/ppp_deflate.ko \
28 drivers/usb/storage/usb-storage.ko \
29 drivers/usb/serial/usbserial.ko \
30 drivers/scsi/scsi_mod.ko \
31 drivers/scsi/sd_mod.ko \
32 drivers/input/misc/uinput.ko \
33 crypto/michael_mic.ko \
35 crypto/aes_generic.ko \
43 HEAD
=`git show --pretty=oneline | head -n1 | cut -d' ' -f1 | cut -b1-8`
44 FULLHEAD
=`git show --pretty=oneline | head -n1 | cut -d' ' -f1`
45 BRANCH
=`git branch | grep ^\* | cut -d' ' -f2`
50 cp defconfig-mw-gta0
${i} .config
53 rm -f modules-all-gta0
${i}-g${HEAD}_${BRANCH}.tgz
54 rm -f modules-min-gta0
${i}-g${HEAD}_${BRANCH}.tgz
55 rm -rf modules-all-gta0
${i}-g${HEAD}_${BRANCH}
56 rm -rf modules-min-gta0
${i}-g${HEAD}_${BRANCH}
59 mv uImage.bin uImage-gta0
${i}-g${HEAD}_${BRANCH}.bin
61 make INSTALL_MOD_PATH
=.
/modules-all-gta0
${i}-g${HEAD}_${BRANCH} modules_install
62 (cd modules-all-gta0
${i}-g${HEAD}_${BRANCH}; tar czf ../modules-all-gta0${i}-g${HEAD}_${BRANCH}.tgz lib
)
64 v
=`(cd modules-all-gta0${i}-g${HEAD}_${BRANCH}/lib/modules; ls -d 2.6.*)`
66 a
=.
/modules-all-gta0
${i}-g${HEAD}_${BRANCH}/lib/modules/${v}/kernel/${m}
67 b
=.
/modules-min-gta0
${i}-g${HEAD}_${BRANCH}/lib/modules/${v}/kernel/${m}
68 if [ -f "${a}" ] ; then
70 [ -d "${bb}" ] || mkdir
-p "${bb}"
72 # ${CROSS_COMPILE}strip -v -g "${b}"
73 ${CROSS_COMPILE}strip
-g "${b}"
76 if [ -d .
/modules-min-gta0
${i}-g${HEAD}_${BRANCH} ] ; then
77 depmod
-b .
/modules-min-gta0
${i}-g${HEAD}_${BRANCH} -F System.map ${v}
78 (cd modules-min-gta0
${i}-g${HEAD}_${BRANCH}; tar czf ../modules-min-gta0${i}-g${HEAD}_${BRANCH}.tgz lib
)