linux: add HEADS_ONLY env var
This commit is contained in:
parent
812ac0b356
commit
c51b212249
1 changed files with 8 additions and 4 deletions
|
@ -68,6 +68,10 @@ if [ ! -z "$WITH_CROSS" ]; then
|
||||||
export CROSS_COMPILE=$WITH_CROSS-linux-musl
|
export CROSS_COMPILE=$WITH_CROSS-linux-musl
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if [ ! -z "$FOR_CROSS" ]; then
|
||||||
|
export HEADS_ONLY=1
|
||||||
|
fi
|
||||||
|
|
||||||
|
|
||||||
build() {
|
build() {
|
||||||
cd $pkgname-$pkgver
|
cd $pkgname-$pkgver
|
||||||
|
@ -77,7 +81,7 @@ build() {
|
||||||
# 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
|
||||||
# sed -i 's/# CONFIG_UNWINDER_FRAME_POINTER is not set/CONFIG_UNWINDER_FRAME_POINTER=y/g' .config
|
# sed -i 's/# CONFIG_UNWINDER_FRAME_POINTER is not set/CONFIG_UNWINDER_FRAME_POINTER=y/g' .config
|
||||||
|
|
||||||
if [ -z "$FOR_CROSS" ]; then
|
if [ -z "$HEADS_ONLY" ]; then
|
||||||
bad --gmake gmake CC=clang HOSTCC=clang YACC=yacc LLVM=1 LLVM_IAS=1 ARCH=$_arch
|
bad --gmake gmake CC=clang HOSTCC=clang YACC=yacc LLVM=1 LLVM_IAS=1 ARCH=$_arch
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
@ -85,7 +89,7 @@ build() {
|
||||||
package() {
|
package() {
|
||||||
cd $pkgname-$pkgver
|
cd $pkgname-$pkgver
|
||||||
|
|
||||||
if [ -z "$FOR_CROSS" ]; then
|
if [ -z "$HEADS_ONLY" ]; then
|
||||||
install -d $pkgdir/boot
|
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
|
bad --gmake gmake CC=cc HOSTCC=cc YACC=yacc LLVM=1 LLVM_IAS=1 ARCH=$_arch INSTALL_PATH=$pkgdir/boot install
|
||||||
bad --gmake gmake CC=cc HOSTCC=cc YACC=yacc LLVM=1 LLVM_IAS=1 ARCH=$_arch INSTALL_DTBS_PATH=$pkgdir/boot/dtbs dtbs_install
|
bad --gmake gmake CC=cc HOSTCC=cc YACC=yacc LLVM=1 LLVM_IAS=1 ARCH=$_arch INSTALL_DTBS_PATH=$pkgdir/boot/dtbs dtbs_install
|
||||||
|
@ -102,8 +106,8 @@ package() {
|
||||||
install -d $pkgdir/usr/
|
install -d $pkgdir/usr/
|
||||||
cp -r usr/include $pkgdir/usr/
|
cp -r usr/include $pkgdir/usr/
|
||||||
else
|
else
|
||||||
install -d $pkgdir/usr/$FOR_CROSS_DIR
|
install -d $pkgdir/$FOR_CROSS_DIR/
|
||||||
cp -r usr/include $pkgdir/$FOR_CROSS_DIR
|
cp -r usr/include $pkgdir/$FOR_CROSS_DIR/
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue