summaryrefslogtreecommitdiff
path: root/Toolchain
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2021-08-14 20:24:43 +0200
committerAndreas Kling <kling@serenityos.org>2021-08-14 20:25:56 +0200
commit9b7986790900a3a81edd879ea31583670977496f (patch)
tree519faaff262f975550a70c40bd428b0eb4e468b6 /Toolchain
parent1f71d7bf223f05ac322bb92159479c72ac4716a8 (diff)
downloadserenity-9b7986790900a3a81edd879ea31583670977496f.zip
Toolchain: Make Kernel/API/ headers available during toolchain build
Diffstat (limited to 'Toolchain')
-rwxr-xr-xToolchain/BuildIt.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/Toolchain/BuildIt.sh b/Toolchain/BuildIt.sh
index 6b4eba77d4..4f411c0b36 100755
--- a/Toolchain/BuildIt.sh
+++ b/Toolchain/BuildIt.sh
@@ -289,9 +289,9 @@ pushd "$DIR/Build/$ARCH"
pushd "$BUILD"
mkdir -p Root/usr/include/
SRC_ROOT=$($REALPATH "$DIR"/..)
- FILES=$(find "$SRC_ROOT"/Userland/Libraries/LibC "$SRC_ROOT"/Userland/Libraries/LibM "$SRC_ROOT"/Userland/Libraries/LibPthread -name '*.h' -print)
+ FILES=$(find "$SRC_ROOT"/Kernel/API "$SRC_ROOT"/Userland/Libraries/LibC "$SRC_ROOT"/Userland/Libraries/LibM "$SRC_ROOT"/Userland/Libraries/LibPthread -name '*.h' -print)
for header in $FILES; do
- target=$(echo "$header" | sed -e "s@$SRC_ROOT/Userland/Libraries/LibC@@" -e "s@$SRC_ROOT/Userland/Libraries/LibM@@" -e "s@$SRC_ROOT/Userland/Libraries/LibPthread@@")
+ target=$(echo "$header" | sed -e "s@$SRC_ROOT/Userland/Libraries/LibC@@" -e "s@$SRC_ROOT/Userland/Libraries/LibM@@" -e "s@$SRC_ROOT/Userland/Libraries/LibPthread@@" -e "s@$SRC_ROOT/Kernel/@Kernel/@")
buildstep "system_headers" $INSTALL -D "$header" "Root/usr/include/$target"
done
unset SRC_ROOT