1
0
Fork 0
mirror of https://github.com/pygos/build.git synced 2024-11-22 02:59:47 +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:
David Oberhollenzer 2018-10-19 18:54:16 +02:00
parent 569f7d5e0c
commit b5d4ece03d
4 changed files with 17 additions and 3 deletions

View file

@ -1,7 +1,6 @@
RELEASEPKG="release-alix"
TARGET="i686-linux-musl"
GCC_CPU="i686"
MUSL_CPU="i386"
CPU_IS_64BIT="no"

View file

@ -1,7 +1,6 @@
RELEASEPKG="release-qemu"
TARGET="x86_64-linux-musl"
GCC_CPU="x86-64"
MUSL_CPU="x86_64"
CPU_IS_64BIT="yes"

View file

@ -1,7 +1,6 @@
RELEASEPKG="release-rpi3"
TARGET="arm-linux-musleabihf"
GCC_CPU="armv6"
MUSL_CPU="arm"
CPU_IS_64BIT="no"

View file

@ -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