Dyad/rex.project/x86_64/components/create_sysroot_dirs.bash

16 lines
431 B
Bash
Raw Normal View History

2023-02-19 07:39:41 +00:00
#!/usr/bin/env bash
mkdir -pv ${dir_sysroot}/{etc,var} ${dir_sysroot}/usr/{bin,lib,sbin} || echofail "Creating sysroot directories..."
for i in bin lib sbin; do
ln -sv usr/$i ${dir_sysroot}/$i || echofail "Creating sysroot symlinks for bin,lib,sbin"
done
case $(uname -m) in
x86_64)
mkdir -pv ${dir_sysroot}/lib64 || echofail "Creating /lib64"
;;
esac
mkdir -v ${TEMP_STAGE_DIR} || echofail "Creating ${TEMP_STAGE_DIR}"