Mercurial > hg > aboriginal
comparison sources/functions.sh @ 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 | aa8992b35e15 |
children | ac8d9db5cf37 |
comparison
equal
deleted
inserted
replaced
1199:9211775aea66 | 1200:8651437b2b44 |
---|---|
74 # Don't build anything statically in host-tools, glibc is broken. | 74 # Don't build anything statically in host-tools, glibc is broken. |
75 # See http://people.redhat.com/drepper/no_static_linking.html for | 75 # See http://people.redhat.com/drepper/no_static_linking.html for |
76 # insane rant from the glibc maintainer about why he doesn't care. | 76 # insane rant from the glibc maintainer about why he doesn't care. |
77 is_in_list $1 $BUILD_STATIC && [ ! -z "$ARCH" ] && STATIC_FLAGS="--static" | 77 is_in_list $1 $BUILD_STATIC && [ ! -z "$ARCH" ] && STATIC_FLAGS="--static" |
78 | 78 |
79 OLDCPUS=$CPUS | |
80 is_in_list $1 $DEBUG_PACKAGE && CPUS=1 | |
81 | |
79 if [ -e "$SOURCES/sections/$1".build ] | 82 if [ -e "$SOURCES/sections/$1".build ] |
80 then | 83 then |
81 setupfor "$1" | 84 setupfor "$1" |
82 . "$SOURCES/sections/$1".build | 85 . "$SOURCES/sections/$1".build |
83 cleanup | 86 cleanup |
84 else | 87 else |
85 echo "=== build section $1" | 88 echo "=== build section $1" |
86 . "$SOURCES"/sections/"$1".sh | 89 . "$SOURCES"/sections/"$1".sh |
87 fi | 90 fi |
91 CPUS=$OLDCPUS | |
88 } | 92 } |
89 | 93 |
90 # Find appropriate miniconfig file | 94 # Find appropriate miniconfig file |
91 | 95 |
92 getconfig() | 96 getconfig() |