summaryrefslogtreecommitdiff
path: root/sub/layout
diff options
context:
space:
mode:
authorLaurent Bercot <ska-skaware@skarnet.org>2020-01-29 17:53:09 +0000
committerLaurent Bercot <ska-skaware@skarnet.org>2020-01-29 17:53:09 +0000
commit99aaeae7550e879973cb175ab82f65353c31ee02 (patch)
tree5e9c517d6b04b6620e3ee8d3c278367e3dda391b /sub/layout
parent3340b5a93638ac45a63dc8454d3eb29e254794f9 (diff)
downloadlh-bootstrap-99aaeae7550e879973cb175ab82f65353c31ee02.tar.xz
Small incremental build fixes (41)
Diffstat (limited to 'sub/layout')
-rwxr-xr-xsub/layout/copylayout11
1 files changed, 5 insertions, 6 deletions
diff --git a/sub/layout/copylayout b/sub/layout/copylayout
index 01e1574..91f901f 100755
--- a/sub/layout/copylayout
+++ b/sub/layout/copylayout
@@ -3,12 +3,12 @@
output="$1"
s6-hiercopy layout/rootfs $output/rootfs
-chown -R 0:0 $output/rootfs $output/rwfs $output/userfs
find "$output/rootfs" -type f -name .empty -size 0c -exec s6-rmrf {} \;
s6-hiercopy layout/rwfs $output/rwfs
find "$output/rwfs" -type f -name .empty -size 0c -exec s6-rmrf {} \;
s6-hiercopy layout/userfs $output/userfs
find "$output/userfs" -type f -name .empty -size 0c -exec s6-rmrf {} \;
+chown -R 0:0 $output/rootfs $output/rwfs $output/userfs
buildtime=$(s6-clock)
@@ -24,13 +24,12 @@ done < sub/layout/permissions
# If dynamic: copy shared libs from the toolchain into the target
-if ! ${BUILD_HOST_STATIC} ; then
- sysroot=`${BUILD_HOST_CC} -print-sysroot`
+if ${LIBC_COPY} ; then
for lib in lib lib32 lib64 ; do
- if s6-test -d "$sysroot/$lib" ; then
+ if s6-test -d "$LIBC_SYSROOT/$lib" ; then
s6-mkdir -p "$output/rootfs/$lib"
- for i in `ls -1 "$sysroot/$lib" | grep -e '\.so$' -e '\.so\.'` ; do
- s6-hiercopy "$sysroot/$lib/$i" "$output/rootfs/$lib/$i"
+ for i in `ls -1 "$LIBC_SYSROOT/$lib" | grep -e '\.so$' -e '\.so\.'` ; do
+ s6-hiercopy "$LIBC_SYSROOT/$lib/$i" "$output/rootfs/$lib/$i"
done
fi
done