linux: fix cross

This commit is contained in:
Ella Stanforth 2022-04-23 14:21:20 +00:00
parent 0f98f828a2
commit 208bbbe22b

View file

@ -38,10 +38,6 @@ build() {
if [ -z "$FOR_CROSS" ]; then
bad --gmake gmake CC=clang HOSTCC=clang YACC=yacc LLVM=1 LLVM_IAS=1 ARCH=$_arch
set +e # depmod causes errors
bad --gmake gmake CC=cc HOSTCC=cc YACC=yacc LLVM=1 LLVM_IAS=1 ARCH=$_arch INSTALL_MOD_PATH=$pkgdir/ modules_install
set -e
fi
}
@ -51,6 +47,10 @@ package() {
if [ -z "$FOR_CROSS" ]; then
install -d $pkgdir/boot
bad --gmake gmake CC=cc HOSTCC=cc YACC=yacc LLVM=1 LLVM_IAS=1 ARCH=$_arch INSTALL_PATH=$pkgdir/boot install
set +e # depmod causes errors
bad --gmake gmake CC=cc HOSTCC=cc YACC=yacc LLVM=1 LLVM_IAS=1 ARCH=$_arch INSTALL_MOD_PATH=$pkgdir/ modules_install
set -e
fi
bad --gmake gmake CC=cc HOSTCC=cc YACC=yacc LLVM=1 LLVM_IAS=1 ARCH=$_arch headers