mirror of
https://github.com/pygos/build.git
synced 2024-11-22 11:09:46 +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"
|
RELEASEPKG="release-alix"
|
||||||
TARGET="i686-linux-musl"
|
TARGET="i686-linux-musl"
|
||||||
GCC_CPU="i686"
|
GCC_CPU="i686"
|
||||||
MUSL_CPU="i386"
|
|
||||||
|
|
||||||
CPU_IS_64BIT="no"
|
CPU_IS_64BIT="no"
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,6 @@
|
||||||
RELEASEPKG="release-qemu"
|
RELEASEPKG="release-qemu"
|
||||||
TARGET="x86_64-linux-musl"
|
TARGET="x86_64-linux-musl"
|
||||||
GCC_CPU="x86-64"
|
GCC_CPU="x86-64"
|
||||||
MUSL_CPU="x86_64"
|
|
||||||
|
|
||||||
CPU_IS_64BIT="yes"
|
CPU_IS_64BIT="yes"
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,6 @@
|
||||||
RELEASEPKG="release-rpi3"
|
RELEASEPKG="release-rpi3"
|
||||||
TARGET="arm-linux-musleabihf"
|
TARGET="arm-linux-musleabihf"
|
||||||
GCC_CPU="armv6"
|
GCC_CPU="armv6"
|
||||||
MUSL_CPU="arm"
|
|
||||||
|
|
||||||
CPU_IS_64BIT="no"
|
CPU_IS_64BIT="no"
|
||||||
|
|
||||||
|
|
|
@ -26,6 +26,23 @@ build() {
|
||||||
deploy() {
|
deploy() {
|
||||||
local INPUT="$1"
|
local INPUT="$1"
|
||||||
local DEPLOY="$2"
|
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-headers
|
||||||
DESTDIR="$DEPLOY" make install-libs
|
DESTDIR="$DEPLOY" make install-libs
|
||||||
|
|
Loading…
Reference in a new issue