Skip to content

Commit

Permalink
feat: remove kernel library and headers from dist
Browse files Browse the repository at this point in the history
Signed-off-by: Martin Kröning <[email protected]>
  • Loading branch information
mkroening committed Aug 13, 2024
1 parent e1bbe99 commit 66eb61d
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions toolchain.sh
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,6 @@ if [ ! -d "gcc" ]; then
git clone $CLONE_DEPTH https://github.com/hermit-os/gcc.git
fi

if [ ! -d "hermit" ]; then
git clone --recursive -b master https://github.com/hermit-os/hermit-playground hermit
fi

if [ ! -d "kernel" ]; then
git clone https://github.com/hermit-os/kernel
fi
Expand Down Expand Up @@ -97,15 +93,13 @@ make install-gcc
cd -
fi

cp -r hermit/include $PREFIX/x86_64-hermit

cd kernel
cargo xtask build \
--arch x86_64 \
--release \
--no-default-features \
--features pci,smp,acpi,newlib,tcp,dhcpv4
cp target/x86_64/release/libhermit.a $PREFIX/x86_64-hermit/lib
export LDFLAGS_FOR_TARGET="-L$PWD/target/x86_64/release -lhermit"
cd -

if [ ! -d "tmp/newlib" ]; then
Expand Down

0 comments on commit 66eb61d

Please sign in to comment.