summaryrefslogtreecommitdiff
path: root/util
diff options
context:
space:
mode:
authorStefan Reinauer <stepan@coreboot.org>2010-12-11 22:07:07 +0000
committerStefan Reinauer <stepan@openbios.org>2010-12-11 22:07:07 +0000
commite7a30ee1663ebce8cfec3c2fb21eee8e1c1246a2 (patch)
tree2634e53efb803439f6e2b7b6692ff006702f289b /util
parent8677a23d5b053d550f70246de9c7dc8fd4e2fbf9 (diff)
downloadcoreboot-e7a30ee1663ebce8cfec3c2fb21eee8e1c1246a2.tar.xz
Don't skip already built targets anymore, because a recent change could have
broken them again. Instead rely on coreboot's dependencies to figure out what to rebuild. Signed-off-by: Stefan Reinauer <stepan@coreboot.org> Acked-by: Peter Stuge <peter@stuge.se> git-svn-id: svn://svn.coreboot.org/coreboot/trunk@6162 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
Diffstat (limited to 'util')
-rwxr-xr-xutil/abuild/abuild42
1 files changed, 12 insertions, 30 deletions
diff --git a/util/abuild/abuild b/util/abuild/abuild
index 8b292ddcb8..d580cd8668 100755
--- a/util/abuild/abuild
+++ b/util/abuild/abuild
@@ -14,8 +14,8 @@
#set -x # Turn echo on....
-ABUILD_DATE="January 29th, 2010"
-ABUILD_VERSION="0.9"
+ABUILD_DATE="December 10th, 2010"
+ABUILD_VERSION="0.9.1"
# Where shall we place all the build trees?
TARGET=coreboot-builds
@@ -154,7 +154,6 @@ function create_config
fi
[ "$update" = "true" ] && mv ${build_dir}/coreboot.rom coreboot.rom.tmp
- $MAKE distclean obj=${build_dir}
mkdir -p ${build_dir}
mkdir -p $TARGET/sharedutils
[ "$update" = "true" ] && mv coreboot.rom.tmp ${build_dir}/coreboot.rom
@@ -240,12 +239,18 @@ function create_buildenv
# Allow simple "make" in the target directory
MAKEFILE=$TARGET/${VENDOR}_${MAINBOARD}/Makefile
- echo "# autogenerated makefile" > $MAKEFILE
+ echo "# autogenerated" > $MAKEFILE
echo "TOP=$ROOT" >> $MAKEFILE
- echo "OUT=$TARGET/${VENDOR}_${MAINBOARD}" >> $MAKEFILE
+ echo "BUILD=$TARGET" >> $MAKEFILE
+ echo "OBJ=\$(BUILD)/${VENDOR}_${MAINBOARD}" >> $MAKEFILE
+ echo "OBJUTIL=\$(BUILD)/sharedutils" >> $MAKEFILE
echo "all:" >> $MAKEFILE
- echo " cd \$(TOP); \$(MAKE) oldconfig DOTCONFIG=\$(OUT)/config.build obj=\$(OUT)" >> $MAKEFILE
- echo " cd \$(TOP); \$(MAKE) DOTCONFIG=\$(OUT)/config.build obj=\$(OUT)" >> $MAKEFILE
+ echo " @cp -a config.h config.h.bak" >> $MAKEFILE
+ echo " @cd \$(TOP); \$(MAKE) oldconfig DOTCONFIG=\$(OBJ)/config.build objutil=\$(OBJUTIL) obj=\$(OBJ)" >> $MAKEFILE
+ echo " @tail -n+6 config.h > config.new; tail -n+6 config.h.bak > config.old" >> $MAKEFILE
+ echo " @cmp -s config.new config.old && cp -a config.h.bak config.h || echo \"Config file changed\"" >> $MAKEFILE
+ echo " @rm config.h.bak config.new config.old" >> $MAKEFILE
+ echo " @cd \$(TOP); \$(MAKE) DOTCONFIG=\$(OBJ)/config.build objutil=\$(OBJUTIL) obj=\$(OBJ)" >> $MAKEFILE
return $ret
}
@@ -292,20 +297,6 @@ function compile_target
fi
}
-function built_successfully
-{
- CURR=`pwd`
- status="fail"
- if [ -d "$TARGET/${VENDOR}_${MAINBOARD}" ]; then
- cd $TARGET/${VENDOR}_${MAINBOARD}
- if [ -r compile.status ] ; then
- status=`cat compile.status`
- fi
- cd $CURR
- fi
- [ "$buildall" != "true" -a "$status" == "ok" ]
-}
-
function build_broken
{
CURR=`pwd`
@@ -406,15 +397,6 @@ function build_target
CC="$CC -fno-stack-protector"
fi
- built_successfully $VENDOR $MAINBOARD && test $update = "false" && \
- {
- printf " ( mainboard/$VENDOR/$MAINBOARD previously ok )\n\n"
- xml " <status>previouslyok</status>"
- xml ""
- xml "</mainboard>"
- return 0
- }
-
build_broken $VENDOR $MAINBOARD || \
{
printf " ( broken mainboard/$VENDOR/$MAINBOARD skipped )\n\n"