From 9b7986790900a3a81edd879ea31583670977496f Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Sat, 14 Aug 2021 20:24:43 +0200 Subject: [PATCH] Toolchain: Make Kernel/API/ headers available during toolchain build --- Toolchain/BuildIt.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Toolchain/BuildIt.sh b/Toolchain/BuildIt.sh index 6b4eba77d48..4f411c0b36c 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