Skip to content
Snippets Groups Projects
Commit 289c5227 authored by wufei's avatar wufei
Browse files

b=11500

r=green

Add ccache/distcc support to lbuild.
parent d9e74adc
No related branches found
No related tags found
No related merge requests found
...@@ -261,6 +261,25 @@ load_target() ...@@ -261,6 +261,25 @@ load_target()
fi fi
} }
# do these after load_target(), which maybe export CC
setup_ccache_distcc()
{
# distcc can't handle ".incbin"
if [ "$TARGET" == "2.6-suse" -o "$TARGET" == "2.6-rhel4" ]; then
if [ "$TARGET_ARCH" == "x86_64" ]; then
unset DISTCC
fi
fi
CC=${CC:-gcc}
if [ "$CCACHE" ]; then
CC="$CCACHE $CC"
[ "$DISTCC" ] && export CCACHE_PREFIX="$DISTCC"
else
[ "$DISTCC" ] && CC="$DISTCC $CC"
fi
}
tarflags() tarflags()
{ {
case "$1" in case "$1" in
...@@ -787,6 +806,7 @@ done ...@@ -787,6 +806,7 @@ done
check_options check_options
load_target load_target
setup_ccache_distcc
extract_kernel extract_kernel
patch_kernel patch_kernel
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment