From 273595c6f7adf87f733e95285948aa9dc7564ef1 Mon Sep 17 00:00:00 2001 From: Richard Smith Date: Fri, 11 Aug 2006 06:49:39 +0000 Subject: [PATCH] - 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// directory and then switched to 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 and that sets up everything correctly. git-svn-id: svn://svn.coreboot.org/coreboot/trunk@2373 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1 --- util/newconfig/config.g | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/util/newconfig/config.g b/util/newconfig/config.g index fbd3dcc6ac..f3d68dffc7 100644 --- a/util/newconfig/config.g +++ b/util/newconfig/config.g @@ -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