mirror of
https://github.com/pygos/build.git
synced 2024-12-23 23:50:51 +01:00
cleanup: derive MUSL_CPU from TARGET in Musl package
Signed-off-by: David Oberhollenzer <david.oberhollenzer@tele2.at>
This commit is contained in:
parent
569f7d5e0c
commit
b5d4ece03d
4 changed files with 17 additions and 3 deletions
|
@ -1,7 +1,6 @@
|
|||
RELEASEPKG="release-alix"
|
||||
TARGET="i686-linux-musl"
|
||||
GCC_CPU="i686"
|
||||
MUSL_CPU="i386"
|
||||
|
||||
CPU_IS_64BIT="no"
|
||||
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
RELEASEPKG="release-qemu"
|
||||
TARGET="x86_64-linux-musl"
|
||||
GCC_CPU="x86-64"
|
||||
MUSL_CPU="x86_64"
|
||||
|
||||
CPU_IS_64BIT="yes"
|
||||
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
RELEASEPKG="release-rpi3"
|
||||
TARGET="arm-linux-musleabihf"
|
||||
GCC_CPU="armv6"
|
||||
MUSL_CPU="arm"
|
||||
|
||||
CPU_IS_64BIT="no"
|
||||
|
||||
|
|
|
@ -26,6 +26,23 @@ build() {
|
|||
deploy() {
|
||||
local INPUT="$1"
|
||||
local DEPLOY="$2"
|
||||
local MUSL_CPU=""
|
||||
|
||||
case "$TARGET" in
|
||||
i*86-*)
|
||||
MUSL_CPU="i386"
|
||||
;;
|
||||
x86_64-*)
|
||||
MUSL_CPU="x86_64"
|
||||
;;
|
||||
arm-*)
|
||||
MUSL_CPU="arm"
|
||||
;;
|
||||
*)
|
||||
echo "don't know how to map $TARGET to Musl arch"
|
||||
exit 1
|
||||
;;
|
||||
esac
|
||||
|
||||
DESTDIR="$DEPLOY" make install-headers
|
||||
DESTDIR="$DEPLOY" make install-libs
|
||||
|
|
Loading…
Reference in a new issue