Changes to release.sh, changed compiler option to -02
authorSandeep Nair <a0875039@gt48xvq51.gt.design.ti.com>
Fri, 11 Mar 2011 01:41:18 +0000 (20:41 -0500)
committerSandeep Nair <a0875039@gt48xvq51.gt.design.ti.com>
Fri, 11 Mar 2011 01:41:18 +0000 (20:41 -0500)
release.sh
src/make/c64x/makedefs.mk
src/make/setupenv.bat
src/util/i2cConfig/i2cConfig.gel

index f67f6bc5d905274b5144e80ced29b61d941635b4..6e0850bd71680390360004be7d4741addd089bba 100755 (executable)
@@ -12,10 +12,12 @@ if [ -d ibl_bin_$IBL_VERSION ]; then rm -r ibl_bin_$IBL_VERSION; fi
 
 mkdir ibl_bin_$IBL_VERSION
 mkdir ibl_bin_$IBL_VERSION/c6455/
-mkdir ibl_bin_$IBL_VERSION/c6455/le-be
+mkdir ibl_bin_$IBL_VERSION/c6455/le
+mkdir ibl_bin_$IBL_VERSION/c6455/be
 
 mkdir ibl_bin_$IBL_VERSION/c6472/
-mkdir ibl_bin_$IBL_VERSION/c6472/le-be
+mkdir ibl_bin_$IBL_VERSION/c6472/le
+mkdir ibl_bin_$IBL_VERSION/c6472/be
 
 mkdir ibl_bin_$IBL_VERSION/c6474/
 mkdir ibl_bin_$IBL_VERSION/c6474/be
@@ -32,48 +34,53 @@ mkdir ibl_bin_$IBL_VERSION/c6457/le
 mkdir ibl_bin_$IBL_VERSION/c6678/
 mkdir ibl_bin_$IBL_VERSION/c6678/le
 
+# Copy i2cConfig GEL file
+cp -f src/util/i2cConfig/i2cConfig.gel ibl_bin_$IBL_VERSION/i2cConfig.gel
+
 # Set Build environment
 source src/make/setupenvLnx.sh
 
 # Build C6455 EVM
 pushd src/make
 make clean
-make evm_c6455 I2C_MAP_ADDR=0x500
+make c6455 I2C_BUS_ADDR=0x50 I2C_MAP_ADDR=0x500 COMPACT_I2C=no ENDIAN=little 
 popd
 # Copy the files to the Binary package
-cp -f src/make/ibl_c6455/i2crom.dat ibl_bin_$IBL_VERSION/c6455/le-be/i2crom.dat
-cp -f src/util/i2cWrite/i2cWrite_le.out   ibl_bin_$IBL_VERSION/c6455/le-be/
-cp -f src/util/i2cConfig/i2cparam_c6455_le.out ibl_bin_$IBL_VERSION/c6455/le-be/i2cparam_c6455_le_0x500.out
+cp -f src/make/ibl_c6455/i2crom.dat ibl_bin_$IBL_VERSION/c6455/le/i2crom_0x50_c6455_le.dat
+cp -f src/util/i2cWrite/i2cWrite_le.out ibl_bin_$IBL_VERSION/c6455/le/i2cWrite_c6455_le.out
+cp -f src/util/i2cConfig/i2cparam_c6455_le.out ibl_bin_$IBL_VERSION/c6455/le/i2cparam_c6455_le_0x500.out
 
 # Build C6455 EVM BE
 pushd src/make
 make clean
-make evm_c6455 I2C_MAP_ADDR=0x800
+make c6455 I2C_BUS_ADDR=0x50 I2C_MAP_ADDR=0x800 COMPACT_I2C=no ENDIAN=big 
 popd
 # Copy the files to the Binary package
-cp -f src/util/i2cConfig/i2cparam_c6455_be.out ibl_bin_$IBL_VERSION/c6455/le-be/i2cparam_c6455_be_0x800.out
+cp -f src/make/ibl_c6455/i2crom.dat ibl_bin_$IBL_VERSION/c6455/be/i2crom_0x50_c6455_be.dat
+cp -f src/util/i2cWrite/i2cWrite_be.out ibl_bin_$IBL_VERSION/c6455/be/i2cWrite_c6455_be.out
+cp -f src/util/i2cConfig/i2cparam_c6455_be.out ibl_bin_$IBL_VERSION/c6455/be/i2cparam_c6455_be_0x800.out
 
-# Copy i2cConfig GEL file
-cp -f src/util/i2cConfig/i2cConfig.gel ibl_bin_$IBL_VERSION/i2cConfig.gel
 
 # Build C6472 le
 pushd src/make
 make clean
-make evm_c6472 I2C_MAP_ADDR=0x500
+make c6472 I2C_BUS_ADDR=0x50 I2C_MAP_ADDR=0x500 COMPACT_I2C=no ENDIAN=little 
 popd
 # Copy the files to the Binary package
-cp -f src/make/ibl_c6472/i2crom.dat ibl_bin_$IBL_VERSION/c6472/le-be/i2crom.dat
-cp -f src/util/i2cWrite/i2cWrite_le.out   ibl_bin_$IBL_VERSION/c6472/le-be/
+cp -f src/make/ibl_c6472/i2crom.dat ibl_bin_$IBL_VERSION/c6472/le/i2crom_0x50_c6472_le.dat
+cp -f src/util/i2cWrite/i2cWrite_le.out   ibl_bin_$IBL_VERSION/c6472/le/i2Write_c6472_le.out
 cp -f src/util/i2cConfig/i2cparam_c6472_le.out ibl_bin_$IBL_VERSION/c6472/le-be/i2cparam_c6472_le_0x500.out
 
 
 # Build C6472 EVM BE
 pushd src/make
 make clean
-make evm_c6472 I2C_MAP_ADDR=0x800
+make c6472 I2C_BUS_ADDR=0x50 I2C_MAP_ADDR=0x800 COMPACT_I2C=no ENDIAN=big 
 popd
 # Copy the files to the Binary package
-cp -f src/util/i2cConfig/i2cparam_c6472_be.out ibl_bin_$IBL_VERSION/c6472/le-be/i2cparam_c6472_be_0x800.out
+cp -f src/make/ibl_c6472/i2crom.dat ibl_bin_$IBL_VERSION/c6472/be/i2crom_0x50_c6472_be.dat
+cp -f src/util/i2cWrite/i2cWrite_be.out   ibl_bin_$IBL_VERSION/c6472/be/i2Write_c6472_be.out
+cp -f src/util/i2cConfig/i2cparam_c6472_be.out ibl_bin_$IBL_VERSION/c6472/be/i2cparam_c6472_be_0x800.out
 
 # Build c6474 EVM
 pushd src/make
@@ -83,8 +90,8 @@ popd
 # Copy the files to the Binary package
 cp -f src/make/ibl_c6474/i2crom_0x50_c6474_le.dat ibl_bin_$IBL_VERSION/c6474/le/
 cp -f src/make/ibl_c6474/i2crom_0x50_c6474_be.dat ibl_bin_$IBL_VERSION/c6474/be/
-cp -f src/util/i2cWrite/i2cWrite_le.out   ibl_bin_$IBL_VERSION/c6474/le/
-cp -f src/util/i2cWrite/i2cWrite_be.out   ibl_bin_$IBL_VERSION/c6474/be/
+cp -f src/util/i2cWrite/i2cWrite_le.out   ibl_bin_$IBL_VERSION/c6474/le/i2cWrite_c6474_le.out
+cp -f src/util/i2cWrite/i2cWrite_be.out   ibl_bin_$IBL_VERSION/c6474/be/i2cWrite_c6474_be.out
 cp -f src/util/i2cConfig/i2cparam_c6474_le.out   ibl_bin_$IBL_VERSION/c6474/le/
 cp -f src/util/i2cConfig/i2cparam_c6474_be.out   ibl_bin_$IBL_VERSION/c6474/be/
 
