mirror of
git://git.2f30.org/morpheus.git
synced 2024-06-28 11:41:22 +00:00
Use a case statement instead of if/else
Makes it easy to port packages to other architectures.
This commit is contained in:
parent
0239116cb9
commit
6cf0949e99
@ -4,11 +4,14 @@ url="$mirror/kernel.tar.gz"
|
|||||||
build: crossmusl
|
build: crossmusl
|
||||||
cd src/linux-$v
|
cd src/linux-$v
|
||||||
cp "$top/stuff/kernel-config-$arch" .config
|
cp "$top/stuff/kernel-config-$arch" .config
|
||||||
if test "$arch" = "x86_64"; then
|
case "$arch" in
|
||||||
|
x86_64)
|
||||||
A=x86_64
|
A=x86_64
|
||||||
else
|
;;
|
||||||
|
i486)
|
||||||
A=x86
|
A=x86
|
||||||
fi
|
;;
|
||||||
|
esac
|
||||||
make ARCH="$A" bzImage -j$nprocs
|
make ARCH="$A" bzImage -j$nprocs
|
||||||
cp arch/x86/boot/bzImage "$root/boot"
|
cp arch/x86/boot/bzImage "$root/boot"
|
||||||
cp .config "$root/boot/bzImage.config"
|
cp .config "$root/boot/bzImage.config"
|
||||||
|
@ -3,11 +3,14 @@ url="$mirror/mpg123-$v.tar.bz2"
|
|||||||
|
|
||||||
build: tinyalsa
|
build: tinyalsa
|
||||||
cd src/mpg123-$v
|
cd src/mpg123-$v
|
||||||
if test "$arch" = "x86_64"; then
|
case "$arch" in
|
||||||
|
x86_64)
|
||||||
A=x86-64
|
A=x86-64
|
||||||
else
|
;;
|
||||||
|
i486)
|
||||||
A=x86
|
A=x86
|
||||||
fi
|
;;
|
||||||
|
esac
|
||||||
CC=$CC ./configure --prefix="$root" --with-default-audio=tinyalsa \
|
CC=$CC ./configure --prefix="$root" --with-default-audio=tinyalsa \
|
||||||
--enable-static=yes --enable-shared=no --with-cpu="$A"
|
--enable-static=yes --enable-shared=no --with-cpu="$A"
|
||||||
make -j$nprocs
|
make -j$nprocs
|
||||||
|
@ -2,12 +2,15 @@ url="$mirror/tinyxserver.tar.gz"
|
|||||||
|
|
||||||
build: tinyxlib zlib
|
build: tinyxlib zlib
|
||||||
cd src/tinyxserver
|
cd src/tinyxserver
|
||||||
make clean
|
case "$arch" in
|
||||||
if test "$arch" = "x86_64"; then
|
x86_64)
|
||||||
EXTRA_CFLAGS="-D_XSERVER64=1 $CFLAGS"
|
EXTRA_CFLAGS="-D_XSERVER64=1 $CFLAGS"
|
||||||
else
|
;;
|
||||||
|
i486)
|
||||||
EXTRA_CFLAGS="$CFLAGS"
|
EXTRA_CFLAGS="$CFLAGS"
|
||||||
fi
|
;;
|
||||||
|
esac
|
||||||
|
make clean
|
||||||
make -j$nprocs CC=$CC EXTRA_CFLAGS="$EXTRA_CFLAGS" \
|
make -j$nprocs CC=$CC EXTRA_CFLAGS="$EXTRA_CFLAGS" \
|
||||||
FONTDIR="/usr/share/fonts"
|
FONTDIR="/usr/share/fonts"
|
||||||
make DESTDIR="$root" BINDIR="/bin" install
|
make DESTDIR="$root" BINDIR="/bin" install
|
||||||
|
Loading…
Reference in New Issue
Block a user