- In the makefile header get the name of the Makefile correct

git-svn-id: svn://svn.coreboot.org/coreboot/trunk@1752 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
This commit is contained in:
Eric Biederman 2004-11-05 08:50:54 +00:00
parent 0e99655670
commit c149210462
2 changed files with 18 additions and 16 deletions

View File

@ -11,6 +11,7 @@
# archive for more details. # archive for more details.
# #
#set -x # Turn echo on....
# Where shall we place all the build trees? # Where shall we place all the build trees?
TARGET=$( pwd )/linuxbios-builds TARGET=$( pwd )/linuxbios-builds
@ -33,7 +34,7 @@ function vendors
{ {
# make this a function so we can easily select # make this a function so we can easily select
# without breaking readability # without breaking readability
ls -1 $LBROOT/src/mainboard | grep -v CVS ls -1 "$LBROOT/src/mainboard" | grep -v CVS
} }
function mainboards function mainboards
@ -253,32 +254,33 @@ target=""
buildall=false buildall=false
# parse parameters # parse parameters
args=`getopt -l version,verbose,help,all,target: Vvhat: $*` args=`getopt -l version,verbose,help,all,target: Vvhat: -- "$@"`
if [ $? != 0 ]; then if [ $? != 0 ]; then
myhelp myhelp
exit 1 exit 1
fi fi
set -- $args eval set -- "$args"
for arg while true ; do
do case $1 in
case $arg in -t|--target) shift; target=$1; shift;;
-t|--target) shift;target=$1;shift;; -a|--all) shift; buildall=true;;
-a|--all) shift;buildall=true;; -v|--verbose) shift; verbose=true;;
-v|--verbose) shift;verbose=true;; -V|--version) shift; myversion;;
-V|--version) shift;myversion;; -h|--help) shift; myhelp;;
-h|--help) shift;myhelp;; --) shift; break;;
*) echo "Unrecognized argument" ; exit 1 ;;
esac esac
done done
# -- is $1 LBROOT=$1
LBROOT=$2
# /path/to/freebios2/ # /path/to/freebios2/
if [ -z "$LBROOT" ] ; then if [ -z "$LBROOT" ] ; then
LBROOT=$( cd ../..; pwd ) LBROOT=$( cd ../..; pwd )
fi fi
echo "LBROOT=$LBROOT"
if [ "$target" != "" ]; then if [ "$target" != "" ]; then
# build a single board # build a single board

View File

@ -1902,8 +1902,8 @@ parser Config:
#============================================================================= #=============================================================================
def writemakefileheader(file, fname): def writemakefileheader(file, fname):
file.write("# File: %s is autogenerated\n" % fname) file.write("# File: %s is autogenerated\n" % fname)
file.write("Makefile: %s %s\n" file.write("%s: %s %s\n"
% (os.path.abspath(sys.argv[0]), top_config_file)) % (os.path.basename(fname), os.path.abspath(sys.argv[0]), top_config_file))
file.write("\t(cd %s ; %s %s %s)\n\n" file.write("\t(cd %s ; %s %s %s)\n\n"
% (os.getcwd(), sys.argv[0], sys.argv[1], sys.argv[2])) % (os.getcwd(), sys.argv[0], sys.argv[1], sys.argv[2]))