@@ -97,10 +104,10 @@ popd
 # Copy the files to the Binary package
 cp -f src/make/ibl_c6474/i2crom_0x50_c6474l_le.dat ibl_bin_$IBL_VERSION/c6474l/le/
 cp -f src/make/ibl_c6474/i2crom_0x50_c6474l_be.dat ibl_bin_$IBL_VERSION/c6474l/be/
-cp -f src/util/i2cWrite/i2cWrite_le.out   ibl_bin_$IBL_VERSION/c6474l/le/
-cp -f src/util/i2cWrite/i2cWrite_be.out   ibl_bin_$IBL_VERSION/c6474l/be/
-cp -f src/util/i2cConfig/i2cparam_c6474_le.out   ibl_bin_$IBL_VERSION/c6474l/le/
-cp -f src/util/i2cConfig/i2cparam_c6474_be.out   ibl_bin_$IBL_VERSION/c6474l/be/
+cp -f src/util/i2cWrite/i2cWrite_le.out   ibl_bin_$IBL_VERSION/c6474l/le/i2cWrite_c6474l_le.out
+cp -f src/util/i2cWrite/i2cWrite_be.out   ibl_bin_$IBL_VERSION/c6474l/be/i2cWrite_c6474l_be.out
+cp -f src/util/i2cConfig/i2cparam_c6474_le.out   ibl_bin_$IBL_VERSION/c6474l/le/i2cparam_c6474l_le.out
+cp -f src/util/i2cConfig/i2cparam_c6474_be.out   ibl_bin_$IBL_VERSION/c6474l/be/i2cparam_c6474l_be.out
 
 
 # Build c6457 EVM 
@@ -110,8 +117,8 @@ make evm_c6457
 popd
 cp -f src/make/ibl_c6457/i2crom_0x50_c6457_le.dat ibl_bin_$IBL_VERSION/c6457/le/
 cp -f src/make/ibl_c6457/i2crom_0x50_c6457_be.dat ibl_bin_$IBL_VERSION/c6457/be/
-cp -f src/util/i2cWrite/i2cWrite_le.out   ibl_bin_$IBL_VERSION/c6457/le/
-cp -f src/util/i2cWrite/i2cWrite_be.out   ibl_bin_$IBL_VERSION/c6457/be/
+cp -f src/util/i2cWrite/i2cWrite_le.out   ibl_bin_$IBL_VERSION/c6457/le/i2cWrite_c6457_le.out
+cp -f src/util/i2cWrite/i2cWrite_be.out   ibl_bin_$IBL_VERSION/c6457/be/i2cWrite_c6457_be.out
 cp -f src/util/i2cConfig/i2cparam_c6457_le.out   ibl_bin_$IBL_VERSION/c6457/le/
 cp -f src/util/i2cConfig/i2cparam_c6457_be.out   ibl_bin_$IBL_VERSION/c6457/be/
 
@@ -121,7 +128,7 @@ make clean
 make evm_c6678_i2c ENDIAN=little I2C_BUS_ADDR=0x51 
 popd
 cp -f src/make/ibl_c661x/i2crom.dat ibl_bin_$IBL_VERSION/c6678/le/i2crom_0x51_c6678_le.dat
-cp -f src/util/i2cWrite/i2cWrite_le.out   ibl_bin_$IBL_VERSION/c6678/le/
+cp -f src/util/i2cWrite/i2cWrite_le.out   ibl_bin_$IBL_VERSION/c6678/le/i2cWrite_c6678_le.out
 cp -f src/util/i2cConfig/i2cparam_c661x_le.out ibl_bin_$IBL_VERSION/c6678/le/i2cparam_c6678_le.out
 
 # Create Tar archive for binary package
index 4076feb3642236bb058219109b2c2b4de3c899d2..ce80f0b84c2d6302af5b4b389ade301963388415 100644 (file)
@@ -78,9 +78,11 @@ ifneq ($(UTIL),yes)
  ifeq ($(DEBUG),yes)
   CFLAGS  = -c -k -mi200 -ml3 -ms3 -o2 -pm -pds1111 -pds827 -pds824 -pds837 -pds1037 -pds195 -pds97 -pden -pdr $(CPUFLAGS)
  else
-  CFLAGS  = -c -k -mi200 -ml0 -ms3 -o3 -pm -pds1111 -pds827 -pds824 -pds837 -pds1037 -pds195 -pds97 -pden -pdr $(CPUFLAGS)
+# Always compile with -o2 as -o3 can possibly break endian neutral code */
+  CFLAGS  = -c -k -mi200 -ml0 -ms3 -o2 -pm -pds1111 -pds827 -pds824 -pds837 -pds1037 -pds195 -pds97 -pden -pdr $(CPUFLAGS)
  endif
 else
+# Always compile with -o2 as -o3 can possibly break endian neutral code */
  CFLAGS  = -c -k -mi200 -ml3 -ms3 -o2 -pm -pds1111 -pds827 -pds824 -pds837 -pds1037 -pds195 -pds97 -pden -pdr $(CPUFLAGS)
 endif
 
index ed71b44e138ac2945668e2f4542035909b3ca6b1..44364d3afb8fa8da6d9cfac8ee2f5cd2ad92fb70 100644 (file)
 @REM *\r
 @REM * USAGE:\r
 @REM *  setupenv.bat  \r
-@REM *              :bypass       \r
-@REM *                  configure environment without checking tools.  This option is\r
-@REM *                  is used when the user will manually configure the tools.\r
-@REM *  \r
-@REM *              :enable_write \r
-@REM *      [*** DANGEROUS OPTION ***]\r
-@REM *                  Updates the tool in local drive  \r
-@REM *               \r
-@REM *              :No arguments: Sets the environment for building, Verifies local\r
-@REM *               tools and reports if any tool update is required   \r
 @REM *\r
 @REM * Copyright (C) 2010, Texas Instruments, Inc.\r
 @REM *****************************************************************************\r
@@ -31,10 +21,12 @@ REM  Setup the ibl build environment
 REM Modify following lines based on target environment for the toolset installed \r
 REM Dependency is related to path for Cygwin and CGEN installed\r
 \r
-set PATH=G:\cygwin\bin;G:/PROGRA~1/TEXASI~1\ccsv5\tools\compiler\c6000\bin\r
+REM PATH=G:\cygwin\bin;C:\PROGRA~1\TEXASI~1\C6000C~1.12\bin\r
+\r
+set PATH=G:\cygwin\bin;t:\c6xx\cgen6_1_12\c6000\cgtools\bin\r
 set PATH=%PATH%;%SystemRoot%\system32;%SystemRoot%;\r
 set CYGWINPATH=G:/cygwin/bin\r
 set BISONSKEL=yacc.c\r
-set TOOLSC6X=G:/PROGRA~1/TEXASI~1/ccsv5/tools/compiler/c6000\r
-set TOOLSC6XDOS=G:\PROGRA~1\TEXASI~1\ccsv5\tools\compiler\c6000\r
+set TOOLSC6X=t:/c6xx/cgen6_1_12/c6000/cgtools\r
+set TOOLSC6XDOS=t:\c6xx\cgen6_1_12\c6000\cgtools\r
 \r
index 19193d969b262edfd309bdf2d8938fe43ce0fe61..40cc3b01e1dbc57547ba99a321371265960e43cb 100755 (executable)
@@ -726,7 +726,12 @@ hotmenu setConfig_c6678()
     ibl.bootModes[1].u.ethBoot.blob.branchAddress = 0x80000000;       /* Base of DDR2 */
 
        ibl.chkSum = 0;
+}
 
+hotmenu setConfig_c6678_emac()
+{
+    ibl.bootModes[0].priority = ibl_HIGHEST_PRIORITY+1;
+    ibl.bootModes[1].priority = ibl_HIGHEST_PRIORITY;
 }
 
 menuitem "EVM c6678 NAND Boot IBL";