Changeset 2066
- Timestamp:
- 09/20/07 23:47:45 (1 year ago)
- Files:
-
- trunk/packages/linux/Makefile (modified) (1 diff)
- trunk/packages/linux/debian-style-headers.sh (modified) (1 diff)
- trunk/packages/linux64/Makefile (modified) (1 diff)
- trunk/packages/linux64/debian-style-headers.sh (added)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/packages/linux/Makefile
r2061 r2066 109 109 cd DESTDIR-modules ; tar zcvf ../../$(DIR8)-kernel-$(VRS).tgz . ; cd .. ; \ 110 110 cd DESTDIR-tools ; tar zcvf ../../$(DIR8)-tools.tgz . 111 rm -rf $(DIR2) $(DIR3) $(DIR4) $(DIR5) $(DIR6) $(DIR7) $(DIR8) $(DIR9) 112 cd .. ; ./debian-style-headers.sh $(DIR) 111 113 mv *.tgz /drivers 112 cd .. ; ./debian-style-headers.sh $(DIR)113 114 114 115 clean: trunk/packages/linux/debian-style-headers.sh
r1823 r2066 1 1 #!/bin/sh 2 2 3 SRCDIR="$1" 4 KVERSION=`grep UTS_RELEASE "$SRCDIR/include/linux/utsrelease.h" | cut -d '"' -f 2` 3 cd "$1" 4 5 KVERSION=`grep UTS_RELEASE include/linux/utsrelease.h | cut -d '"' -f 2` 5 6 DSTDIR=/usr/src/linux-$KVERSION 6 7 echo $SRCDIR $DSTDIR8 7 9 8 rm -rf "$DSTDIR" 10 9 mkdir "$DSTDIR" 11 cp -rv "$SRCDIR/.config" "$SRCDIR/Makefile" "$SRCDIR/Module.symvers" "$DSTDIR" 12 cp -rv "$SRCDIR/.kconfig.d" "$SRCDIR/.version" "$SRCDIR/.kernelrelease" "$DSTDIR" 13 cp -rv "$SRCDIR/include" "$SRCDIR/scripts" "$DSTDIR" 14 ( cd "$SRCDIR" ; find -type d ) | ( 15 while read dir ; do 16 mkdir -p "$DSTDIR/$dir" 17 done ) 18 ( cd "$SRCDIR" ; find -type f -a '(' -name Kconfig\* \ 19 -o -name Makefile\* -o -name \*.s ')' ) | ( 20 cd "$SRCDIR" 10 cp -r .config Makefile Module.symvers .kconfig.d .version .kernelrelease scripts "$DSTDIR" 11 mkdir -p "$DSTDIR/include" 12 find include -maxdepth 1 | grep -v asm- | xargs '-I{}' cp -r '{}' "$DSTDIR/include" 13 cp -r include/asm-{i386,x86_64,generic} "$DSTDIR/include" 14 find . -type f -a '(' -name Kconfig\* \ 15 -o -name Makefile\* -o -name \*.s ')' | ( 21 16 while read file ; do 22 cp -v "$file" "$DSTDIR/$file" 17 case "$file" in 18 ./arch/i386*|./include/asm-generic*|./include/asm-i386*|./include/asm-x86_64*) 19 mkdir -p "$DSTDIR/`dirname $file`" 20 cp "$file" "$DSTDIR/$file" 21 ;; 22 ./arch/*|./include/asm-*) 23 ;; 24 *) 25 mkdir -p "$DSTDIR/`dirname $file`" 26 cp "$file" "$DSTDIR/$file" 27 ;; 28 esac 23 29 done ) 24 30 ln -nsf "$DSTDIR" "/lib/modules/$KVERSION/source" trunk/packages/linux64/Makefile
r2061 r2066 135 135 cd DESTDIR-tools ; tar zcvf ../../$(DIR8)-tools.tgz . 136 136 cp -v arch/x86_64/boot/bzImage /boot/isolinux/linux 137 rm -rf $(DIR2) $(DIR3) $(DIR4) $(DIR5) $(DIR6) $(DIR7) $(DIR8) $(DIR9) 138 cd .. ; ./debian-style-headers.sh $(DIR) 137 139 endif 138 140 mv *.tgz /drivers 141 139 142 140 143 clean:
