diff options
author | Patrick Williams <iawillia@us.ibm.com> | 2011-11-07 16:23:00 -0600 |
---|---|---|
committer | A. Patrick Williams III <iawillia@us.ibm.com> | 2011-11-16 12:56:42 -0600 |
commit | 032c54f4f03414618499a6717890a408e80acb77 (patch) | |
tree | c3fb15cdd4cb5119937b8b11cedb52aa05e49cc7 /src/build/tools/cpfiles.pl | |
parent | 1e3a888edab060be5b016aff86a5d547b5be6643 (diff) | |
download | blackbird-hostboot-032c54f4f03414618499a6717890a408e80acb77.tar.gz blackbird-hostboot-032c54f4f03414618499a6717890a408e80acb77.zip |
Simics implementation of debug framework.
Change-Id: Ie9f6963070ced0a39c2e62f685c79d6da01fdcdb
Reviewed-on: http://gfw160.austin.ibm.com:8080/gerrit/488
Tested-by: Jenkins Server
Reviewed-by: Andrew J. Geissler <andrewg@us.ibm.com>
Reviewed-by: Monte K. Copeland <copelanm@us.ibm.com>
Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
Diffstat (limited to 'src/build/tools/cpfiles.pl')
-rwxr-xr-x | src/build/tools/cpfiles.pl | 21 |
1 files changed, 16 insertions, 5 deletions
diff --git a/src/build/tools/cpfiles.pl b/src/build/tools/cpfiles.pl index 5ee77afe3..8828ae7a7 100755 --- a/src/build/tools/cpfiles.pl +++ b/src/build/tools/cpfiles.pl @@ -58,6 +58,9 @@ sub printUsage; my @files = ("src/build/tools/hb-parsedump.pl", "src/build/simics/hb-simdebug.py", "src/build/simics/post_model_hook.simics", + "src/build/debug/Hostboot", + "src/build/debug/simics-debug-framework.pl", + "src/build/debug/simics-debug-framework.py", "img/errlparser", "img/hbotStringFile", "img/hbicore.syms", @@ -68,6 +71,8 @@ my @files = ("src/build/tools/hb-parsedump.pl", "img/hbicore_test.list", "img/hbicore_extended.bin", "img/hbicore_test_extended.bin", + "img/hbicore.bin.modinfo", + "img/hbicore_test.bin.modinfo", "img/pnor.toc", "img/simics_SALERNO_targeting.bin", "img/simics_VENICE_targeting.bin", @@ -216,6 +221,8 @@ foreach (@files) my($filename, $directories, $suffix) = fileparse($_, qr{\..*}); #print "$filename, $directories, $suffix\n"; + my $recursive = (-d $_) ? "-r" : ""; + #Copy .bin to the img dir if (($suffix eq ".bin") || ($suffix eq ".toc")) @@ -228,7 +235,8 @@ foreach (@files) } #Delete the old file first (handles copying over symlinks) - $command = sprintf("rm -f %s/%s%s", $copyDir, $filename, $suffix); + $command = sprintf("rm -f %s %s/%s%s", $recursive, + $copyDir, $filename, $suffix); if ($command ne "") { print "$command\n"; @@ -243,20 +251,23 @@ foreach (@files) #Copy test versions to hbicore.<syms|bin|list> if ($filename eq "hbicore_test") { - $command = sprintf("cp %s %s", $_, $copyDir."/hbicore".$suffix); + $command = sprintf("cp %s %s %s", $recursive, + $_, $copyDir."/hbicore".$suffix); } elsif ($filename eq "hbicore_test_extended") { - $command = sprintf("cp %s %s", $_, $copyDir."/hbicore_extended".$suffix); + $command = sprintf("cp %s %s %s", $recursive, + $_, $copyDir."/hbicore_extended".$suffix); } elsif ($filename ne "hbicore" and $filename ne "hbicore_extended") { - $command = sprintf("cp %s %s", $_, $copyDir); + $command = sprintf("cp %s %s %s", $recursive, + $_, $copyDir); } } else { - $command = sprintf("cp %s %s", $_, $copyDir); + $command = sprintf("cp %s %s %s", $recursive, $_, $copyDir); } # Copy the file |