[aadk-commits] dbailey: trunk r171 - in /trunk/scripts: build-bootloader build-distro

aadk-commits at lists.digium.com aadk-commits at lists.digium.com
Fri Feb 23 15:03:28 MST 2007


Author: dbailey
Date: Fri Feb 23 16:03:27 2007
New Revision: 171

URL: http://svn.digium.com/view/aadk?view=rev&rev=171
Log:
Added commands to build type and version information and place it into uClinux and u-boot images

Modified:
    trunk/scripts/build-bootloader
    trunk/scripts/build-distro

Modified: trunk/scripts/build-bootloader
URL: http://svn.digium.com/view/aadk/trunk/scripts/build-bootloader?view=diff&rev=171&r1=170&r2=171
==============================================================================
--- trunk/scripts/build-bootloader (original)
+++ trunk/scripts/build-bootloader Fri Feb 23 16:03:27 2007
@@ -1,6 +1,25 @@
 #!/bin/sh
 cd ../
 . scripts/build-common
+
+#Insert version information that can be displayed from the bootloader
+BOARDID_FILE="u-boot/u-boot_1.1.3/lib_blackfin/board_id.h"
+
+if [ -f ".version" -a -f ".flavor" ]; then 
+	echo "Version Files exist"
+	VER=`cat .version`
+	FLAVOR=`cat .flavor`
+	VERSIONID="#define VENDOR_ID \"$FLAVOR $VER\""
+else
+	VERSIONID="#define \"DIGIUM Unknown\""
+fi 
+echo "/*Autogenerated header file*/"	>${BOARDID_FILE}
+echo "#ifndef __BOARD_ID_H__"	>>${BOARDID_FILE}
+echo "#define __BOARD_ID_H__"	>>${BOARDID_FILE}
+echo "$VERSIONID"				>>${BOARDID_FILE}
+echo "#endif"					>>${BOARDID_FILE}
+
+# actually build the bootloader
 cd u-boot/u-boot_1.1.3
 make distclean
 make s800i_config

Modified: trunk/scripts/build-distro
URL: http://svn.digium.com/view/aadk/trunk/scripts/build-distro?view=diff&rev=171&r1=170&r2=171
==============================================================================
--- trunk/scripts/build-distro (original)
+++ trunk/scripts/build-distro Fri Feb 23 16:03:27 2007
@@ -1,5 +1,14 @@
 #!/bin/sh -e
 cd ../
 . scripts/build-common
+
+if [ -f ".version" -a -f ".flavor" ]; then 
+	echo "Version Files exist"
+	VER=`cat .version`
+	FLAVOR=`cat .flavor`
+	rm uClinux/uClinux-dist/linux-2.6.x/localversion-*
+	echo "-Digium:$FLAVOR - $VER" >uClinux/uClinux-dist/linux-2.6.x/localversion-Digium
+fi 
+
 cd uClinux/uClinux-dist
 make



More information about the aadk-commits mailing list