mirror of
https://github.com/pygos/build.git
synced 2024-11-18 09:19:46 +01:00
4039cd1c81
Add rootfs-<cfg> packages that create the skeleton system, copy the files and create the squashfs images. Old "SQUASHFS" package list is depends file of rootfs-<cfg> package. This removes some of the special case code. Signed-off-by: David Oberhollenzer <david.oberhollenzer@tele2.at>
29 lines
568 B
Text
Executable file
29 lines
568 B
Text
Executable file
VERSION="1.1.18"
|
|
SRCDIR="musl-$VERSION"
|
|
TARBALL="$SRCDIR.tar.gz"
|
|
URL="http://www.musl-libc.org/releases"
|
|
SHA256SUM="d017ee5d01aec0c522a1330fdff06b1e428cb409e1db819cc4935d5da4a5a118"
|
|
|
|
prepare() {
|
|
return
|
|
}
|
|
|
|
build() {
|
|
local INPUT="$1"
|
|
local OUTPUT="$2"
|
|
|
|
CC="${TARGET}-gcc" $INPUT/configure --prefix=/ --target="$TARGET"
|
|
CC="${TARGET}-gcc" make -j $NUMJOBS
|
|
}
|
|
|
|
deploy() {
|
|
local INPUT="$1"
|
|
local OUTPUT="$2"
|
|
local DEPLOY="$3"
|
|
|
|
DESTDIR="$TCDIR/$TARGET" make install
|
|
DESTDIR="$DEPLOY" make install-libs
|
|
rm $DEPLOY/lib/*.a $DEPLOY/lib/*.o
|
|
|
|
mkdir -p "$DEPLOY/etc"
|
|
}
|