summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xsysroot.sh6
1 files changed, 6 insertions, 0 deletions
diff --git a/sysroot.sh b/sysroot.sh
index 819d8b7..77ad994 100755
--- a/sysroot.sh
+++ b/sysroot.sh
@@ -44,6 +44,12 @@ wget -qO- "${repository}dists/${distribution}/${component}/binary-${architecture
rm -f *.deb
+if substrate=$(readlink usr/include/substrate.h); then
+ if [[ ${substrate} == /* ]]; then
+ ln -sf "../..${substrate}" usr/include/substrate.h
+ fi
+fi
+
mkdir -p usr/include
cd usr/include