mirror of
https://github.com/pygos/build.git
synced 2024-11-22 11:09:46 +01:00
Cleanup package command arguments
Signed-off-by: David Oberhollenzer <david.oberhollenzer@tele2.at>
This commit is contained in:
parent
05ae80634c
commit
fc278364e5
70 changed files with 314 additions and 595 deletions
|
@ -10,19 +10,15 @@ prepare() {
|
||||||
}
|
}
|
||||||
|
|
||||||
build() {
|
build() {
|
||||||
local INPUT="$1"
|
$1/configure --prefix="" --host="$TARGET"
|
||||||
local OUTPUT="$2"
|
|
||||||
|
|
||||||
$INPUT/configure --prefix="" --host="$TARGET"
|
|
||||||
|
|
||||||
make -j $NUMJOBS
|
make -j $NUMJOBS
|
||||||
}
|
}
|
||||||
|
|
||||||
deploy() {
|
deploy() {
|
||||||
local SOURCE="$1"
|
local SOURCE="$1"
|
||||||
local BUILD="$2"
|
local DEPLOY="$2"
|
||||||
local DEPLOY="$3"
|
local DEVDEPLOY="$3"
|
||||||
local DEVDEPLOY="$4"
|
|
||||||
|
|
||||||
make DESTDIR="$DEPLOY" install
|
make DESTDIR="$DEPLOY" install
|
||||||
|
|
||||||
|
|
|
@ -10,20 +10,16 @@ prepare() {
|
||||||
}
|
}
|
||||||
|
|
||||||
build() {
|
build() {
|
||||||
local INPUT="$1"
|
$1/configure --prefix="" --host="$TARGET" --without-bash-malloc \
|
||||||
local OUTPUT="$2"
|
--with-installed-readline
|
||||||
|
|
||||||
$INPUT/configure --prefix="" --host="$TARGET" --without-bash-malloc \
|
|
||||||
--with-installed-readline
|
|
||||||
|
|
||||||
make -j $NUMJOBS
|
make -j $NUMJOBS
|
||||||
}
|
}
|
||||||
|
|
||||||
deploy() {
|
deploy() {
|
||||||
local SOURCE="$1"
|
local SOURCE="$1"
|
||||||
local BUILD="$2"
|
local DEPLOY="$2"
|
||||||
local DEPLOY="$3"
|
local DEVDEPLOY="$3"
|
||||||
local DEVDEPLOY="$4"
|
|
||||||
|
|
||||||
make DESTDIR="$DEPLOY" install
|
make DESTDIR="$DEPLOY" install
|
||||||
|
|
||||||
|
|
|
@ -10,29 +10,24 @@ prepare() {
|
||||||
}
|
}
|
||||||
|
|
||||||
build() {
|
build() {
|
||||||
local INPUT="$1"
|
|
||||||
local OUTPUT="$2"
|
|
||||||
|
|
||||||
local CFGFILE="$SCRIPTDIR/board/$BOARD/bbstatic.config"
|
|
||||||
local SYSROOT="$TCDIR/$TARGET"
|
local SYSROOT="$TCDIR/$TARGET"
|
||||||
|
|
||||||
cp "$CFGFILE" "$OUTPUT/.config"
|
cp "$SCRIPTDIR/board/$BOARD/bbstatic.config" "$PKGBUILDDIR/.config"
|
||||||
|
|
||||||
export KBUILD_OUTPUT="$OUTPUT"
|
export KBUILD_OUTPUT="$PKGBUILDDIR"
|
||||||
|
|
||||||
make -C "$INPUT" O="$OUTPUT" CROSS_COMPILE="${TARGET}-" oldconfig
|
make -C "$1" O="$PKGBUILDDIR" CROSS_COMPILE="${TARGET}-" oldconfig
|
||||||
sed -i "$OUTPUT/.config" -e 's,^CONFIG_CROSS_COMPILE=.*,CONFIG_CROSS_COMPILE="'$TARGET'-",'
|
sed -i "$PKGBUILDDIR/.config" -e 's,^CONFIG_CROSS_COMPILE=.*,CONFIG_CROSS_COMPILE="'$TARGET'-",'
|
||||||
sed -i "$OUTPUT/.config" -e 's,^CONFIG_SYSROOT=.*,CONFIG_SYSROOT="'$SYSROOT'",'
|
sed -i "$PKGBUILDDIR/.config" -e 's,^CONFIG_SYSROOT=.*,CONFIG_SYSROOT="'$SYSROOT'",'
|
||||||
|
|
||||||
make -C "$INPUT" O="$OUTPUT" CROSS_COMPILE="${TARGET}-" -j $NUMJOBS
|
make -C "$1" O="$PKGBUILDDIR" CROSS_COMPILE="${TARGET}-" -j $NUMJOBS
|
||||||
}
|
}
|
||||||
|
|
||||||
deploy() {
|
deploy() {
|
||||||
local SOURCE="$1"
|
local SOURCE="$1"
|
||||||
local BUILD="$2"
|
local DEPLOY="$2"
|
||||||
local DEPLOY="$3"
|
|
||||||
|
|
||||||
mkdir -p "$DEPLOY/bin"
|
mkdir -p "$DEPLOY/bin"
|
||||||
cp "$BUILD/busybox" "$DEPLOY/bin"
|
cp "$PKGBUILDDIR/busybox" "$DEPLOY/bin"
|
||||||
ln -s "/bin/busybox" "$DEPLOY/bin/sh"
|
ln -s "/bin/busybox" "$DEPLOY/bin/sh"
|
||||||
}
|
}
|
||||||
|
|
|
@ -10,21 +10,16 @@ prepare() {
|
||||||
}
|
}
|
||||||
|
|
||||||
build() {
|
build() {
|
||||||
local INPUT="$1"
|
$1/dist/configure --prefix="" --host="$TARGET" --enable-compat185 \
|
||||||
local OUTPUT="$2"
|
--enable-dbm --disable-static --enable-cxx
|
||||||
|
|
||||||
$INPUT/dist/configure --prefix="" --host="$TARGET" \
|
|
||||||
--enable-compat185 --enable-dbm \
|
|
||||||
--disable-static --enable-cxx
|
|
||||||
|
|
||||||
make -j $NUMJOBS
|
make -j $NUMJOBS
|
||||||
}
|
}
|
||||||
|
|
||||||
deploy() {
|
deploy() {
|
||||||
local SOURCE="$1"
|
local SOURCE="$1"
|
||||||
local BUILD="$2"
|
local DEPLOY="$2"
|
||||||
local DEPLOY="$3"
|
local DEVDEPLOY="$3"
|
||||||
local DEVDEPLOY="$4"
|
|
||||||
|
|
||||||
make DESTDIR="$DEPLOY" install
|
make DESTDIR="$DEPLOY" install
|
||||||
|
|
||||||
|
|
|
@ -8,8 +8,7 @@ build() {
|
||||||
|
|
||||||
deploy() {
|
deploy() {
|
||||||
local SOURCE="$1"
|
local SOURCE="$1"
|
||||||
local BUILD="$2"
|
local DEPLOY="$2"
|
||||||
local DEPLOY="$3"
|
|
||||||
|
|
||||||
cp -r ${SOURCE}/boot/* "$DEPLOY/"
|
cp -r ${SOURCE}/boot/* "$DEPLOY/"
|
||||||
|
|
||||||
|
|
|
@ -10,10 +10,7 @@ prepare() {
|
||||||
}
|
}
|
||||||
|
|
||||||
build() {
|
build() {
|
||||||
local SOURCE="$1"
|
cp -r ${1}/* ${PKGBUILDDIR}
|
||||||
local BUILD="$2"
|
|
||||||
|
|
||||||
cp -r ${SOURCE}/* ${BUILD}
|
|
||||||
|
|
||||||
apply_patches
|
apply_patches
|
||||||
|
|
||||||
|
@ -26,9 +23,8 @@ build() {
|
||||||
|
|
||||||
deploy() {
|
deploy() {
|
||||||
local SOURCE="$1"
|
local SOURCE="$1"
|
||||||
local BUILD="$2"
|
local DEPLOY="$2"
|
||||||
local DEPLOY="$3"
|
local DEVDEPLOY="$3"
|
||||||
local DEVDEPLOY="$4"
|
|
||||||
|
|
||||||
make DESTDIR="$DEPLOY" install
|
make DESTDIR="$DEPLOY" install
|
||||||
|
|
||||||
|
|
|
@ -10,19 +10,15 @@ prepare() {
|
||||||
}
|
}
|
||||||
|
|
||||||
build() {
|
build() {
|
||||||
local SOURCE="$1"
|
cp -r ${1}/* ${PKGBUILDDIR}
|
||||||
local BUILD="$2"
|
|
||||||
|
|
||||||
cp -r ${SOURCE}/* ${BUILD}
|
|
||||||
|
|
||||||
make CC=${TARGET}-gcc AR=${TARGET}-ar RANLIB=${TARGET}-ranlib -j $NUMJOBS libbz2.a bzip2 bzip2recover
|
make CC=${TARGET}-gcc AR=${TARGET}-ar RANLIB=${TARGET}-ranlib -j $NUMJOBS libbz2.a bzip2 bzip2recover
|
||||||
}
|
}
|
||||||
|
|
||||||
deploy() {
|
deploy() {
|
||||||
local SOURCE="$1"
|
local SOURCE="$1"
|
||||||
local BUILD="$2"
|
local DEPLOY="$2"
|
||||||
local DEPLOY="$3"
|
local DEVDEPLOY="$3"
|
||||||
local DEVDEPLOY="$4"
|
|
||||||
|
|
||||||
make PREFIX="$DEPLOY" install
|
make PREFIX="$DEPLOY" install
|
||||||
|
|
||||||
|
|
|
@ -10,19 +10,15 @@ prepare() {
|
||||||
}
|
}
|
||||||
|
|
||||||
build() {
|
build() {
|
||||||
local INPUT="$1"
|
$1/configure --prefix="" --host="$TARGET" \
|
||||||
local OUTPUT="$2"
|
--enable-no-install-program=kill,uptime,dir,vdir,chcon,pinky,runcon
|
||||||
|
|
||||||
$INPUT/configure --prefix="" --host="$TARGET" \
|
|
||||||
--enable-no-install-program=kill,uptime,dir,vdir,chcon,pinky,runcon
|
|
||||||
|
|
||||||
make -j $NUMJOBS
|
make -j $NUMJOBS
|
||||||
}
|
}
|
||||||
|
|
||||||
deploy() {
|
deploy() {
|
||||||
local SOURCE="$1"
|
local SOURCE="$1"
|
||||||
local BUILD="$2"
|
local DEPLOY="$2"
|
||||||
local DEPLOY="$3"
|
|
||||||
|
|
||||||
make DESTDIR="$DEPLOY" install-strip
|
make DESTDIR="$DEPLOY" install-strip
|
||||||
rm -r "$DEPLOY/share"
|
rm -r "$DEPLOY/share"
|
||||||
|
|
|
@ -10,18 +10,14 @@ prepare() {
|
||||||
}
|
}
|
||||||
|
|
||||||
build() {
|
build() {
|
||||||
local SOURCE="$1"
|
$1/configure --prefix="" --host="$TARGET"
|
||||||
local BUILD="$2"
|
|
||||||
|
|
||||||
$SOURCE/configure --prefix="" --host="$TARGET"
|
|
||||||
|
|
||||||
make -j $NUMJOBS
|
make -j $NUMJOBS
|
||||||
}
|
}
|
||||||
|
|
||||||
deploy() {
|
deploy() {
|
||||||
local SOURCE="$1"
|
local SOURCE="$1"
|
||||||
local BUILD="$2"
|
local DEPLOY="$2"
|
||||||
local DEPLOY="$3"
|
|
||||||
|
|
||||||
make DESTDIR="$DEPLOY" install-strip
|
make DESTDIR="$DEPLOY" install-strip
|
||||||
|
|
||||||
|
|
|
@ -10,19 +10,15 @@ prepare() {
|
||||||
}
|
}
|
||||||
|
|
||||||
build() {
|
build() {
|
||||||
local SOURCE="$1"
|
cp -r ${1}/* ${PKGBUILDDIR}
|
||||||
local BUILD="$2"
|
|
||||||
|
|
||||||
cp -r ${SOURCE}/* ${BUILD}
|
|
||||||
|
|
||||||
make CC=${TARGET}-gcc PREFIX="/" BINDIR="/bin" -j $NUMJOBS
|
make CC=${TARGET}-gcc PREFIX="/" BINDIR="/bin" -j $NUMJOBS
|
||||||
}
|
}
|
||||||
|
|
||||||
deploy() {
|
deploy() {
|
||||||
local SOURCE="$1"
|
local SOURCE="$1"
|
||||||
local BUILD="$2"
|
local DEPLOY="$2"
|
||||||
local DEPLOY="$3"
|
local DEVDEPLOY="$3"
|
||||||
local DEVDEPLOY="$4"
|
|
||||||
|
|
||||||
make CC=${TARGET}-gcc PREFIX="/" BINDIR="/bin" DESTDIR="$DEPLOY" install
|
make CC=${TARGET}-gcc PREFIX="/" BINDIR="/bin" DESTDIR="$DEPLOY" install
|
||||||
|
|
||||||
|
|
|
@ -10,20 +10,16 @@ prepare() {
|
||||||
}
|
}
|
||||||
|
|
||||||
build() {
|
build() {
|
||||||
local SOURCE="$1"
|
$1/configure --prefix="" --host="$TARGET" --sbindir=/bin \
|
||||||
local BUILD="$2"
|
--disable-compat-symlinks --without-udev
|
||||||
|
|
||||||
$SOURCE/configure --prefix="" --host="$TARGET" --sbindir=/bin \
|
|
||||||
--disable-compat-symlinks --without-udev
|
|
||||||
|
|
||||||
make -j $NUMJOBS
|
make -j $NUMJOBS
|
||||||
}
|
}
|
||||||
|
|
||||||
deploy() {
|
deploy() {
|
||||||
local SOURCE="$1"
|
local SOURCE="$1"
|
||||||
local BUILD="$2"
|
local DEPLOY="$2"
|
||||||
local DEPLOY="$3"
|
local DEVDEPLOY="$3"
|
||||||
local DEVDEPLOY="$4"
|
|
||||||
|
|
||||||
make DESTDIR="$DEPLOY" install-strip
|
make DESTDIR="$DEPLOY" install-strip
|
||||||
rm -r "$DEPLOY/share"
|
rm -r "$DEPLOY/share"
|
||||||
|
|
|
@ -10,18 +10,14 @@ prepare() {
|
||||||
}
|
}
|
||||||
|
|
||||||
build() {
|
build() {
|
||||||
local INPUT="$1"
|
$1/configure --prefix="" --host="$TARGET" --sbindir="/bin"
|
||||||
local OUTPUT="$2"
|
|
||||||
|
|
||||||
$INPUT/configure --prefix="" --host="$TARGET" --sbindir="/bin"
|
|
||||||
|
|
||||||
make -j $NUMJOBS
|
make -j $NUMJOBS
|
||||||
}
|
}
|
||||||
|
|
||||||
deploy() {
|
deploy() {
|
||||||
local SOURCE="$1"
|
local SOURCE="$1"
|
||||||
local BUILD="$2"
|
local DEPLOY="$2"
|
||||||
local DEPLOY="$3"
|
|
||||||
|
|
||||||
make DESTDIR="$DEPLOY" install-strip
|
make DESTDIR="$DEPLOY" install-strip
|
||||||
|
|
||||||
|
|
|
@ -10,20 +10,16 @@ prepare() {
|
||||||
}
|
}
|
||||||
|
|
||||||
build() {
|
build() {
|
||||||
local SOURCE="$1"
|
$1/configure --prefix="" --host="$TARGET" --disable-static \
|
||||||
local BUILD="$2"
|
--without-xmlwf --with-libbsd
|
||||||
|
|
||||||
$SOURCE/configure --prefix="" --host="$TARGET" --disable-static \
|
|
||||||
--without-xmlwf --with-libbsd
|
|
||||||
|
|
||||||
make -j $NUMJOBS
|
make -j $NUMJOBS
|
||||||
}
|
}
|
||||||
|
|
||||||
deploy() {
|
deploy() {
|
||||||
local SOURCE="$1"
|
local SOURCE="$1"
|
||||||
local BUILD="$2"
|
local DEPLOY="$2"
|
||||||
local DEPLOY="$3"
|
local DEVDEPLOY="$3"
|
||||||
local DEVDEPLOY="$4"
|
|
||||||
|
|
||||||
make DESTDIR="$DEPLOY" install-strip
|
make DESTDIR="$DEPLOY" install-strip
|
||||||
|
|
||||||
|
|
|
@ -10,19 +10,15 @@ prepare() {
|
||||||
}
|
}
|
||||||
|
|
||||||
build() {
|
build() {
|
||||||
local INPUT="$1"
|
$1/configure --prefix="" --host="$TARGET" --disable-static
|
||||||
local OUTPUT="$2"
|
|
||||||
|
|
||||||
$INPUT/configure --prefix="" --host="$TARGET" --disable-static
|
|
||||||
|
|
||||||
make -j $NUMJOBS
|
make -j $NUMJOBS
|
||||||
}
|
}
|
||||||
|
|
||||||
deploy() {
|
deploy() {
|
||||||
local SOURCE="$1"
|
local SOURCE="$1"
|
||||||
local BUILD="$2"
|
local DEPLOY="$2"
|
||||||
local DEPLOY="$3"
|
local DEVDEPLOY="$3"
|
||||||
local DEVDEPLOY="$4"
|
|
||||||
|
|
||||||
make DESTDIR="$DEPLOY" install-strip
|
make DESTDIR="$DEPLOY" install-strip
|
||||||
|
|
||||||
|
|
|
@ -10,19 +10,15 @@ prepare() {
|
||||||
}
|
}
|
||||||
|
|
||||||
build() {
|
build() {
|
||||||
local SOURCE="$1"
|
$1/configure --prefix="" --host="$TARGET" \
|
||||||
local BUILD="$2"
|
--localstatedir=/var/lib/locate
|
||||||
|
|
||||||
$SOURCE/configure --prefix="" --host="$TARGET" \
|
|
||||||
--localstatedir=/var/lib/locate
|
|
||||||
|
|
||||||
make -j $NUMJOBS
|
make -j $NUMJOBS
|
||||||
}
|
}
|
||||||
|
|
||||||
deploy() {
|
deploy() {
|
||||||
local SOURCE="$1"
|
local SOURCE="$1"
|
||||||
local BUILD="$2"
|
local DEPLOY="$2"
|
||||||
local DEPLOY="$3"
|
|
||||||
|
|
||||||
make DESTDIR="$DEPLOY" install-strip
|
make DESTDIR="$DEPLOY" install-strip
|
||||||
|
|
||||||
|
|
|
@ -28,9 +28,8 @@ build() {
|
||||||
|
|
||||||
deploy() {
|
deploy() {
|
||||||
local SOURCE="$1"
|
local SOURCE="$1"
|
||||||
local BUILD="$2"
|
local DEPLOY="$2"
|
||||||
local DEPLOY="$3"
|
local DEVDEPLOY="$3"
|
||||||
local DEVDEPLOY="$4"
|
|
||||||
|
|
||||||
cp -r "$SOURCE/hardfp/opt" "$DEPLOY/"
|
cp -r "$SOURCE/hardfp/opt" "$DEPLOY/"
|
||||||
|
|
||||||
|
|
|
@ -10,18 +10,14 @@ prepare() {
|
||||||
}
|
}
|
||||||
|
|
||||||
build() {
|
build() {
|
||||||
local SOURCE="$1"
|
$1/configure --prefix="" --host="$TARGET"
|
||||||
local BUILD="$2"
|
|
||||||
|
|
||||||
$SOURCE/configure --prefix="" --host="$TARGET"
|
|
||||||
|
|
||||||
make -j $NUMJOBS
|
make -j $NUMJOBS
|
||||||
}
|
}
|
||||||
|
|
||||||
deploy() {
|
deploy() {
|
||||||
local SOURCE="$1"
|
local SOURCE="$1"
|
||||||
local BUILD="$2"
|
local DEPLOY="$2"
|
||||||
local DEPLOY="$3"
|
|
||||||
|
|
||||||
make DESTDIR="$DEPLOY" install-strip
|
make DESTDIR="$DEPLOY" install-strip
|
||||||
|
|
||||||
|
|
|
@ -10,20 +10,15 @@ prepare() {
|
||||||
}
|
}
|
||||||
|
|
||||||
build() {
|
build() {
|
||||||
local SOURCE="$1"
|
$1/configure --prefix="" --host="$TARGET" --disable-static --enable-cxx
|
||||||
local BUILD="$2"
|
|
||||||
|
|
||||||
$SOURCE/configure --prefix="" --host="$TARGET" \
|
|
||||||
--disable-static --enable-cxx
|
|
||||||
|
|
||||||
make -j $NUMJOBS
|
make -j $NUMJOBS
|
||||||
}
|
}
|
||||||
|
|
||||||
deploy() {
|
deploy() {
|
||||||
local SOURCE="$1"
|
local SOURCE="$1"
|
||||||
local BUILD="$2"
|
local DEPLOY="$2"
|
||||||
local DEPLOY="$3"
|
local DEVDEPLOY="$3"
|
||||||
local DEVDEPLOY="$4"
|
|
||||||
|
|
||||||
make DESTDIR="$DEPLOY" install
|
make DESTDIR="$DEPLOY" install
|
||||||
|
|
||||||
|
|
|
@ -10,18 +10,14 @@ prepare() {
|
||||||
}
|
}
|
||||||
|
|
||||||
build() {
|
build() {
|
||||||
local INPUT="$1"
|
$1/configure --prefix="" --host="$TARGET"
|
||||||
local OUTPUT="$2"
|
|
||||||
|
|
||||||
$INPUT/configure --prefix="" --host="$TARGET"
|
|
||||||
|
|
||||||
make -j $NUMJOBS
|
make -j $NUMJOBS
|
||||||
}
|
}
|
||||||
|
|
||||||
deploy() {
|
deploy() {
|
||||||
local SOURCE="$1"
|
local SOURCE="$1"
|
||||||
local BUILD="$2"
|
local DEPLOY="$2"
|
||||||
local DEPLOY="$3"
|
|
||||||
|
|
||||||
make DESTDIR="$DEPLOY" install-strip
|
make DESTDIR="$DEPLOY" install-strip
|
||||||
rm -r "$DEPLOY/share"
|
rm -r "$DEPLOY/share"
|
||||||
|
|
|
@ -10,18 +10,14 @@ prepare() {
|
||||||
}
|
}
|
||||||
|
|
||||||
build() {
|
build() {
|
||||||
local INPUT="$1"
|
$1/configure --prefix="" --host="$TARGET" --with-regex=regcmp
|
||||||
local OUTPUT="$2"
|
|
||||||
|
|
||||||
$INPUT/configure --prefix="" --host="$TARGET" --with-regex=regcmp
|
|
||||||
|
|
||||||
make -j $NUMJOBS
|
make -j $NUMJOBS
|
||||||
}
|
}
|
||||||
|
|
||||||
deploy() {
|
deploy() {
|
||||||
local SOURCE="$1"
|
local SOURCE="$1"
|
||||||
local BUILD="$2"
|
local DEPLOY="$2"
|
||||||
local DEPLOY="$3"
|
|
||||||
|
|
||||||
make DESTDIR="$DEPLOY" install-strip
|
make DESTDIR="$DEPLOY" install-strip
|
||||||
rm -r "$DEPLOY/share"
|
rm -r "$DEPLOY/share"
|
||||||
|
|
|
@ -15,8 +15,7 @@ build() {
|
||||||
|
|
||||||
deploy() {
|
deploy() {
|
||||||
local SOURCE="$1"
|
local SOURCE="$1"
|
||||||
local BUILD="$2"
|
local DEPLOY="$2"
|
||||||
local DEPLOY="$3"
|
|
||||||
|
|
||||||
mkdir -p "$DEPLOY/etc"
|
mkdir -p "$DEPLOY/etc"
|
||||||
cp "$SOURCE/protocols" "$DEPLOY/etc"
|
cp "$SOURCE/protocols" "$DEPLOY/etc"
|
||||||
|
|
|
@ -10,22 +10,17 @@ prepare() {
|
||||||
}
|
}
|
||||||
|
|
||||||
build() {
|
build() {
|
||||||
local INPUT="$1"
|
$1/configure --prefix="" --host="$TARGET" --disable-servers \
|
||||||
local OUTPUT="$2"
|
--disable-dnsdomainname --disable-rcp --disable-rexec \
|
||||||
|
--enable-hostname --disable-rlogin --disable-rsh \
|
||||||
$INPUT/configure --prefix="" --host="$TARGET" --disable-servers \
|
--disable-logger --disable-talk --disable-ifconfig
|
||||||
--disable-dnsdomainname --enable-hostname \
|
|
||||||
--disable-rcp --disable-rexec --disable-rlogin \
|
|
||||||
--disable-rsh --disable-logger --disable-talk \
|
|
||||||
--disable-ifconfig
|
|
||||||
|
|
||||||
make -j $NUMJOBS
|
make -j $NUMJOBS
|
||||||
}
|
}
|
||||||
|
|
||||||
deploy() {
|
deploy() {
|
||||||
local SOURCE="$1"
|
local SOURCE="$1"
|
||||||
local BUILD="$2"
|
local DEPLOY="$2"
|
||||||
local DEPLOY="$3"
|
|
||||||
|
|
||||||
make DESTDIR="$DEPLOY" install-strip
|
make DESTDIR="$DEPLOY" install-strip
|
||||||
|
|
||||||
|
|
|
@ -66,8 +66,7 @@ dir_filelist() {
|
||||||
|
|
||||||
build() {
|
build() {
|
||||||
local INPUT="$1"
|
local INPUT="$1"
|
||||||
local OUTPUT="$2"
|
local DEPLOY="$2"
|
||||||
local DEPLOY="$3"
|
|
||||||
|
|
||||||
# populate with default directory structure
|
# populate with default directory structure
|
||||||
for dir in dev proc sys bin lib newroot images; do
|
for dir in dev proc sys bin lib newroot images; do
|
||||||
|
@ -86,10 +85,9 @@ build() {
|
||||||
|
|
||||||
deploy() {
|
deploy() {
|
||||||
local SOURCE="$1"
|
local SOURCE="$1"
|
||||||
local BUILD="$2"
|
local DEPLOY="$2"
|
||||||
local DEPLOY="$3"
|
|
||||||
|
|
||||||
local LSTFILE="$BUILD/initrd.list"
|
local LSTFILE="$PKGBUILDDIR/initrd.list"
|
||||||
|
|
||||||
dir_filelist "$DEPLOY" > "$LSTFILE"
|
dir_filelist "$DEPLOY" > "$LSTFILE"
|
||||||
echo "dir /dev 0755 0 0" >> "$LSTFILE"
|
echo "dir /dev 0755 0 0" >> "$LSTFILE"
|
||||||
|
|
|
@ -10,19 +10,15 @@ prepare() {
|
||||||
}
|
}
|
||||||
|
|
||||||
build() {
|
build() {
|
||||||
local SOURCE="$1"
|
cp -r ${1}/* ${PKGBUILDDIR}
|
||||||
local BUILD="$2"
|
|
||||||
|
|
||||||
cp -r ${SOURCE}/* ${BUILD}
|
|
||||||
|
|
||||||
make HOSTCC="gcc" AR="${TARGET}-ar" LD="${TARGET}-ld" CC="${TARGET}-gcc" SYSROOT="$TCDIR/$TARGET"
|
make HOSTCC="gcc" AR="${TARGET}-ar" LD="${TARGET}-ld" CC="${TARGET}-gcc" SYSROOT="$TCDIR/$TARGET"
|
||||||
}
|
}
|
||||||
|
|
||||||
deploy() {
|
deploy() {
|
||||||
local SOURCE="$1"
|
local SOURCE="$1"
|
||||||
local BUILD="$2"
|
local DEPLOY="$2"
|
||||||
local DEPLOY="$3"
|
local DEVDEPLOY="$3"
|
||||||
local DEVDEPLOY="$4"
|
|
||||||
|
|
||||||
mkdir -p "$DEPLOY/var/lib/arpd"
|
mkdir -p "$DEPLOY/var/lib/arpd"
|
||||||
make DESTDIR="$DEPLOY" SYSROOT="$TCDIR/$TARGET" install
|
make DESTDIR="$DEPLOY" SYSROOT="$TCDIR/$TARGET" install
|
||||||
|
|
|
@ -10,21 +10,16 @@ prepare() {
|
||||||
}
|
}
|
||||||
|
|
||||||
build() {
|
build() {
|
||||||
local SOURCE="$1"
|
$1/configure --prefix="" --host="$TARGET" --enable-optional-progs \
|
||||||
local BUILD="$2"
|
--disable-tests --enable-libkeymap --disable-vlock
|
||||||
|
|
||||||
$SOURCE/configure --prefix="" --host="$TARGET" \
|
|
||||||
--disable-tests --enable-optional-progs \
|
|
||||||
--enable-libkeymap --disable-vlock
|
|
||||||
|
|
||||||
make -j $NUMJOBS
|
make -j $NUMJOBS
|
||||||
}
|
}
|
||||||
|
|
||||||
deploy() {
|
deploy() {
|
||||||
local SOURCE="$1"
|
local SOURCE="$1"
|
||||||
local BUILD="$2"
|
local DEPLOY="$2"
|
||||||
local DEPLOY="$3"
|
local DEVDEPLOY="$3"
|
||||||
local DEVDEPLOY="$4"
|
|
||||||
|
|
||||||
make DESTDIR="$DEPLOY" install-strip
|
make DESTDIR="$DEPLOY" install-strip
|
||||||
|
|
||||||
|
|
|
@ -10,21 +10,16 @@ prepare() {
|
||||||
}
|
}
|
||||||
|
|
||||||
build() {
|
build() {
|
||||||
local INPUT="$1"
|
$1/configure --prefix="" --host="$TARGET" --with-xz --with-zlib \
|
||||||
local OUTPUT="$2"
|
--with-bashcompletiondir="/share/bash-completion/completions"
|
||||||
|
|
||||||
$INPUT/configure --prefix="" --host="$TARGET" \
|
|
||||||
--with-xz --with-zlib \
|
|
||||||
--with-bashcompletiondir="/share/bash-completion/completions"
|
|
||||||
|
|
||||||
make -j $NUMJOBS
|
make -j $NUMJOBS
|
||||||
}
|
}
|
||||||
|
|
||||||
deploy() {
|
deploy() {
|
||||||
local SOURCE="$1"
|
local SOURCE="$1"
|
||||||
local BUILD="$2"
|
local DEPLOY="$2"
|
||||||
local DEPLOY="$3"
|
local DEVDEPLOY="$3"
|
||||||
local DEVDEPLOY="$4"
|
|
||||||
|
|
||||||
make DESTDIR="$DEPLOY" install-strip
|
make DESTDIR="$DEPLOY" install-strip
|
||||||
|
|
||||||
|
|
|
@ -10,18 +10,14 @@ prepare() {
|
||||||
}
|
}
|
||||||
|
|
||||||
build() {
|
build() {
|
||||||
local INPUT="$1"
|
$1/configure --prefix="" --host="$TARGET" --with-regex=regcmp
|
||||||
local OUTPUT="$2"
|
|
||||||
|
|
||||||
$INPUT/configure --prefix="" --host="$TARGET" --with-regex=regcmp
|
|
||||||
|
|
||||||
make -j $NUMJOBS
|
make -j $NUMJOBS
|
||||||
}
|
}
|
||||||
|
|
||||||
deploy() {
|
deploy() {
|
||||||
local SOURCE="$1"
|
local SOURCE="$1"
|
||||||
local BUILD="$2"
|
local DEPLOY="$2"
|
||||||
local DEPLOY="$3"
|
|
||||||
|
|
||||||
make DESTDIR="$DEPLOY" install
|
make DESTDIR="$DEPLOY" install
|
||||||
|
|
||||||
|
|
|
@ -10,19 +10,15 @@ prepare() {
|
||||||
}
|
}
|
||||||
|
|
||||||
build() {
|
build() {
|
||||||
local SOURCE="$1"
|
$1/configure --prefix="" --host="$TARGET" --disable-static
|
||||||
local BUILD="$2"
|
|
||||||
|
|
||||||
$SOURCE/configure --prefix="" --host="$TARGET" --disable-static
|
|
||||||
|
|
||||||
make -j $NUMJOBS
|
make -j $NUMJOBS
|
||||||
}
|
}
|
||||||
|
|
||||||
deploy() {
|
deploy() {
|
||||||
local SOURCE="$1"
|
local SOURCE="$1"
|
||||||
local BUILD="$2"
|
local DEPLOY="$2"
|
||||||
local DEPLOY="$3"
|
local DEVDEPLOY="$3"
|
||||||
local DEVDEPLOY="$4"
|
|
||||||
|
|
||||||
make DESTDIR="$DEPLOY" install-strip
|
make DESTDIR="$DEPLOY" install-strip
|
||||||
|
|
||||||
|
|
|
@ -10,19 +10,15 @@ prepare() {
|
||||||
}
|
}
|
||||||
|
|
||||||
build() {
|
build() {
|
||||||
local SOURCE="$1"
|
$1/configure --prefix="" --host="$TARGET" --disable-static
|
||||||
local BUILD="$2"
|
|
||||||
|
|
||||||
$SOURCE/configure --prefix="" --host="$TARGET" --disable-static
|
|
||||||
|
|
||||||
make -j $NUMJOBS
|
make -j $NUMJOBS
|
||||||
}
|
}
|
||||||
|
|
||||||
deploy() {
|
deploy() {
|
||||||
local SOURCE="$1"
|
local SOURCE="$1"
|
||||||
local BUILD="$2"
|
local DEPLOY="$2"
|
||||||
local DEPLOY="$3"
|
local DEVDEPLOY="$3"
|
||||||
local DEVDEPLOY="$4"
|
|
||||||
|
|
||||||
make DESTDIR="$DEPLOY" install
|
make DESTDIR="$DEPLOY" install
|
||||||
|
|
||||||
|
|
|
@ -10,19 +10,15 @@ prepare() {
|
||||||
}
|
}
|
||||||
|
|
||||||
build() {
|
build() {
|
||||||
local SOURCE="$1"
|
$1/configure --prefix="" --host="$TARGET" --disable-static
|
||||||
local BUILD="$2"
|
|
||||||
|
|
||||||
$SOURCE/configure --prefix="" --host="$TARGET" --disable-static
|
|
||||||
|
|
||||||
make -j $NUMJOBS
|
make -j $NUMJOBS
|
||||||
}
|
}
|
||||||
|
|
||||||
deploy() {
|
deploy() {
|
||||||
local SOURCE="$1"
|
local SOURCE="$1"
|
||||||
local BUILD="$2"
|
local DEPLOY="$2"
|
||||||
local DEPLOY="$3"
|
local DEVDEPLOY="$3"
|
||||||
local DEVDEPLOY="$4"
|
|
||||||
|
|
||||||
make DESTDIR="$DEPLOY" install-strip
|
make DESTDIR="$DEPLOY" install-strip
|
||||||
|
|
||||||
|
|
|
@ -10,19 +10,15 @@ prepare() {
|
||||||
}
|
}
|
||||||
|
|
||||||
build() {
|
build() {
|
||||||
local SOURCE="$1"
|
$1/configure --prefix="" --host="$TARGET" --disable-static
|
||||||
local BUILD="$2"
|
|
||||||
|
|
||||||
$SOURCE/configure --prefix="" --host="$TARGET" --disable-static
|
|
||||||
|
|
||||||
make -j $NUMJOBS
|
make -j $NUMJOBS
|
||||||
}
|
}
|
||||||
|
|
||||||
deploy() {
|
deploy() {
|
||||||
local SOURCE="$1"
|
local SOURCE="$1"
|
||||||
local BUILD="$2"
|
local DEPLOY="$2"
|
||||||
local DEPLOY="$3"
|
local DEVDEPLOY="$3"
|
||||||
local DEVDEPLOY="$4"
|
|
||||||
|
|
||||||
make DESTDIR="$DEPLOY" install-strip
|
make DESTDIR="$DEPLOY" install-strip
|
||||||
|
|
||||||
|
|
|
@ -10,19 +10,15 @@ prepare() {
|
||||||
}
|
}
|
||||||
|
|
||||||
build() {
|
build() {
|
||||||
local INPUT="$1"
|
$1/configure --prefix="" --host="$TARGET"
|
||||||
local OUTPUT="$2"
|
|
||||||
|
|
||||||
$INPUT/configure --prefix="" --host="$TARGET"
|
|
||||||
|
|
||||||
make -j $NUMJOBS
|
make -j $NUMJOBS
|
||||||
}
|
}
|
||||||
|
|
||||||
deploy() {
|
deploy() {
|
||||||
local SOURCE="$1"
|
local SOURCE="$1"
|
||||||
local BUILD="$2"
|
local DEPLOY="$2"
|
||||||
local DEPLOY="$3"
|
local DEVDEPLOY="$3"
|
||||||
local DEVDEPLOY="$4"
|
|
||||||
|
|
||||||
make DESTDIR="$DEPLOY" install-strip
|
make DESTDIR="$DEPLOY" install-strip
|
||||||
|
|
||||||
|
|
|
@ -10,19 +10,15 @@ prepare() {
|
||||||
}
|
}
|
||||||
|
|
||||||
build() {
|
build() {
|
||||||
local INPUT="$1"
|
$1/configure --prefix="" --host="$TARGET"
|
||||||
local OUTPUT="$2"
|
|
||||||
|
|
||||||
$INPUT/configure --prefix="" --host="$TARGET"
|
|
||||||
|
|
||||||
make -j $NUMJOBS
|
make -j $NUMJOBS
|
||||||
}
|
}
|
||||||
|
|
||||||
deploy() {
|
deploy() {
|
||||||
local SOURCE="$1"
|
local SOURCE="$1"
|
||||||
local BUILD="$2"
|
local DEPLOY="$2"
|
||||||
local DEPLOY="$3"
|
local DEVDEPLOY="$3"
|
||||||
local DEVDEPLOY="$4"
|
|
||||||
|
|
||||||
make DESTDIR="$DEPLOY" install-strip
|
make DESTDIR="$DEPLOY" install-strip
|
||||||
|
|
||||||
|
|
|
@ -10,19 +10,15 @@ prepare() {
|
||||||
}
|
}
|
||||||
|
|
||||||
build() {
|
build() {
|
||||||
local SOURCE="$1"
|
$1/configure --prefix="" --host="$TARGET" --disable-static
|
||||||
local BUILD="$2"
|
|
||||||
|
|
||||||
$SOURCE/configure --prefix="" --host="$TARGET" --disable-static
|
|
||||||
|
|
||||||
make -j $NUMJOBS
|
make -j $NUMJOBS
|
||||||
}
|
}
|
||||||
|
|
||||||
deploy() {
|
deploy() {
|
||||||
local SOURCE="$1"
|
local SOURCE="$1"
|
||||||
local BUILD="$2"
|
local DEPLOY="$2"
|
||||||
local DEPLOY="$3"
|
local DEVDEPLOY="$3"
|
||||||
local DEVDEPLOY="$4"
|
|
||||||
|
|
||||||
make DESTDIR="$DEPLOY" install-strip
|
make DESTDIR="$DEPLOY" install-strip
|
||||||
|
|
||||||
|
|
|
@ -10,19 +10,15 @@ prepare() {
|
||||||
}
|
}
|
||||||
|
|
||||||
build() {
|
build() {
|
||||||
local SOURCE="$1"
|
$1/configure --prefix="" --host="$TARGET" --disable-static
|
||||||
local BUILD="$2"
|
|
||||||
|
|
||||||
$SOURCE/configure --prefix="" --host="$TARGET" --disable-static
|
|
||||||
|
|
||||||
make -j $NUMJOBS
|
make -j $NUMJOBS
|
||||||
}
|
}
|
||||||
|
|
||||||
deploy() {
|
deploy() {
|
||||||
local SOURCE="$1"
|
local SOURCE="$1"
|
||||||
local BUILD="$2"
|
local DEPLOY="$2"
|
||||||
local DEPLOY="$3"
|
local DEVDEPLOY="$3"
|
||||||
local DEVDEPLOY="$4"
|
|
||||||
|
|
||||||
make DESTDIR="$DEPLOY" install-strip
|
make DESTDIR="$DEPLOY" install-strip
|
||||||
|
|
||||||
|
|
|
@ -10,19 +10,15 @@ prepare() {
|
||||||
}
|
}
|
||||||
|
|
||||||
build() {
|
build() {
|
||||||
local SOURCE="$1"
|
$1/configure --prefix="" --host="$TARGET" --disable-static
|
||||||
local BUILD="$2"
|
|
||||||
|
|
||||||
$SOURCE/configure --prefix="" --host="$TARGET" --disable-static
|
|
||||||
|
|
||||||
make -j $NUMJOBS
|
make -j $NUMJOBS
|
||||||
}
|
}
|
||||||
|
|
||||||
deploy() {
|
deploy() {
|
||||||
local SOURCE="$1"
|
local SOURCE="$1"
|
||||||
local BUILD="$2"
|
local DEPLOY="$2"
|
||||||
local DEPLOY="$3"
|
local DEVDEPLOY="$3"
|
||||||
local DEVDEPLOY="$4"
|
|
||||||
|
|
||||||
make DESTDIR="$DEPLOY" install-strip
|
make DESTDIR="$DEPLOY" install-strip
|
||||||
|
|
||||||
|
|
|
@ -10,32 +10,25 @@ prepare() {
|
||||||
}
|
}
|
||||||
|
|
||||||
build() {
|
build() {
|
||||||
local INPUT="$1"
|
|
||||||
local OUTPUT="$2"
|
|
||||||
|
|
||||||
local CFGFILE="$SCRIPTDIR/board/$BOARD/linux.config"
|
|
||||||
local INITRDLIST="$PKGDEPLOYDIR/initrd/initrd.list"
|
local INITRDLIST="$PKGDEPLOYDIR/initrd/initrd.list"
|
||||||
|
|
||||||
export KBUILD_OUTPUT="$OUTPUT"
|
export KBUILD_OUTPUT="$PKGBUILDDIR"
|
||||||
make -C "$INPUT" O="$OUTPUT" ARCH="arm" CROSS_COMPILE="${TARGET}-" mrproper
|
make -C "$1" O="$PKGBUILDDIR" ARCH="arm" CROSS_COMPILE="${TARGET}-" mrproper
|
||||||
|
|
||||||
cp "$CFGFILE" "$OUTPUT/.config"
|
cp "$SCRIPTDIR/board/$BOARD/linux.config" "$PKGBUILDDIR/.config"
|
||||||
sed -i "$OUTPUT/.config" -e 's,^CONFIG_CROSS_COMPILE=.*,CONFIG_CROSS_COMPILE="'$TARGET'-",'
|
sed -i "$PKGBUILDDIR/.config" -e 's,^CONFIG_CROSS_COMPILE=.*,CONFIG_CROSS_COMPILE="'$TARGET'-",'
|
||||||
sed -i "$OUTPUT/.config" -e 's,^CONFIG_INITRAMFS_SOURCE=.*,CONFIG_INITRAMFS_SOURCE="'$INITRDLIST'",'
|
sed -i "$PKGBUILDDIR/.config" -e 's,^CONFIG_INITRAMFS_SOURCE=.*,CONFIG_INITRAMFS_SOURCE="'$INITRDLIST'",'
|
||||||
make -C "$INPUT" O="$OUTPUT" ARCH="arm" CROSS_COMPILE="${TARGET}-" oldconfig
|
make -C "$1" O="$PKGBUILDDIR" ARCH="arm" CROSS_COMPILE="${TARGET}-" oldconfig
|
||||||
|
|
||||||
sed -i "$OUTPUT/.config" -e 's,^CONFIG_CROSS_COMPILE=.*,CONFIG_CROSS_COMPILE="'$TARGET'-",'
|
sed -i "$PKGBUILDDIR/.config" -e 's,^CONFIG_CROSS_COMPILE=.*,CONFIG_CROSS_COMPILE="'$TARGET'-",'
|
||||||
sed -i "$OUTPUT/.config" -e 's,^CONFIG_INITRAMFS_SOURCE=.*,CONFIG_INITRAMFS_SOURCE="'$INITRDLIST'",'
|
sed -i "$PKGBUILDDIR/.config" -e 's,^CONFIG_INITRAMFS_SOURCE=.*,CONFIG_INITRAMFS_SOURCE="'$INITRDLIST'",'
|
||||||
sed -i "$OUTPUT/.config" -e 's,^CONFIG_LOCALVERSION=.*,CONFIG_LOCALVERSION="-'${OS_NAME}-${OS_RELEASE}'",'
|
sed -i "$PKGBUILDDIR/.config" -e 's,^CONFIG_LOCALVERSION=.*,CONFIG_LOCALVERSION="-'${OS_NAME}-${OS_RELEASE}'",'
|
||||||
make -C "$INPUT" O="$OUTPUT" ARCH="arm" CROSS_COMPILE="${TARGET}-" -j $NUMJOBS zImage dtbs
|
make -C "$1" O="$PKGBUILDDIR" ARCH="arm" CROSS_COMPILE="${TARGET}-" -j $NUMJOBS zImage dtbs
|
||||||
}
|
}
|
||||||
|
|
||||||
deploy() {
|
deploy() {
|
||||||
local SOURCE="$1"
|
local SOURCE="$1"
|
||||||
local BUILD="$2"
|
local DEPLOY="$2"
|
||||||
local DEPLOY="$3"
|
|
||||||
|
|
||||||
pushd $BUILD
|
|
||||||
install -m 755 "arch/arm/boot/zImage" "$DEPLOY/vmlinuz"
|
install -m 755 "arch/arm/boot/zImage" "$DEPLOY/vmlinuz"
|
||||||
popd
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -14,30 +14,24 @@ prepare() {
|
||||||
}
|
}
|
||||||
|
|
||||||
build() {
|
build() {
|
||||||
local INPUT="$1"
|
|
||||||
local OUTPUT="$2"
|
|
||||||
|
|
||||||
local CFGFILE="$SCRIPTDIR/board/$BOARD/linux.config"
|
local CFGFILE="$SCRIPTDIR/board/$BOARD/linux.config"
|
||||||
local INITRDLIST="$PKGDEPLOYDIR/initrd/initrd.list"
|
local INITRDLIST="$PKGDEPLOYDIR/initrd/initrd.list"
|
||||||
|
|
||||||
export KBUILD_OUTPUT="$OUTPUT"
|
export KBUILD_OUTPUT="$PKGBUILDDIR"
|
||||||
|
|
||||||
make -C "$INPUT" O="$OUTPUT" ARCH="$LINUX_CPU" CROSS_COMPILE="${TARGET}-" mrproper
|
make -C "$1" O="$PKGBUILDDIR" ARCH="$LINUX_CPU" CROSS_COMPILE="${TARGET}-" mrproper
|
||||||
cp "$CFGFILE" "$OUTPUT/.config"
|
cp "$CFGFILE" "$PKGBUILDDIR/.config"
|
||||||
|
|
||||||
make -C "$INPUT" O="$OUTPUT" ARCH="$LINUX_CPU" CROSS_COMPILE="${TARGET}-" oldconfig
|
make -C "$1" O="$PKGBUILDDIR" ARCH="$LINUX_CPU" CROSS_COMPILE="${TARGET}-" oldconfig
|
||||||
sed -i "$OUTPUT/.config" -e 's,^CONFIG_CROSS_COMPILE=.*,CONFIG_CROSS_COMPILE="'$TARGET'-",'
|
sed -i "$PKGBUILDDIR/.config" -e 's,^CONFIG_CROSS_COMPILE=.*,CONFIG_CROSS_COMPILE="'$TARGET'-",'
|
||||||
sed -i "$OUTPUT/.config" -e 's,^CONFIG_INITRAMFS_SOURCE=.*,CONFIG_INITRAMFS_SOURCE="'$INITRDLIST'",'
|
sed -i "$PKGBUILDDIR/.config" -e 's,^CONFIG_INITRAMFS_SOURCE=.*,CONFIG_INITRAMFS_SOURCE="'$INITRDLIST'",'
|
||||||
sed -i "$OUTPUT/.config" -e 's,^CONFIG_LOCALVERSION=.*,CONFIG_LOCALVERSION="-'${OS_NAME}-${OS_RELEASE}'",'
|
sed -i "$PKGBUILDDIR/.config" -e 's,^CONFIG_LOCALVERSION=.*,CONFIG_LOCALVERSION="-'${OS_NAME}-${OS_RELEASE}'",'
|
||||||
make -C "$INPUT" O="$OUTPUT" ARCH="$LINUX_CPU" CROSS_COMPILE="${TARGET}-" -j $NUMJOBS $LINUX_TGT
|
make -C "$1" O="$PKGBUILDDIR" ARCH="$LINUX_CPU" CROSS_COMPILE="${TARGET}-" -j $NUMJOBS $LINUX_TGT
|
||||||
}
|
}
|
||||||
|
|
||||||
deploy() {
|
deploy() {
|
||||||
local SOURCE="$1"
|
local SOURCE="$1"
|
||||||
local BUILD="$2"
|
local DEPLOY="$2"
|
||||||
local DEPLOY="$3"
|
|
||||||
|
|
||||||
pushd $BUILD
|
|
||||||
install -m 755 "arch/$LINUX_CPU/boot/$LINUX_TGT" "$DEPLOY/vmlinuz"
|
install -m 755 "arch/$LINUX_CPU/boot/$LINUX_TGT" "$DEPLOY/vmlinuz"
|
||||||
popd
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -3,29 +3,21 @@ source "$SCRIPTDIR/pkg/$LINUXPKG/build"
|
||||||
DEPENDS="toolchain"
|
DEPENDS="toolchain"
|
||||||
|
|
||||||
build() {
|
build() {
|
||||||
local INPUT="$1"
|
export KBUILD_OUTPUT="$PKGBUILDDIR"
|
||||||
local OUTPUT="$2"
|
make -C "$1" O="$PKGBUILDDIR" ARCH="$LINUX_CPU" CROSS_COMPILE="${TARGET}-" mrproper
|
||||||
|
cp "$SCRIPTDIR/board/$BOARD/linux.config" "$PKGBUILDDIR/.config"
|
||||||
|
|
||||||
local CFGFILE="$SCRIPTDIR/board/$BOARD/linux.config"
|
make -C "$1" O="$PKGBUILDDIR" ARCH="$LINUX_CPU" CROSS_COMPILE="${TARGET}-" oldconfig
|
||||||
|
sed -i "$PKGBUILDDIR/.config" -e 's,^CONFIG_CROSS_COMPILE=.*,CONFIG_CROSS_COMPILE="'$TARGET'-",'
|
||||||
export KBUILD_OUTPUT="$OUTPUT"
|
make -C "$1" O="$PKGBUILDDIR" ARCH="$LINUX_CPU" CROSS_COMPILE="${TARGET}-" -j $NUMJOBS modules
|
||||||
make -C "$INPUT" O="$OUTPUT" ARCH="$LINUX_CPU" CROSS_COMPILE="${TARGET}-" mrproper
|
|
||||||
cp "$CFGFILE" "$OUTPUT/.config"
|
|
||||||
|
|
||||||
make -C "$INPUT" O="$OUTPUT" ARCH="$LINUX_CPU" CROSS_COMPILE="${TARGET}-" oldconfig
|
|
||||||
sed -i "$OUTPUT/.config" -e 's,^CONFIG_CROSS_COMPILE=.*,CONFIG_CROSS_COMPILE="'$TARGET'-",'
|
|
||||||
make -C "$INPUT" O="$OUTPUT" ARCH="$LINUX_CPU" CROSS_COMPILE="${TARGET}-" -j $NUMJOBS modules
|
|
||||||
}
|
}
|
||||||
|
|
||||||
deploy() {
|
deploy() {
|
||||||
local SOURCE="$1"
|
local SOURCE="$1"
|
||||||
local BUILD="$2"
|
local DEPLOY="$2"
|
||||||
local DEPLOY="$3"
|
|
||||||
|
|
||||||
local CFGFILE="$SCRIPTDIR/board/$BOARD/linux.config"
|
|
||||||
|
|
||||||
mkdir -p "$DEPLOY/lib/modules"
|
mkdir -p "$DEPLOY/lib/modules"
|
||||||
|
|
||||||
export KBUILD_OUTPUT="$BUILD"
|
export KBUILD_OUTPUT="$PKGBUILDDIR"
|
||||||
make -C "$SOURCE" O="$BUILD" ARCH="$LINUX_CPU" CROSS_COMPILE="${TARGET}-" INSTALL_MOD_PATH="$DEPLOY" modules_install
|
make -C "$SOURCE" O="$PKGBUILDDIR" ARCH="$LINUX_CPU" CROSS_COMPILE="${TARGET}-" INSTALL_MOD_PATH="$DEPLOY" modules_install
|
||||||
}
|
}
|
||||||
|
|
|
@ -10,20 +10,16 @@ prepare() {
|
||||||
}
|
}
|
||||||
|
|
||||||
build() {
|
build() {
|
||||||
local SOURCE="$1"
|
$1/configure --prefix="" --host="$TARGET" \
|
||||||
local BUILD="$2"
|
--enable-shared --disable-static
|
||||||
|
|
||||||
$SOURCE/configure --prefix="" --host="$TARGET" \
|
|
||||||
--enable-shared --disable-static
|
|
||||||
|
|
||||||
make -j $NUMJOBS
|
make -j $NUMJOBS
|
||||||
}
|
}
|
||||||
|
|
||||||
deploy() {
|
deploy() {
|
||||||
local SOURCE="$1"
|
local SOURCE="$1"
|
||||||
local BUILD="$2"
|
local DEPLOY="$2"
|
||||||
local DEPLOY="$3"
|
local DEVDEPLOY="$3"
|
||||||
local DEVDEPLOY="$4"
|
|
||||||
|
|
||||||
make DESTDIR="$DEPLOY" install-strip
|
make DESTDIR="$DEPLOY" install-strip
|
||||||
|
|
||||||
|
|
|
@ -10,18 +10,14 @@ prepare() {
|
||||||
}
|
}
|
||||||
|
|
||||||
build() {
|
build() {
|
||||||
local INPUT="$1"
|
$1/configure --prefix="" --host="$TARGET" --enable-utf8
|
||||||
local OUTPUT="$2"
|
|
||||||
|
|
||||||
$INPUT/configure --prefix="" --host="$TARGET" --enable-utf8
|
|
||||||
|
|
||||||
make -j $NUMJOBS
|
make -j $NUMJOBS
|
||||||
}
|
}
|
||||||
|
|
||||||
deploy() {
|
deploy() {
|
||||||
local SOURCE="$1"
|
local SOURCE="$1"
|
||||||
local BUILD="$2"
|
local DEPLOY="$2"
|
||||||
local DEPLOY="$3"
|
|
||||||
|
|
||||||
make DESTDIR="$DEPLOY" install-strip
|
make DESTDIR="$DEPLOY" install-strip
|
||||||
|
|
||||||
|
|
|
@ -10,23 +10,18 @@ prepare() {
|
||||||
}
|
}
|
||||||
|
|
||||||
build() {
|
build() {
|
||||||
local INPUT="$1"
|
$1/configure --prefix="" --host="$TARGET" --with-shared \
|
||||||
local OUTPUT="$2"
|
--without-debug --without-ada --enable-widec \
|
||||||
|
--with-pkg-config-libdir=/lib/pkgconfig \
|
||||||
$INPUT/configure --prefix="" --host="$TARGET" \
|
--enable-pc-files --disable-stripping
|
||||||
--with-shared --without-debug \
|
|
||||||
--without-ada --enable-widec \
|
|
||||||
--with-pkg-config-libdir=/lib/pkgconfig \
|
|
||||||
--enable-pc-files --disable-stripping
|
|
||||||
|
|
||||||
make -j $NUMJOBS
|
make -j $NUMJOBS
|
||||||
}
|
}
|
||||||
|
|
||||||
deploy() {
|
deploy() {
|
||||||
local SOURCE="$1"
|
local SOURCE="$1"
|
||||||
local BUILD="$2"
|
local DEPLOY="$2"
|
||||||
local DEPLOY="$3"
|
local DEVDEPLOY="$3"
|
||||||
local DEVDEPLOY="$4"
|
|
||||||
|
|
||||||
make DESTDIR="$DEPLOY" install
|
make DESTDIR="$DEPLOY" install
|
||||||
|
|
||||||
|
|
|
@ -10,19 +10,15 @@ prepare() {
|
||||||
}
|
}
|
||||||
|
|
||||||
build() {
|
build() {
|
||||||
local SOURCE="$1"
|
$1/configure --prefix="" --host="$TARGET" --disable-static
|
||||||
local BUILD="$2"
|
|
||||||
|
|
||||||
$SOURCE/configure --prefix="" --host="$TARGET" --disable-static
|
|
||||||
|
|
||||||
make -j $NUMJOBS
|
make -j $NUMJOBS
|
||||||
}
|
}
|
||||||
|
|
||||||
deploy() {
|
deploy() {
|
||||||
local SOURCE="$1"
|
local SOURCE="$1"
|
||||||
local BUILD="$2"
|
local DEPLOY="$2"
|
||||||
local DEPLOY="$3"
|
local DEVDEPLOY="$3"
|
||||||
local DEVDEPLOY="$4"
|
|
||||||
|
|
||||||
make DESTDIR="$DEPLOY" install
|
make DESTDIR="$DEPLOY" install
|
||||||
|
|
||||||
|
|
|
@ -10,20 +10,16 @@ prepare() {
|
||||||
}
|
}
|
||||||
|
|
||||||
build() {
|
build() {
|
||||||
local INPUT="$1"
|
$1/configure --prefix="" --host="$TARGET" --sbindir=/bin \
|
||||||
local OUTPUT="$2"
|
--disable-debug --disable-man-doc --without-mini-gmp
|
||||||
|
|
||||||
$INPUT/configure --prefix="" --host="$TARGET" --sbindir=/bin \
|
|
||||||
--disable-debug --disable-man-doc --without-mini-gmp
|
|
||||||
|
|
||||||
make -j $NUMJOBS
|
make -j $NUMJOBS
|
||||||
}
|
}
|
||||||
|
|
||||||
deploy() {
|
deploy() {
|
||||||
local SOURCE="$1"
|
local SOURCE="$1"
|
||||||
local BUILD="$2"
|
local DEPLOY="$2"
|
||||||
local DEPLOY="$3"
|
local DEVDEPLOY="$3"
|
||||||
local DEVDEPLOY="$4"
|
|
||||||
|
|
||||||
make DESTDIR="$DEPLOY" install-strip
|
make DESTDIR="$DEPLOY" install-strip
|
||||||
}
|
}
|
||||||
|
|
|
@ -11,12 +11,11 @@ prepare() {
|
||||||
|
|
||||||
build() {
|
build() {
|
||||||
local SOURCE="$1"
|
local SOURCE="$1"
|
||||||
local BUILD="$2"
|
local DEPLOY="$2"
|
||||||
local DEPLOY="$3"
|
|
||||||
|
|
||||||
local distroname="${OS_NAME}-${OS_RELEASE}"
|
local distroname="${OS_NAME}-${OS_RELEASE}"
|
||||||
|
|
||||||
cp -R ${SOURCE}/* ${BUILD}
|
cp -R ${SOURCE}/* ${PKGBUILDDIR}
|
||||||
|
|
||||||
apply_patches
|
apply_patches
|
||||||
|
|
||||||
|
@ -31,9 +30,8 @@ build() {
|
||||||
|
|
||||||
deploy() {
|
deploy() {
|
||||||
local SOURCE="$1"
|
local SOURCE="$1"
|
||||||
local BUILD="$2"
|
local DEPLOY="$2"
|
||||||
local DEPLOY="$3"
|
local DEVDEPLOY="$3"
|
||||||
local DEVDEPLOY="$4"
|
|
||||||
|
|
||||||
local distroname="${OS_NAME}-${OS_RELEASE}"
|
local distroname="${OS_NAME}-${OS_RELEASE}"
|
||||||
|
|
||||||
|
|
|
@ -10,22 +10,18 @@ prepare() {
|
||||||
}
|
}
|
||||||
|
|
||||||
build() {
|
build() {
|
||||||
local SOURCE="$1"
|
$1/configure --prefix="" --host="$TARGET" --sbindir=/bin \
|
||||||
local BUILD="$2"
|
--with-pie --without-pam --without-stackprotect \
|
||||||
|
--without-selinux --disable-strip \
|
||||||
$SOURCE/configure --prefix="" --host="$TARGET" --sbindir=/bin \
|
--with-sandbox=seccomp_filter \
|
||||||
--with-pie --without-pam --without-stackprotect \
|
--with-privsep-path=/var/lib/sshd
|
||||||
--without-selinux --disable-strip \
|
|
||||||
--with-sandbox=seccomp_filter \
|
|
||||||
--with-privsep-path=/var/lib/sshd
|
|
||||||
|
|
||||||
make -j $NUMJOBS
|
make -j $NUMJOBS
|
||||||
}
|
}
|
||||||
|
|
||||||
deploy() {
|
deploy() {
|
||||||
local SOURCE="$1"
|
local SOURCE="$1"
|
||||||
local BUILD="$2"
|
local DEPLOY="$2"
|
||||||
local DEPLOY="$3"
|
|
||||||
|
|
||||||
make DESTDIR="$DEPLOY" install
|
make DESTDIR="$DEPLOY" install
|
||||||
|
|
||||||
|
|
|
@ -10,22 +10,18 @@ prepare() {
|
||||||
}
|
}
|
||||||
|
|
||||||
build() {
|
build() {
|
||||||
local SOURCE="$1"
|
$1/Configure --prefix=/ --cross-compile-prefix="${TARGET}-" \
|
||||||
local BUILD="$2"
|
--openssldir=/etc/ssl --libdir=/lib \
|
||||||
|
-DOPENSSL_NO_HEARTBEATS \
|
||||||
$SOURCE/Configure --prefix=/ --cross-compile-prefix="${TARGET}-" \
|
threads shared zlib-dynamic no-async $OPENSSL_TARGET
|
||||||
--openssldir=/etc/ssl --libdir=/lib \
|
|
||||||
-DOPENSSL_NO_HEARTBEATS \
|
|
||||||
threads shared zlib-dynamic no-async $OPENSSL_TARGET
|
|
||||||
|
|
||||||
make -j 1
|
make -j 1
|
||||||
}
|
}
|
||||||
|
|
||||||
deploy() {
|
deploy() {
|
||||||
local SOURCE="$1"
|
local SOURCE="$1"
|
||||||
local BUILD="$2"
|
local DEPLOY="$2"
|
||||||
local DEPLOY="$3"
|
local DEVDEPLOY="$3"
|
||||||
local DEVDEPLOY="$4"
|
|
||||||
|
|
||||||
make DESTDIR="$DEPLOY" install
|
make DESTDIR="$DEPLOY" install
|
||||||
|
|
||||||
|
|
|
@ -10,23 +10,19 @@ prepare() {
|
||||||
}
|
}
|
||||||
|
|
||||||
build() {
|
build() {
|
||||||
local INPUT="$1"
|
|
||||||
local OUTPUT="$2"
|
|
||||||
|
|
||||||
ac_cv_func_malloc_0_nonnull=yes \
|
ac_cv_func_malloc_0_nonnull=yes \
|
||||||
ac_cv_func_realloc_0_nonnull=yes \
|
ac_cv_func_realloc_0_nonnull=yes \
|
||||||
$INPUT/configure --prefix="" --host="$TARGET" --disable-static \
|
$1/configure --prefix="" --host="$TARGET" --disable-static \
|
||||||
--enable-watch8bit --with-ncurses --without-systemd \
|
--enable-watch8bit --with-ncurses --without-systemd \
|
||||||
--disable-kill --sbindir=/bin
|
--disable-kill --sbindir=/bin
|
||||||
|
|
||||||
make -j $NUMJOBS
|
make -j $NUMJOBS
|
||||||
}
|
}
|
||||||
|
|
||||||
deploy() {
|
deploy() {
|
||||||
local SOURCE="$1"
|
local SOURCE="$1"
|
||||||
local BUILD="$2"
|
local DEPLOY="$2"
|
||||||
local DEPLOY="$3"
|
local DEVDEPLOY="$3"
|
||||||
local DEVDEPLOY="$4"
|
|
||||||
|
|
||||||
make DESTDIR="$DEPLOY" install-strip
|
make DESTDIR="$DEPLOY" install-strip
|
||||||
|
|
||||||
|
|
|
@ -10,22 +10,18 @@ prepare() {
|
||||||
}
|
}
|
||||||
|
|
||||||
build() {
|
build() {
|
||||||
local INPUT="$1"
|
|
||||||
local OUTPUT="$2"
|
|
||||||
|
|
||||||
ac_cv_func_malloc_0_nonnull=yes \
|
ac_cv_func_malloc_0_nonnull=yes \
|
||||||
ac_cv_func_realloc_0_nonnull=yes \
|
ac_cv_func_realloc_0_nonnull=yes \
|
||||||
$INPUT/configure --prefix="" --host="$TARGET" --disable-static \
|
$1/configure --prefix="" --host="$TARGET" --disable-static \
|
||||||
--disable-selinux
|
--disable-selinux
|
||||||
|
|
||||||
make -j $NUMJOBS
|
make -j $NUMJOBS
|
||||||
}
|
}
|
||||||
|
|
||||||
deploy() {
|
deploy() {
|
||||||
local SOURCE="$1"
|
local SOURCE="$1"
|
||||||
local BUILD="$2"
|
local DEPLOY="$2"
|
||||||
local DEPLOY="$3"
|
local DEVDEPLOY="$3"
|
||||||
local DEVDEPLOY="$4"
|
|
||||||
|
|
||||||
make DESTDIR="$DEPLOY" install-strip
|
make DESTDIR="$DEPLOY" install-strip
|
||||||
rm -r "$DEPLOY/share"
|
rm -r "$DEPLOY/share"
|
||||||
|
|
|
@ -10,19 +10,15 @@ prepare() {
|
||||||
}
|
}
|
||||||
|
|
||||||
build() {
|
build() {
|
||||||
local INPUT="$1"
|
$1/configure --prefix="" --host="$TARGET" --disable-static
|
||||||
local OUTPUT="$2"
|
|
||||||
|
|
||||||
$INPUT/configure --prefix="" --host="$TARGET" --disable-static
|
|
||||||
|
|
||||||
make SHLIB_LIBS="-lncursesw" -j $NUMJOBS
|
make SHLIB_LIBS="-lncursesw" -j $NUMJOBS
|
||||||
}
|
}
|
||||||
|
|
||||||
deploy() {
|
deploy() {
|
||||||
local SOURCE="$1"
|
local SOURCE="$1"
|
||||||
local BUILD="$2"
|
local DEPLOY="$2"
|
||||||
local DEPLOY="$3"
|
local DEVDEPLOY="$3"
|
||||||
local DEVDEPLOY="$4"
|
|
||||||
|
|
||||||
make SHLIB_LIBS="-lncursesw" DESTDIR="$DEPLOY" install
|
make SHLIB_LIBS="-lncursesw" DESTDIR="$DEPLOY" install
|
||||||
|
|
||||||
|
|
|
@ -2,15 +2,15 @@ DEPENDS="rootfs linux"
|
||||||
|
|
||||||
build() {
|
build() {
|
||||||
local SOURCE="$1"
|
local SOURCE="$1"
|
||||||
local BUILD="$2"
|
local DEPLOY="$2"
|
||||||
local DEPLOY="$3"
|
|
||||||
|
|
||||||
mkdir -p "$BUILD/$OS_RELEASE"
|
mkdir -p "$PKGBUILDDIR/$OS_RELEASE"
|
||||||
|
|
||||||
# copy output of immediate dependencies
|
# copy output of immediate dependencies
|
||||||
for pkgname in $DEPENDS; do
|
for pkgname in $DEPENDS; do
|
||||||
if [ -e "$PKGDEPLOYDIR/$pkgname" ]; then
|
if [ -e "$PKGDEPLOYDIR/$pkgname" ]; then
|
||||||
cp -ru ${PKGDEPLOYDIR}/${pkgname}/* "$BUILD/$OS_RELEASE"
|
cp -ru ${PKGDEPLOYDIR}/${pkgname}/* \
|
||||||
|
"$PKGBUILDDIR/$OS_RELEASE"
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
||||||
|
@ -18,21 +18,20 @@ build() {
|
||||||
local linux_image="$OS_RELEASE/vmlinuz"
|
local linux_image="$OS_RELEASE/vmlinuz"
|
||||||
local rootfs_image="$OS_RELEASE/rootfs.img"
|
local rootfs_image="$OS_RELEASE/rootfs.img"
|
||||||
|
|
||||||
cp "/usr/share/syslinux/mbr.bin" "$BUILD"
|
cp "/usr/share/syslinux/mbr.bin" "$PKGBUILDDIR"
|
||||||
|
|
||||||
for script in install.sh genimage.sh syslinux.cfg; do
|
for script in install.sh genimage.sh syslinux.cfg; do
|
||||||
cp "$SCRIPTDIR/pkg/$PKGNAME/$script" "$BUILD"
|
cp "$SCRIPTDIR/pkg/$PKGNAME/$script" "$PKGBUILDDIR"
|
||||||
|
|
||||||
sed -i 's#ROOTFSFILE#'$rootfs_image'#g' "$BUILD/$script"
|
sed -i 's#ROOTFSFILE#'$rootfs_image'#g' "$PKGBUILDDIR/$script"
|
||||||
sed -i 's#KERNELFILE#'$linux_image'#g' "$BUILD/$script"
|
sed -i 's#KERNELFILE#'$linux_image'#g' "$PKGBUILDDIR/$script"
|
||||||
sed -i 's#VERSIONDIR#'$OS_RELEASE'#g' "$BUILD/$script"
|
sed -i 's#VERSIONDIR#'$OS_RELEASE'#g' "$PKGBUILDDIR/$script"
|
||||||
done
|
done
|
||||||
}
|
}
|
||||||
|
|
||||||
deploy() {
|
deploy() {
|
||||||
local SOURCE="$1"
|
local SOURCE="$1"
|
||||||
local BUILD="$2"
|
local DEPLOY="$2"
|
||||||
local DEPLOY="$3"
|
|
||||||
|
|
||||||
tar czf "$DEPLOY/$PKGNAME.tar.gz" *
|
tar czf "$DEPLOY/$PKGNAME.tar.gz" *
|
||||||
}
|
}
|
||||||
|
|
|
@ -2,39 +2,37 @@ DEPENDS="rootfs linux-rpi3 boot-rpi3"
|
||||||
|
|
||||||
build() {
|
build() {
|
||||||
local SOURCE="$1"
|
local SOURCE="$1"
|
||||||
local BUILD="$2"
|
local DEPLOY="$2"
|
||||||
local DEPLOY="$3"
|
|
||||||
|
|
||||||
# copy output of immediate dependencies
|
# copy output of immediate dependencies
|
||||||
mkdir -p "$BUILD/boot"
|
mkdir -p "$PKGBUILDDIR/boot"
|
||||||
|
|
||||||
for pkgname in $DEPENDS; do
|
for pkgname in $DEPENDS; do
|
||||||
if [ -e "$PKGDEPLOYDIR/$pkgname" ]; then
|
if [ -e "$PKGDEPLOYDIR/$pkgname" ]; then
|
||||||
cp -ru ${PKGDEPLOYDIR}/${pkgname}/* "$BUILD/boot"
|
cp -ru ${PKGDEPLOYDIR}/${pkgname}/* "$PKGBUILDDIR/boot"
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
||||||
# copy files from this package
|
# copy files from this package
|
||||||
cp "$SCRIPTDIR/pkg/$PKGNAME/cmdline.txt" "$BUILD/boot"
|
cp "$SCRIPTDIR/pkg/$PKGNAME/cmdline.txt" "$PKGBUILDDIR/boot"
|
||||||
cp "$SCRIPTDIR/pkg/$PKGNAME/install.sh" "$BUILD"
|
cp "$SCRIPTDIR/pkg/$PKGNAME/install.sh" "$PKGBUILDDIR"
|
||||||
cp "$SCRIPTDIR/pkg/$PKGNAME/genimage.sh" "$BUILD"
|
cp "$SCRIPTDIR/pkg/$PKGNAME/genimage.sh" "$PKGBUILDDIR"
|
||||||
|
|
||||||
# substitute file names in scripts
|
# substitute file names in scripts
|
||||||
mkdir -p "$BUILD/boot/$OS_RELEASE"
|
mkdir -p "$PKGBUILDDIR/boot/$OS_RELEASE"
|
||||||
mv "$BUILD/boot/rootfs.img" "$BUILD/boot/$OS_RELEASE"
|
mv "$PKGBUILDDIR/boot/rootfs.img" "$PKGBUILDDIR/boot/$OS_RELEASE"
|
||||||
mv "$BUILD/boot/vmlinuz" "$BUILD/boot/$OS_RELEASE"
|
mv "$PKGBUILDDIR/boot/vmlinuz" "$PKGBUILDDIR/boot/$OS_RELEASE"
|
||||||
|
|
||||||
local rootfs_image="$OS_RELEASE/rootfs.img"
|
local rootfs_image="$OS_RELEASE/rootfs.img"
|
||||||
local kernel_image="$OS_RELEASE/vmlinuz"
|
local kernel_image="$OS_RELEASE/vmlinuz"
|
||||||
|
|
||||||
sed -i 's#ROOTFSFILE#'$rootfs_image'#g' "$BUILD/boot/cmdline.txt"
|
sed -i 's#ROOTFSFILE#'$rootfs_image'#g' "$PKGBUILDDIR/boot/cmdline.txt"
|
||||||
sed -i 's#KERNELFILE#'$kernel_image'#g' "$BUILD/boot/config.txt"
|
sed -i 's#KERNELFILE#'$kernel_image'#g' "$PKGBUILDDIR/boot/config.txt"
|
||||||
}
|
}
|
||||||
|
|
||||||
deploy() {
|
deploy() {
|
||||||
local SOURCE="$1"
|
local SOURCE="$1"
|
||||||
local BUILD="$2"
|
local DEPLOY="$2"
|
||||||
local DEPLOY="$3"
|
|
||||||
|
|
||||||
tar czf "$DEPLOY/$PKGNAME.tar.gz" *
|
tar czf "$DEPLOY/$PKGNAME.tar.gz" *
|
||||||
}
|
}
|
||||||
|
|
|
@ -3,52 +3,53 @@ DEPENDS="$DEPENDS toolchain"
|
||||||
|
|
||||||
build() {
|
build() {
|
||||||
local SOURCE="$1"
|
local SOURCE="$1"
|
||||||
local BUILD="$2"
|
local DEPLOY="$2"
|
||||||
local DEPLOY="$3"
|
|
||||||
|
|
||||||
# setup skeleton
|
# setup skeleton
|
||||||
mkdir -pv ${BUILD}/{bin,lib,etc,dev,sys,proc,tmp,var,run}
|
mkdir -pv ${PKGBUILDDIR}/{bin,lib,etc,dev,sys,proc,tmp,var,run}
|
||||||
mkdir -pv ${BUILD}/{boot,usr,srv,mnt,opt}
|
mkdir -pv ${PKGBUILDDIR}/{boot,usr,srv,mnt,opt}
|
||||||
mkdir -pv ${BUILD}/cfg/{preserve,overlay}
|
mkdir -pv ${PKGBUILDDIR}/cfg/{preserve,overlay}
|
||||||
|
|
||||||
cp -r "$SCRIPTDIR/pkg/$PKGNAME/etc" "$BUILD"
|
cp -r "$SCRIPTDIR/pkg/$PKGNAME/etc" "$PKGBUILDDIR"
|
||||||
|
|
||||||
# install packages to rootfs
|
# install packages to rootfs
|
||||||
dependencies | tsort | tac | grep -v "$PKGNAME" > "$BUILD/etc/packages"
|
dependencies | tsort | tac | \
|
||||||
|
grep -v "$PKGNAME" > "$PKGBUILDDIR/etc/packages"
|
||||||
|
|
||||||
while read pkgname; do
|
while read pkgname; do
|
||||||
if [ ! -e "$PKGDEPLOYDIR/$pkgname" ]; then
|
if [ ! -e "$PKGDEPLOYDIR/$pkgname" ]; then
|
||||||
continue
|
continue
|
||||||
fi
|
fi
|
||||||
|
|
||||||
cp -ru --remove-destination ${PKGDEPLOYDIR}/${pkgname}/* "$BUILD"
|
cp -ru --remove-destination ${PKGDEPLOYDIR}/${pkgname}/* \
|
||||||
done < "$BUILD/etc/packages"
|
"$PKGBUILDDIR"
|
||||||
|
done < "$PKGBUILDDIR/etc/packages"
|
||||||
|
|
||||||
# version info
|
# version info
|
||||||
local fname=$(echo "${OS_NAME}-release" | tr '[:upper:]' '[:lower:]')
|
local fname=$(echo "${OS_NAME}-release" | tr '[:upper:]' '[:lower:]')
|
||||||
|
|
||||||
echo $OS_RELEASE > $BUILD/etc/$fname
|
echo $OS_RELEASE > $PKGBUILDDIR/etc/$fname
|
||||||
|
|
||||||
# setup root home directory
|
# setup root home directory
|
||||||
cp -r "$BUILD/etc/skel" "$BUILD/root"
|
cp -r "$PKGBUILDDIR/etc/skel" "$PKGBUILDDIR/root"
|
||||||
chmod 750 "$BUILD/root"
|
chmod 750 "$PKGBUILDDIR/root"
|
||||||
|
|
||||||
# move configuration to preserve directory
|
# move configuration to preserve directory
|
||||||
mv ${BUILD}/etc ${BUILD}/cfg/preserve
|
mv ${PKGBUILDDIR}/etc ${PKGBUILDDIR}/cfg/preserve
|
||||||
mkdir -p ${BUILD}/etc
|
mkdir -p ${PKGBUILDDIR}/etc
|
||||||
|
|
||||||
mv ${BUILD}/var/lib ${BUILD}/cfg/preserve/var_lib
|
mv ${PKGBUILDDIR}/var/lib ${PKGBUILDDIR}/cfg/preserve/var_lib
|
||||||
|
|
||||||
mv ${BUILD}/root ${BUILD}/cfg/preserve
|
mv ${PKGBUILDDIR}/root ${PKGBUILDDIR}/cfg/preserve
|
||||||
mkdir -p ${BUILD}/root
|
mkdir -p ${PKGBUILDDIR}/root
|
||||||
chmod 750 ${BUILD}/root
|
chmod 750 ${PKGBUILDDIR}/root
|
||||||
chmod 750 ${BUILD}/cfg/preserve/root
|
chmod 750 ${PKGBUILDDIR}/cfg/preserve/root
|
||||||
}
|
}
|
||||||
|
|
||||||
deploy() {
|
deploy() {
|
||||||
local SOURCE="$1"
|
local SOURCE="$1"
|
||||||
local BUILD="$2"
|
local DEPLOY="$2"
|
||||||
local DEPLOY="$3"
|
|
||||||
|
|
||||||
mksquashfs "$BUILD" "$DEPLOY/rootfs.img" -all-root -no-progress -no-xattrs
|
mksquashfs "$PKGBUILDDIR" "$DEPLOY/rootfs.img" \
|
||||||
|
-all-root -no-progress -no-xattrs
|
||||||
}
|
}
|
||||||
|
|
|
@ -10,18 +10,14 @@ prepare() {
|
||||||
}
|
}
|
||||||
|
|
||||||
build() {
|
build() {
|
||||||
local SOURCE="$1"
|
$1/configure --prefix="" --host="$TARGET"
|
||||||
local BUILD="$2"
|
|
||||||
|
|
||||||
$SOURCE/configure --prefix="" --host="$TARGET"
|
|
||||||
|
|
||||||
make -j $NUMJOBS
|
make -j $NUMJOBS
|
||||||
}
|
}
|
||||||
|
|
||||||
deploy() {
|
deploy() {
|
||||||
local SOURCE="$1"
|
local SOURCE="$1"
|
||||||
local BUILD="$2"
|
local DEPLOY="$2"
|
||||||
local DEPLOY="$3"
|
|
||||||
|
|
||||||
make DESTDIR="$DEPLOY" install-strip
|
make DESTDIR="$DEPLOY" install-strip
|
||||||
|
|
||||||
|
|
|
@ -13,20 +13,16 @@ prepare() {
|
||||||
}
|
}
|
||||||
|
|
||||||
build() {
|
build() {
|
||||||
local SOURCE="$1"
|
$1/configure --prefix="" --host="$TARGET" --sbindir=/bin \
|
||||||
local BUILD="$2"
|
--disable-man --without-libpam --without-selinux \
|
||||||
|
--with-sha-crypt --with-group-name-max-length=32
|
||||||
$SOURCE/configure --prefix="" --host="$TARGET" --sbindir=/bin\
|
|
||||||
--disable-man --without-libpam --without-selinux \
|
|
||||||
--with-sha-crypt --with-group-name-max-length=32
|
|
||||||
|
|
||||||
make -j $NUMJOBS
|
make -j $NUMJOBS
|
||||||
}
|
}
|
||||||
|
|
||||||
deploy() {
|
deploy() {
|
||||||
local SOURCE="$1"
|
local SOURCE="$1"
|
||||||
local BUILD="$2"
|
local DEPLOY="$2"
|
||||||
local DEPLOY="$3"
|
|
||||||
|
|
||||||
make DESTDIR="$DEPLOY" install-strip
|
make DESTDIR="$DEPLOY" install-strip
|
||||||
|
|
||||||
|
|
|
@ -10,19 +10,15 @@ prepare() {
|
||||||
}
|
}
|
||||||
|
|
||||||
build() {
|
build() {
|
||||||
local INPUT="$1"
|
$1/configure --prefix="" --host="$TARGET" --disable-tcl
|
||||||
local OUTPUT="$2"
|
|
||||||
|
|
||||||
$INPUT/configure --prefix="" --host="$TARGET" --disable-tcl
|
|
||||||
|
|
||||||
make -j $NUMJOBS
|
make -j $NUMJOBS
|
||||||
}
|
}
|
||||||
|
|
||||||
deploy() {
|
deploy() {
|
||||||
local SOURCE="$1"
|
local SOURCE="$1"
|
||||||
local BUILD="$2"
|
local DEPLOY="$2"
|
||||||
local DEPLOY="$3"
|
local DEVDEPLOY="$3"
|
||||||
local DEVDEPLOY="$4"
|
|
||||||
|
|
||||||
make DESTDIR="$DEPLOY" install-strip
|
make DESTDIR="$DEPLOY" install-strip
|
||||||
|
|
||||||
|
|
|
@ -10,18 +10,14 @@ prepare() {
|
||||||
}
|
}
|
||||||
|
|
||||||
build() {
|
build() {
|
||||||
local SOURCE="$1"
|
$1/configure --prefix="" --host="$TARGET"
|
||||||
local BUILD="$2"
|
|
||||||
|
|
||||||
$SOURCE/configure --prefix="" --host="$TARGET"
|
|
||||||
|
|
||||||
make -j $NUMJOBS
|
make -j $NUMJOBS
|
||||||
}
|
}
|
||||||
|
|
||||||
deploy() {
|
deploy() {
|
||||||
local SOURCE="$1"
|
local SOURCE="$1"
|
||||||
local BUILD="$2"
|
local DEPLOY="$2"
|
||||||
local DEPLOY="$3"
|
|
||||||
|
|
||||||
make DESTDIR="$DEPLOY" install-strip
|
make DESTDIR="$DEPLOY" install-strip
|
||||||
|
|
||||||
|
|
|
@ -10,12 +10,8 @@ prepare() {
|
||||||
}
|
}
|
||||||
|
|
||||||
build() {
|
build() {
|
||||||
local INPUT="$1"
|
$1/configure --prefix="$TCDIR" --target="$TARGET" --disable-nls \
|
||||||
local OUTPUT="$2"
|
--with-sysroot="$TCDIR/$TARGET" --disable-multilib
|
||||||
|
|
||||||
$INPUT/configure --prefix="$TCDIR" --target="$TARGET" \
|
|
||||||
--with-sysroot="$TCDIR/$TARGET" \
|
|
||||||
--disable-nls --disable-multilib
|
|
||||||
|
|
||||||
make configure-host
|
make configure-host
|
||||||
make -j $NUMJOBS
|
make -j $NUMJOBS
|
||||||
|
|
|
@ -6,11 +6,8 @@ prepare() {
|
||||||
}
|
}
|
||||||
|
|
||||||
build() {
|
build() {
|
||||||
local SOURCE="$1"
|
$1/configure --prefix="$TCDIR" --disable-static \
|
||||||
local BUILD="$2"
|
--build="$HOSTTUPLE" --host="$HOSTTUPLE"
|
||||||
|
|
||||||
$SOURCE/configure --prefix="$TCDIR" --disable-static \
|
|
||||||
--build="$HOSTTUPLE" --host="$HOSTTUPLE"
|
|
||||||
|
|
||||||
make -j $NUMJOBS
|
make -j $NUMJOBS
|
||||||
}
|
}
|
||||||
|
|
|
@ -25,19 +25,16 @@ prepare() {
|
||||||
}
|
}
|
||||||
|
|
||||||
build() {
|
build() {
|
||||||
local INPUT="$1"
|
$1/configure --prefix="$TCDIR" --target="$TARGET" \
|
||||||
local OUTPUT="$2"
|
--build="$HOSTTUPLE" --host="$HOSTTUPLE" \
|
||||||
|
--with-sysroot="$TCDIR/$TARGET" \
|
||||||
$INPUT/configure --prefix="$TCDIR" --target="$TARGET" \
|
--disable-nls --disable-shared --without-headers \
|
||||||
--build="$HOSTTUPLE" --host="$HOSTTUPLE" \
|
--disable-multilib --disable-decimal-float \
|
||||||
--with-sysroot="$TCDIR/$TARGET" \
|
--disable-libgomp --disable-libmudflap \
|
||||||
--disable-nls --disable-shared --without-headers \
|
--disable-libssp --disable-libatomic \
|
||||||
--disable-multilib --disable-decimal-float \
|
--disable-libquadmath --disable-threads \
|
||||||
--disable-libgomp --disable-libmudflap \
|
--enable-languages=c --with-newlib \
|
||||||
--disable-libssp --disable-libatomic \
|
--with-arch="$GCC_CPU" $GCC_EXTRACFG
|
||||||
--disable-libquadmath --disable-threads \
|
|
||||||
--enable-languages=c --with-newlib \
|
|
||||||
--with-arch="$GCC_CPU" $GCC_EXTRACFG
|
|
||||||
|
|
||||||
make -j $NUMJOBS all-gcc all-target-libgcc
|
make -j $NUMJOBS all-gcc all-target-libgcc
|
||||||
}
|
}
|
||||||
|
|
|
@ -3,28 +3,24 @@ source "$SCRIPTDIR/pkg/tc-gcc1/build"
|
||||||
DEPENDS="tc-gcc1 tc-musl tc-linux_hdr"
|
DEPENDS="tc-gcc1 tc-musl tc-linux_hdr"
|
||||||
|
|
||||||
build() {
|
build() {
|
||||||
local INPUT="$1"
|
$1/configure --prefix="$TCDIR" --target="$TARGET" \
|
||||||
local OUTPUT="$2"
|
--build="$HOSTTUPLE" --host="$HOSTTUPLE" \
|
||||||
|
--with-sysroot="$TCDIR/$TARGET" \
|
||||||
$INPUT/configure --prefix="$TCDIR" --target="$TARGET" \
|
--disable-nls --enable-languages=c,c++ \
|
||||||
--build="$HOSTTUPLE" --host="$HOSTTUPLE" \
|
--enable-c99 --enable-long-long \
|
||||||
--with-sysroot="$TCDIR/$TARGET" \
|
--disable-libmudflap --disable-multilib \
|
||||||
--disable-nls --enable-languages=c,c++ \
|
--disable-libmpx --disable-libssp \
|
||||||
--enable-c99 --enable-long-long \
|
--disable-libsanitizer \
|
||||||
--disable-libmudflap --disable-multilib \
|
--with-arch="$GCC_CPU" $GCC_EXTRACFG \
|
||||||
--disable-libmpx --disable-libssp \
|
--with-native-system-header-dir="/include"
|
||||||
--disable-libsanitizer \
|
|
||||||
--with-arch="$GCC_CPU" $GCC_EXTRACFG \
|
|
||||||
--with-native-system-header-dir="/include"
|
|
||||||
|
|
||||||
make -j $NUMJOBS
|
make -j $NUMJOBS
|
||||||
}
|
}
|
||||||
|
|
||||||
deploy() {
|
deploy() {
|
||||||
local SOURCE="$1"
|
local SOURCE="$1"
|
||||||
local BUILD="$2"
|
local DEPLOY="$2"
|
||||||
local DEPLOY="$3"
|
local DEVDEPLOY="$3"
|
||||||
local DEVDEPLOY="$4"
|
|
||||||
|
|
||||||
make install
|
make install
|
||||||
|
|
||||||
|
|
|
@ -3,19 +3,15 @@ source "$SCRIPTDIR/pkg/$LINUXPKG/build"
|
||||||
DEPENDS=""
|
DEPENDS=""
|
||||||
|
|
||||||
build() {
|
build() {
|
||||||
local INPUT="$1"
|
make -C "$1" O="$PKGBUILDDIR" ARCH="$LINUX_CPU" mrproper
|
||||||
local OUTPUT="$2"
|
make -C "$1" O="$PKGBUILDDIR" ARCH="$LINUX_CPU" headers_check
|
||||||
|
|
||||||
make -C "$INPUT" O="$OUTPUT" ARCH="$LINUX_CPU" mrproper
|
|
||||||
make -C "$INPUT" O="$OUTPUT" ARCH="$LINUX_CPU" headers_check
|
|
||||||
}
|
}
|
||||||
|
|
||||||
deploy() {
|
deploy() {
|
||||||
local INPUT="$1"
|
local INPUT="$1"
|
||||||
local OUTPUT="$2"
|
local DEPLOY="$2"
|
||||||
local DEPLOY="$3"
|
local DEVDEPLOY="$3"
|
||||||
local DEVDEPLOY="$4"
|
|
||||||
|
|
||||||
export KBUILD_OUTPUT="$OUTPUT"
|
export KBUILD_OUTPUT="$PKGBUILDDIR"
|
||||||
make -C "$INPUT" O="$OUTPUT" ARCH="$LINUX_CPU" INSTALL_HDR_PATH="$DEVDEPLOY" headers_install
|
make -C "$INPUT" O="$PKGBUILDDIR" ARCH="$LINUX_CPU" INSTALL_HDR_PATH="$DEVDEPLOY" headers_install
|
||||||
}
|
}
|
||||||
|
|
|
@ -10,18 +10,14 @@ prepare() {
|
||||||
}
|
}
|
||||||
|
|
||||||
build() {
|
build() {
|
||||||
local INPUT="$1"
|
CC="${TARGET}-gcc" $1/configure --prefix=/ --target="$TARGET"
|
||||||
local OUTPUT="$2"
|
|
||||||
|
|
||||||
CC="${TARGET}-gcc" $INPUT/configure --prefix=/ --target="$TARGET"
|
|
||||||
CC="${TARGET}-gcc" make -j $NUMJOBS
|
CC="${TARGET}-gcc" make -j $NUMJOBS
|
||||||
}
|
}
|
||||||
|
|
||||||
deploy() {
|
deploy() {
|
||||||
local INPUT="$1"
|
local INPUT="$1"
|
||||||
local OUTPUT="$2"
|
local DEPLOY="$2"
|
||||||
local DEPLOY="$3"
|
local DEVDEPLOY="$3"
|
||||||
local DEVDEPLOY="$4"
|
|
||||||
|
|
||||||
DESTDIR="$DEVDEPLOY" make install-headers
|
DESTDIR="$DEVDEPLOY" make install-headers
|
||||||
DESTDIR="$DEVDEPLOY" make install-libs
|
DESTDIR="$DEVDEPLOY" make install-libs
|
||||||
|
|
|
@ -10,16 +10,14 @@ prepare() {
|
||||||
}
|
}
|
||||||
|
|
||||||
build() {
|
build() {
|
||||||
local SOURCE="$1"
|
|
||||||
local BUILD="$2"
|
|
||||||
|
|
||||||
$SOURCE/configure --prefix="$TCDIR" --target="$TARGET" \
|
$1/configure --prefix="$TCDIR" --target="$TARGET" \
|
||||||
--build="$HOSTTUPLE" --host="$HOSTTUPLE" \
|
--build="$HOSTTUPLE" --host="$HOSTTUPLE" \
|
||||||
--with-sysroot="$TCDIR/$TARGET" \
|
--with-sysroot="$TCDIR/$TARGET" \
|
||||||
--with-pc-path="$TCDIR/$TARGET/lib/pkgconfig" \
|
--with-pc-path="$TCDIR/$TARGET/lib/pkgconfig" \
|
||||||
--with-system-include-path="/include" \
|
--with-system-include-path="/include" \
|
||||||
--with-system-library-path="/lib" \
|
--with-system-library-path="/lib" \
|
||||||
--with-internal-glib
|
--with-internal-glib
|
||||||
|
|
||||||
make -j $NUMJOBS
|
make -j $NUMJOBS
|
||||||
}
|
}
|
||||||
|
|
|
@ -5,10 +5,6 @@ build() {
|
||||||
}
|
}
|
||||||
|
|
||||||
deploy() {
|
deploy() {
|
||||||
local INPUT="$1"
|
|
||||||
local OUTPUT="$2"
|
|
||||||
local DEPLOY="$3"
|
|
||||||
|
|
||||||
gen_cmake_toolchain_file
|
gen_cmake_toolchain_file
|
||||||
save_toolchain
|
save_toolchain
|
||||||
}
|
}
|
||||||
|
|
|
@ -10,22 +10,18 @@ prepare() {
|
||||||
}
|
}
|
||||||
|
|
||||||
build() {
|
build() {
|
||||||
local SOURCE="$1"
|
$1/configure --prefix="" --host="$TARGET" --disable-static \
|
||||||
local BUILD="$2"
|
--sysconfdir=/etc --with-pidfile=/run/unbound.pid \
|
||||||
|
--sbindir=/bin --with-libexpat="$TCDIR/$TARGET" \
|
||||||
$SOURCE/configure --prefix="" --host="$TARGET" --disable-static \
|
--with-ssl="$TCDIR/$TARGET"
|
||||||
--sysconfdir=/etc --with-pidfile=/run/unbound.pid \
|
|
||||||
--sbindir=/bin --with-libexpat="$TCDIR/$TARGET" \
|
|
||||||
--with-ssl="$TCDIR/$TARGET"
|
|
||||||
|
|
||||||
make -j $NUMJOBS
|
make -j $NUMJOBS
|
||||||
}
|
}
|
||||||
|
|
||||||
deploy() {
|
deploy() {
|
||||||
local SOURCE="$1"
|
local SOURCE="$1"
|
||||||
local BUILD="$2"
|
local DEPLOY="$2"
|
||||||
local DEPLOY="$3"
|
local DEVDEPLOY="$3"
|
||||||
local DEVDEPLOY="$4"
|
|
||||||
|
|
||||||
make DESTDIR="$DEPLOY" install
|
make DESTDIR="$DEPLOY" install
|
||||||
|
|
||||||
|
|
|
@ -10,50 +10,29 @@ prepare() {
|
||||||
}
|
}
|
||||||
|
|
||||||
build() {
|
build() {
|
||||||
local SOURCE="$1"
|
$1/configure ADJTIME_PATH=/var/lib/hwclock/adjtime \
|
||||||
|
--prefix="" --host="$TARGET" --sbindir="/bin" \
|
||||||
$SOURCE/configure ADJTIME_PATH=/var/lib/hwclock/adjtime \
|
--with-bashcompletiondir="/share/bash-completion/completions" \
|
||||||
--prefix="" --host="$TARGET" \
|
--disable-pylibmount --disable-static --without-python \
|
||||||
--with-bashcompletiondir="/share/bash-completion/completions" \
|
--without-systemd --without-systemdsystemunitdir \
|
||||||
--sbindir="/bin" \
|
--disable-cal --disable-chmem --disable-fdformat \
|
||||||
--disable-pylibmount \
|
--disable-fsck --disable-logger --disable-mesg \
|
||||||
--disable-static \
|
--disable-minix --disable-bfs --disable-more \
|
||||||
--without-python \
|
--disable-nologin --disable-nsenter --disable-pivot_root \
|
||||||
--without-systemd \
|
--disable-raw --disable-sulogin --disable-switch_root \
|
||||||
--without-systemdsystemunitdir \
|
--disable-ul --disable-unshare --disable-utmpdump \
|
||||||
--disable-makeinstall-chown \
|
--disable-uuidd --disable-wall --disable-zramctl \
|
||||||
--disable-makeinstall-setuid \
|
--disable-makeinstall-chown \
|
||||||
--enable-agetty \
|
--disable-makeinstall-setuid \
|
||||||
--disable-cal \
|
--enable-agetty \
|
||||||
--disable-chmem \
|
|
||||||
--disable-fdformat \
|
|
||||||
--disable-fsck \
|
|
||||||
--disable-logger \
|
|
||||||
--disable-mesg \
|
|
||||||
--disable-minix \
|
|
||||||
--disable-bfs \
|
|
||||||
--disable-more \
|
|
||||||
--disable-nologin \
|
|
||||||
--disable-nsenter \
|
|
||||||
--disable-pivot_root \
|
|
||||||
--disable-raw \
|
|
||||||
--disable-sulogin \
|
|
||||||
--disable-switch_root \
|
|
||||||
--disable-ul \
|
|
||||||
--disable-unshare \
|
|
||||||
--disable-utmpdump \
|
|
||||||
--disable-uuidd \
|
|
||||||
--disable-wall \
|
|
||||||
--disable-zramctl
|
|
||||||
|
|
||||||
make -j $NUMJOBS
|
make -j $NUMJOBS
|
||||||
}
|
}
|
||||||
|
|
||||||
deploy() {
|
deploy() {
|
||||||
local SOURCE="$1"
|
local SOURCE="$1"
|
||||||
local BUILD="$2"
|
local DEPLOY="$2"
|
||||||
local DEPLOY="$3"
|
local DEVDEPLOY="$3"
|
||||||
local DEVDEPLOY="$4"
|
|
||||||
|
|
||||||
mkdir -p "$DEPLOY/var/lib/hwclock"
|
mkdir -p "$DEPLOY/var/lib/hwclock"
|
||||||
|
|
||||||
|
|
10
pkg/xz/build
10
pkg/xz/build
|
@ -10,19 +10,15 @@ prepare() {
|
||||||
}
|
}
|
||||||
|
|
||||||
build() {
|
build() {
|
||||||
local SOURCE="$1"
|
$1/configure --prefix="" --host="$TARGET" --disable-static
|
||||||
local BUILD="$2"
|
|
||||||
|
|
||||||
$SOURCE/configure --prefix="" --host="$TARGET" --disable-static
|
|
||||||
|
|
||||||
make -j $NUMJOBS
|
make -j $NUMJOBS
|
||||||
}
|
}
|
||||||
|
|
||||||
deploy() {
|
deploy() {
|
||||||
local SOURCE="$1"
|
local SOURCE="$1"
|
||||||
local BUILD="$2"
|
local DEPLOY="$2"
|
||||||
local DEPLOY="$3"
|
local DEVDEPLOY="$3"
|
||||||
local DEVDEPLOY="$4"
|
|
||||||
|
|
||||||
make DESTDIR="$DEPLOY" install-strip
|
make DESTDIR="$DEPLOY" install-strip
|
||||||
|
|
||||||
|
|
|
@ -10,19 +10,16 @@ prepare() {
|
||||||
}
|
}
|
||||||
|
|
||||||
build() {
|
build() {
|
||||||
local SOURCE="$1"
|
|
||||||
|
|
||||||
cmake -DCMAKE_TOOLCHAIN_FILE="$CMAKETCFILE" \
|
cmake -DCMAKE_TOOLCHAIN_FILE="$CMAKETCFILE" \
|
||||||
-DCMAKE_INSTALL_PREFIX="" "$SOURCE"
|
-DCMAKE_INSTALL_PREFIX="" "$1"
|
||||||
|
|
||||||
make -j $NUMJOBS
|
make -j $NUMJOBS
|
||||||
}
|
}
|
||||||
|
|
||||||
deploy() {
|
deploy() {
|
||||||
local SOURCE="$1"
|
local SOURCE="$1"
|
||||||
local BUILD="$2"
|
local DEPLOY="$2"
|
||||||
local DEPLOY="$3"
|
local DEVDEPLOY="$3"
|
||||||
local DEVDEPLOY="$4"
|
|
||||||
|
|
||||||
make DESTDIR="$DEPLOY" install
|
make DESTDIR="$DEPLOY" install
|
||||||
|
|
||||||
|
|
|
@ -15,7 +15,7 @@ run_pkg_command() {
|
||||||
mkdir -p "$DEPLOYDIR" "$PKGBUILDDIR" "${DEPLOYDIR}-dev"
|
mkdir -p "$DEPLOYDIR" "$PKGBUILDDIR" "${DEPLOYDIR}-dev"
|
||||||
|
|
||||||
pushd "$PKGBUILDDIR" > /dev/null
|
pushd "$PKGBUILDDIR" > /dev/null
|
||||||
$FUNCTION "$SRC" "$PKGBUILDDIR" "$DEPLOYDIR" "${DEPLOYDIR}-dev" &>> "$LOGFILE" < /dev/null
|
$FUNCTION "$SRC" "$DEPLOYDIR" "${DEPLOYDIR}-dev" &>> "$LOGFILE" < /dev/null
|
||||||
popd > /dev/null
|
popd > /dev/null
|
||||||
|
|
||||||
(rmdir "$DEPLOYDIR" || true) 2> /dev/null ;
|
(rmdir "$DEPLOYDIR" || true) 2> /dev/null ;
|
||||||
|
|
Loading…
Reference in a new issue