Add kernel-headers package

This commit is contained in:
sin 2014-02-19 15:21:27 +00:00
parent fc884544f1
commit 24b4717b8a
2 changed files with 20 additions and 0 deletions

19
pkgs/kernel-headers Normal file
View File

@ -0,0 +1,19 @@
url=$mirror/kernel.tar.gz
version=3.10.12
fetch() {
wget -c $url -O src/kernel.tar.gz
}
unpack() {
cd src
[ -d linux-$version ] || tar xzf kernel.tar.gz
cd -
}
install() {
cd src/linux-$version
make ARCH="$arch" INSTALL_HDR_PATH="$root" headers_install
unlink "$root/include/include" # I don't know why it creates this bogus link
cd -
}

1
stage0
View File

@ -11,6 +11,7 @@ packages="crossmusl
zlib
tinyxlib
kernel
kernel-headers
emul
busybox
fs