- fix dependency rule for Makefile and Makefile.settings

The make dependency rule for Makefile and Makefile.settings was completely broken.  No way it ever worked.
OLPC buildrom flushed out this issue.

If you updated the Config.lb file in your target/<mfg>/<mainboard> directory and then switched to 
target/<mfg>/<mainboard>/<target> and ran 'make' you would get a permission denied error due to the 
make file trying to run 'config.py' directly rather than 'python config.py'
We never saw this because we always run target/buildtarget <target> and that sets up everything
correctly.



git-svn-id: svn://svn.coreboot.org/coreboot/trunk@2373 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
This commit is contained in:
Richard Smith 2006-08-11 06:49:39 +00:00
parent f8519dc8dc
commit 273595c6f7
1 changed files with 2 additions and 2 deletions

View File

@ -1933,8 +1933,8 @@ def writemakefileheader(file, fname):
def writemakefilefooter(file, fname):
file.write("\n\n%s: %s %s\n"
% (os.path.basename(fname), os.path.abspath(sys.argv[0]), top_config_file))
file.write("\t(cd %s ; %s %s %s)\n\n"
% (os.getcwd(), sys.argv[0], sys.argv[1], sys.argv[2]))
file.write("\t(cd %s ; export PYTHONPATH=%s/util/newconfig ; python %s %s %s)\n\n"
% (os.getcwd(), treetop, sys.argv[0], sys.argv[1], sys.argv[2]))
def writemakefilesettings(path):
""" Write Makefile.settings to seperate the settings