linux: smaller kernel
This commit is contained in:
parent
43f9c5535b
commit
4dc9b0c175
1 changed files with 5 additions and 1 deletions
|
@ -6,9 +6,9 @@ ext="dev"
|
||||||
fetch() {
|
fetch() {
|
||||||
curl "https://cdn.kernel.org/pub/linux/kernel/v5.x/$pkgname-$pkgver.tar.xz" -o $pkgname-$pkgver.tar.xz
|
curl "https://cdn.kernel.org/pub/linux/kernel/v5.x/$pkgname-$pkgver.tar.xz" -o $pkgname-$pkgver.tar.xz
|
||||||
tar -xf $pkgname-$pkgver.tar.xz
|
tar -xf $pkgname-$pkgver.tar.xz
|
||||||
cd $pkgname-$pkgver
|
|
||||||
# use Alpine's kernel config so we don't have to maintain one
|
# use Alpine's kernel config so we don't have to maintain one
|
||||||
curl "https://git.alpinelinux.org/aports/plain/community/linux-edge/config-edge.$(uname -m)" -o .config
|
curl "https://git.alpinelinux.org/aports/plain/community/linux-edge/config-edge.$(uname -m)" -o .config
|
||||||
|
cd $pkgname-$pkgver
|
||||||
}
|
}
|
||||||
|
|
||||||
_arch=$ARCH
|
_arch=$ARCH
|
||||||
|
@ -25,6 +25,7 @@ fi
|
||||||
|
|
||||||
build() {
|
build() {
|
||||||
cd $pkgname-$pkgver
|
cd $pkgname-$pkgver
|
||||||
|
cp ../.config .
|
||||||
bad --gmake gmake CC=clang HOSTCC=clang YACC=yacc LLVM=1 LLVM_IAS=1 ARCH=$_arch mod2yesconfig
|
bad --gmake gmake CC=clang HOSTCC=clang YACC=yacc LLVM=1 LLVM_IAS=1 ARCH=$_arch mod2yesconfig
|
||||||
./scripts/config -m CONFIG_DRM
|
./scripts/config -m CONFIG_DRM
|
||||||
./scripts/config -m CONFIG_SND
|
./scripts/config -m CONFIG_SND
|
||||||
|
@ -32,6 +33,9 @@ build() {
|
||||||
./scripts/config -m CONFIG_BT
|
./scripts/config -m CONFIG_BT
|
||||||
./scripts/config -m CONFIG_IPV6
|
./scripts/config -m CONFIG_IPV6
|
||||||
./scripts/config -m CONFIG_MEDIA_SUPPORT
|
./scripts/config -m CONFIG_MEDIA_SUPPORT
|
||||||
|
./scripts/config -m CONFIG_FIREWIRE
|
||||||
|
./scripts/config -m CONFIG_USB4
|
||||||
|
./scripts/config -m CONFIG_FW_LOADER
|
||||||
|
|
||||||
bad --gmake gmake CC=clang HOSTCC=clang YACC=yacc LLVM=1 LLVM_IAS=1 ARCH=$_arch olddefconfig
|
bad --gmake gmake CC=clang HOSTCC=clang YACC=yacc LLVM=1 LLVM_IAS=1 ARCH=$_arch olddefconfig
|
||||||
sed -i 's/CONFIG_UNWINDER_ORC=y/# CONFIG_UNWINDER_ORC is not set/g' .config
|
sed -i 's/CONFIG_UNWINDER_ORC=y/# CONFIG_UNWINDER_ORC is not set/g' .config
|
||||||
|
|
Loading…
Reference in a new issue