summaryrefslogtreecommitdiff
path: root/auto/build
diff options
context:
space:
mode:
authorAndreas Loibl <andreas@andreas-loibl.de>2011-03-04 04:32:52 +0100
committerAndreas Loibl <andreas@andreas-loibl.de>2011-03-04 04:35:00 +0100
commit7f27ceef2c084d6c57d784ab258c517ef2d6d021 (patch)
treeab03586da6322cd0d2df7e24d4a94c0543c21603 /auto/build
parentc78afd40e7abd52f363c763421f35a07e90bdc10 (diff)
downloadkanotix-7f27ceef2c084d6c57d784ab258c517ef2d6d021.zip
kanotix-7f27ceef2c084d6c57d784ab258c517ef2d6d021.tar.gz
separate bootstap-cache for 32 and 64 bit
Diffstat (limited to 'auto/build')
-rwxr-xr-xauto/build8
1 files changed, 7 insertions, 1 deletions
diff --git a/auto/build b/auto/build
index 376a80d..733e76c 100755
--- a/auto/build
+++ b/auto/build
@@ -30,11 +30,17 @@ prebuild()
# make current build configuration available for hooks inside chroot
mkdir -p config/chroot_local-includes/root
cat config/* 2>/dev/null | grep ^LB_ > config/chroot_local-includes/root/build.conf
+
+ if [ -d cache/stages_bootstrap ]; then
+ bsbit=$(file cache/stages_bootstrap/bin/true | grep -q "ELF 64-bit" && echo 64 || echo 32)
+ mv cache/stages_bootstrap cache/stages_bootstrap$bsbit
+ fi
+ [ -d cache/stages_bootstrap$bit ] && mv cache/stages_bootstrap$bit cache/stages_bootstrap
}
postbuild()
{
- :
+ [ -d cache/stages_bootstrap ] && mv cache/stages_bootstrap cache/stages_bootstrap$bit
}
if [ "$LB_KANOTIX_TMPFS" = "true" ]; then