summaryrefslogtreecommitdiffstats
path: root/src/build/tools
diff options
context:
space:
mode:
authorDan Crowell <dcrowell@us.ibm.com>2011-09-27 09:51:50 -0500
committerDaniel M. Crowell <dcrowell@us.ibm.com>2011-10-14 13:33:32 -0500
commitd6ce3b30395982623494ad75c50e75c56fadcaca (patch)
tree82a38e66e28e7f824f597875f994c6b60efa6281 /src/build/tools
parent17f630f5c2fabea998708dc2b2cb33120c388079 (diff)
downloadtalos-hostboot-d6ce3b30395982623494ad75c50e75c56fadcaca.tar.gz
talos-hostboot-d6ce3b30395982623494ad75c50e75c56fadcaca.zip
Pull FSI data from real attributes (Task 3909).
There are a group of attributes defined for FSI now. -ATTR_FSI_MASTER_CHIP -ATTR_FSI_MASTER_TYPE -ATTR_FSI_MASTER_PORT -ATTR_FSI_SLAVE_CASCADE -ATTR_FSI_OPTION_FLAGS Also includes work for Story 3996. The attributes are now broken into 3 distinct pieces: - attribute_types.xml : defines hostboot attributes - target_types.xml : defines different types of targets - XXX.system.xml : system-specific information, equivalent to what we'll get from system workbook These are then used to generic system-specific binaries, currently for 3 platforms: - simics_SALERNO_targeting.bin - simics_VENICE_targeting.bin - vbu_targeting.bin Change-Id: I2bf920cc62cceb761ab44a07df433da44249d0e0 Reviewed-on: http://gfw160.austin.ibm.com:8080/gerrit/426 Tested-by: Jenkins Server Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
Diffstat (limited to 'src/build/tools')
-rwxr-xr-xsrc/build/tools/cpfiles.pl25
-rwxr-xr-xsrc/build/tools/hb8
2 files changed, 30 insertions, 3 deletions
diff --git a/src/build/tools/cpfiles.pl b/src/build/tools/cpfiles.pl
index 7121892c1..79c794335 100755
--- a/src/build/tools/cpfiles.pl
+++ b/src/build/tools/cpfiles.pl
@@ -69,7 +69,9 @@ my @files = ("src/build/tools/hb-parsedump.pl",
"img/hbicore_extended.bin",
"img/hbicore_test_extended.bin",
"img/pnor.toc",
- "img/targeting.bin",
+ "img/simics_SALERNO_targeting.bin",
+ "img/simics_VENICE_targeting.bin",
+ "img/vbu_targeting.bin",
);
#Directories in base git repository
@@ -128,6 +130,8 @@ my $simicsDir = "";
my $imgDir = "";
my $sandbox = $ENV{'SANDBOXBASE'};
+my $machine = $ENV{'MACHINE'};
+#print "machine = $machine\n";
if ($inDir ne "")
{
@@ -260,9 +264,28 @@ foreach (@files)
{
print "$command\n";
`$command`;
+ if( $? != 0 )
+ {
+ print "ERROR : exiting\n";
+ exit(-1);
+ }
}
+
+}
+
+# create a sym-link to the appropriate targeting binary
+print "Linking in simics_".$machine.".targeting.bin\n";
+$command = sprintf("ln -sf %s/simics_%s_targeting.bin %s/targeting.bin", $imgDir, $machine, $imgDir );
+print "$command\n";
+`$command`;
+if( $? != 0 )
+{
+ print "ERROR : exiting\n";
+ exit(-1);
}
+
+
chdir $cwd;
#print "cwd: ", getcwd()."\n";
diff --git a/src/build/tools/hb b/src/build/tools/hb
index 9b9d51392..2a2f2e930 100755
--- a/src/build/tools/hb
+++ b/src/build/tools/hb
@@ -259,7 +259,7 @@ hb_simsetup()
mksb -rc ${SANDBOXRC} -dir ${SANDBOXROOT} -back $DRIVER \
-sb ${SANDBOXNAME} -m ppc
- execute_in_sandbox "start_simics -no_start -machine ${MACHINE:-SALERNO}"
+ execute_in_sandbox "start_simics -no_start -machine ${MACHINE:-$DEFAULT_MACHINE}"
echo "Running workarounds."
cp ${HOSTBOOTROOT}/src/build/citest/etc/workarounds ${SANDBOXBASE}/src
@@ -291,7 +291,7 @@ hb_startsimics()
fi
execute_in_sandbox \
- "start_simics -machine ${MACHINE:-SALERNO} ${SIMICSOPTIONS} $*"
+ "start_simics -machine ${MACHINE:-$DEFAULT_MACHINE} ${SIMICSOPTIONS} $*"
}
hb_rsync()
@@ -336,6 +336,10 @@ fi
FIRST_PARAM=$1
shift
+MACHINE=${MACHINE:-$DEFAULT_MACHINE}
+export MACHINE
+echo "Setting up for Machine = $MACHINE"
+
case ${FIRST_PARAM} in
workon)
hb_workon $*
OpenPOWER on IntegriCloud