Fix using custom build configs in abuild
authorMathias Krause <mathias.krause@secunet.com>
Tue, 1 Feb 2011 10:42:52 +0000 (10:42 +0000)
committerPatrick Georgi <patrick.georgi@coresystems.de>
Tue, 1 Feb 2011 10:42:52 +0000 (10:42 +0000)
The undocumented config argument for the -t option implicitly assumes
the config file is within the mainboard directory but fails to honor
this assumption when it comes to copying the file.

Signed-off-by: Mathias Krause <mathias.krause@secunet.com>
Acked-by: Patrick Georgi <patrick.georgi@secunet.com>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@6324 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

util/abuild/abuild

index 365bacd2e705a7de707f60bf1d11e8caf1fcc929..2040709cd7ced23059b41ff17ea598ff640d035f 100755 (executable)
@@ -161,7 +161,7 @@ function create_config
        if [ "$CONFIG" != "" ]; then
                printf "  Using existing configuration $CONFIG ... "
                xml "  <config>$CONFIG</config>"
-               cp $CONFIG ${build_dir}/config.build
+               cp src/mainboard/$VENDOR/$MAINBOARD/$CONFIG ${build_dir}/config.build
        else
                printf "  Creating config file... "
                xml "  <config>autogenerated</config>"