[leaf-commits] src/bering-uclibc4/buildtool/tools geniso.sh, 1.5, 1.6

Andrew <[email protected]> Tue, 02 Nov 2010 21:01:34 +0000
Newsgroups gmane.linux.leaf.cvs
Message-ID <[email protected]>
Update of /cvsroot/leaf/src/bering-uclibc4/buildtool/tools
In directory sfp-cvsdas-2.v30.ch3.sourceforge.com:/tmp/cvs-serv22547/tools

Modified Files:
	geniso.sh 
Log Message:
update for multi-kernel support


Index: geniso.sh
===================================================================
RCS file: /cvsroot/leaf/src/bering-uclibc4/buildtool/tools/geniso.sh,v
retrieving revision 1.5
retrieving revision 1.6
diff -C2 -d -r1.5 -r1.6
*** geniso.sh	12 Aug 2010 21:10:04 -0000	1.5
--- geniso.sh	2 Nov 2010 21:01:24 -0000	1.6
***************
*** 40,43 ****
--- 40,45 ----
  DATE=$(date "+%B %Y")
  VERSION=$1
+ KARCH=$2
+ KVERSION=$3
  
  #### get clear path(s):
***************
*** 77,84 ****
  PKGDIR=$BTROOT/package
  
- KVERSION=$2
  if [ "$KVERSION" = "" ] ; then
  	# find latest version
! 	KVERSION=`cat $SRCDIR/linux/linux/.config | awk '/version:/ {print $5}'`
  fi
  
--- 79,85 ----
  PKGDIR=$BTROOT/package
  
  if [ "$KVERSION" = "" ] ; then
  	# find latest version
! 	KVERSION=`cat $SRCDIR/linux/linux-$KARCH/.config | awk '/version:/ {print $5}'`
  fi
  
***************
*** 122,129 ****
  	echo copying $src to temp dir
  	tretval=0
! 	#if [ "$dst" != "" ] ; then
! 			cp ${PKGDIR}/$src $TMPDIR/$dst
! 			tretval=$?
! 	#fi
  	if [ $tretval -ne 0 ] ; then
  		retval=1
--- 123,128 ----
  	echo copying $src to temp dir
  	tretval=0
! 	cp ${PKGDIR}/`echo $src|sed "s,\(moddb\|initrd\|linux\)\(.*\),\1-$KARCH\2,"` $TMPDIR/$dst/$src
! 	tretval=$?
  	if [ $tretval -ne 0 ] ; then
  		retval=1
***************
*** 134,138 ****
  
  cp $FDDIR/leaf.cfg $TMPDIR
! cp $STGDIR/boot/linux $TMPDIR
  cp $FDDIR/isolinux.cfg $TMPDIR/isolinux
  cp $FDDIR/isolinux.ser $TMPDIR/isolinux
--- 133,137 ----
  
  cp $FDDIR/leaf.cfg $TMPDIR
! cp $STGDIR/boot/linux-$KARCH $TMPDIR/linux
  cp $FDDIR/isolinux.cfg $TMPDIR/isolinux
  cp $FDDIR/isolinux.ser $TMPDIR/isolinux
***************
*** 152,156 ****
  #		(cd $TMPDIR/lib/modules ; tar xvzf ../../Bering-uClibc_modules_$KVERSION.tar.gz ; rm ../../Bering-uClibc_modules_$KVERSION.tar.gz )
  #		rm $TMPDIR/lib/modules/$KVERSION/build
! 		(cd $STGDIR/lib/modules/$KVERSION; tar -czf $TMPDIR/modules.tgz *  --exclude=build --exclude=source)
  		IMGNAME=$IMGPATH/Bering-uClibc_$VERSION'.'iso
  		(cd $TMPDIR ; mkisofs -o $IMGNAME -v -b isolinux/isolinux.bin  -c isolinux/boot.cat -no-emul-boot -boot-load-size 4 -boot-info-table -l -R -r .)
--- 151,155 ----
  #		(cd $TMPDIR/lib/modules ; tar xvzf ../../Bering-uClibc_modules_$KVERSION.tar.gz ; rm ../../Bering-uClibc_modules_$KVERSION.tar.gz )
  #		rm $TMPDIR/lib/modules/$KVERSION/build
! 		(cd $STGDIR/lib/modules/$KVERSION-$KARCH; tar -czf $TMPDIR/modules.tgz *  --exclude=build --exclude=source)
  		IMGNAME=$IMGPATH/Bering-uClibc_$VERSION'.'iso
  		(cd $TMPDIR ; mkisofs -o $IMGNAME -v -b isolinux/isolinux.bin  -c isolinux/boot.cat -no-emul-boot -boot-load-size 4 -boot-info-table -l -R -r .)


------------------------------------------------------------------------------
Nokia and AT&T present the 2010 Calling All Innovators-North America contest
Create new apps & games for the Nokia N8 for consumers in  U.S. and Canada
$10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing
Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store 
http://p.sf.net/sfu/nokia-dev2dev