aboutsummaryrefslogtreecommitdiff
path: root/build
diff options
context:
space:
mode:
authorAndy Green <andy@openmoko.com>2008-11-19 17:11:26 +0000
committerAndy Green <andy@openmoko.com>2008-11-19 17:11:26 +0000
commitba18f9c0401c8dcdab5e820d22ce26e1593464af (patch)
tree6b670404d84b0ca6a32e3252224e34b9a9dc7078 /build
parentf5edc32b7f652cf2ff423de68aed17fa4ac5b67f (diff)
build-create-module-tarball.patch
Signed-off-by: Andy Green <andy@openmoko.com>
Diffstat (limited to 'build')
-rwxr-xr-xbuild12
1 files changed, 10 insertions, 2 deletions
diff --git a/build b/build
index 24a1c5dfb53..9701a6a9329 100755
--- a/build
+++ b/build
@@ -50,8 +50,16 @@ if make -j5 ARCH=arm CONFIG_DEBUG_SECTION_MISMATCH=y EXTRAVERSION=$VERSION; then
# if it is then keep a stamped copy of last build
if [ ! -z "`grep CONFIG_USB_USBNET=y .config`" ] ; then
- rm -f uImage-moredrivers*-$PRODUCT.bin
- cp uImage-$PRODUCT.bin uImage-moredrivers$VERSION-$PRODUCT.bin
+ rm -f uImage-moredrivers*-$PRODUCT.bin modules-*$PRODUCT.tar.gz
+ cp uImage-$PRODUCT.bin uImage-moredrivers$VERSION.bin
+ rm -rf staging
+ mkdir -p staging
+ if [ ! -z "$1" ] ; then
+ make modules_install INSTALL_MOD_PATH=staging
+ cd staging
+ tar czf ../modules$VERSION.tar.gz .
+ cd ..
+ fi
fi
exit 0
else