Mercurial > hg > aboriginal
changeset 1200:8651437b2b44
Add DEBUG_PACKAGE config variable to build just one package with CPUS=1.
author | Rob Landley <rob@landley.net> |
---|---|
date | Tue, 10 Aug 2010 00:04:30 -0500 |
parents | 9211775aea66 |
children | f586c51624d3 |
files | config sources/functions.sh |
diffstat | 2 files changed, 10 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/config Tue Aug 10 00:03:38 2010 -0500 +++ b/config Tue Aug 10 00:04:30 2010 -0500 @@ -151,6 +151,12 @@ # export CPUS=1 +# If set, list of packages to build with CPUS=1. (Faster than setting CPUS=1 +# for the whole build if you know ahead of time which package is going to +# break.) + +# export DEBUG_PACKAGE=bash,busybox + # This isn't actually one of our variables, but a number of packages listen # to this to add extra debug info to their binaries. (Use with SKIP_STRIP)
--- a/sources/functions.sh Tue Aug 10 00:03:38 2010 -0500 +++ b/sources/functions.sh Tue Aug 10 00:04:30 2010 -0500 @@ -76,6 +76,9 @@ # insane rant from the glibc maintainer about why he doesn't care. is_in_list $1 $BUILD_STATIC && [ ! -z "$ARCH" ] && STATIC_FLAGS="--static" + OLDCPUS=$CPUS + is_in_list $1 $DEBUG_PACKAGE && CPUS=1 + if [ -e "$SOURCES/sections/$1".build ] then setupfor "$1" @@ -85,6 +88,7 @@ echo "=== build section $1" . "$SOURCES"/sections/"$1".sh fi + CPUS=$OLDCPUS } # Find appropriate miniconfig file