1
0
Fork 0
mirror of https://github.com/pygos/build.git synced 2024-11-22 02:59:47 +01:00

Cleanup package command arguments

Signed-off-by: David Oberhollenzer <david.oberhollenzer@tele2.at>
This commit is contained in:
David Oberhollenzer 2018-02-16 23:22:04 +01:00
parent 05ae80634c
commit fc278364e5
70 changed files with 314 additions and 595 deletions

View file

@ -10,19 +10,15 @@ prepare() {
}
build() {
local INPUT="$1"
local OUTPUT="$2"
$INPUT/configure --prefix="" --host="$TARGET"
$1/configure --prefix="" --host="$TARGET"
make -j $NUMJOBS
}
deploy() {
local SOURCE="$1"
local BUILD="$2"
local DEPLOY="$3"
local DEVDEPLOY="$4"
local DEPLOY="$2"
local DEVDEPLOY="$3"
make DESTDIR="$DEPLOY" install

View file

@ -10,20 +10,16 @@ prepare() {
}
build() {
local INPUT="$1"
local OUTPUT="$2"
$INPUT/configure --prefix="" --host="$TARGET" --without-bash-malloc \
--with-installed-readline
$1/configure --prefix="" --host="$TARGET" --without-bash-malloc \
--with-installed-readline
make -j $NUMJOBS
}
deploy() {
local SOURCE="$1"
local BUILD="$2"
local DEPLOY="$3"
local DEVDEPLOY="$4"
local DEPLOY="$2"
local DEVDEPLOY="$3"
make DESTDIR="$DEPLOY" install

View file

@ -10,29 +10,24 @@ prepare() {
}
build() {
local INPUT="$1"
local OUTPUT="$2"
local CFGFILE="$SCRIPTDIR/board/$BOARD/bbstatic.config"
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
sed -i "$OUTPUT/.config" -e 's,^CONFIG_CROSS_COMPILE=.*,CONFIG_CROSS_COMPILE="'$TARGET'-",'
sed -i "$OUTPUT/.config" -e 's,^CONFIG_SYSROOT=.*,CONFIG_SYSROOT="'$SYSROOT'",'
make -C "$1" O="$PKGBUILDDIR" CROSS_COMPILE="${TARGET}-" oldconfig
sed -i "$PKGBUILDDIR/.config" -e 's,^CONFIG_CROSS_COMPILE=.*,CONFIG_CROSS_COMPILE="'$TARGET'-",'
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() {
local SOURCE="$1"
local BUILD="$2"
local DEPLOY="$3"
local DEPLOY="$2"
mkdir -p "$DEPLOY/bin"
cp "$BUILD/busybox" "$DEPLOY/bin"
cp "$PKGBUILDDIR/busybox" "$DEPLOY/bin"
ln -s "/bin/busybox" "$DEPLOY/bin/sh"
}

View file

@ -10,21 +10,16 @@ prepare() {
}
build() {
local INPUT="$1"
local OUTPUT="$2"
$INPUT/dist/configure --prefix="" --host="$TARGET" \
--enable-compat185 --enable-dbm \
--disable-static --enable-cxx
$1/dist/configure --prefix="" --host="$TARGET" --enable-compat185 \
--enable-dbm --disable-static --enable-cxx
make -j $NUMJOBS
}
deploy() {
local SOURCE="$1"
local BUILD="$2"
local DEPLOY="$3"
local DEVDEPLOY="$4"
local DEPLOY="$2"
local DEVDEPLOY="$3"
make DESTDIR="$DEPLOY" install

View file

@ -8,8 +8,7 @@ build() {
deploy() {
local SOURCE="$1"
local BUILD="$2"
local DEPLOY="$3"
local DEPLOY="$2"
cp -r ${SOURCE}/boot/* "$DEPLOY/"

View file

@ -10,10 +10,7 @@ prepare() {
}
build() {
local SOURCE="$1"
local BUILD="$2"
cp -r ${SOURCE}/* ${BUILD}
cp -r ${1}/* ${PKGBUILDDIR}
apply_patches
@ -26,9 +23,8 @@ build() {
deploy() {
local SOURCE="$1"
local BUILD="$2"
local DEPLOY="$3"
local DEVDEPLOY="$4"
local DEPLOY="$2"
local DEVDEPLOY="$3"
make DESTDIR="$DEPLOY" install

View file

@ -10,19 +10,15 @@ prepare() {
}
build() {
local SOURCE="$1"
local BUILD="$2"
cp -r ${SOURCE}/* ${BUILD}
cp -r ${1}/* ${PKGBUILDDIR}
make CC=${TARGET}-gcc AR=${TARGET}-ar RANLIB=${TARGET}-ranlib -j $NUMJOBS libbz2.a bzip2 bzip2recover
}
deploy() {
local SOURCE="$1"
local BUILD="$2"
local DEPLOY="$3"
local DEVDEPLOY="$4"
local DEPLOY="$2"
local DEVDEPLOY="$3"
make PREFIX="$DEPLOY" install

View file

@ -10,19 +10,15 @@ prepare() {
}
build() {
local INPUT="$1"
local OUTPUT="$2"
$INPUT/configure --prefix="" --host="$TARGET" \
--enable-no-install-program=kill,uptime,dir,vdir,chcon,pinky,runcon
$1/configure --prefix="" --host="$TARGET" \
--enable-no-install-program=kill,uptime,dir,vdir,chcon,pinky,runcon
make -j $NUMJOBS
}
deploy() {
local SOURCE="$1"
local BUILD="$2"
local DEPLOY="$3"
local DEPLOY="$2"
make DESTDIR="$DEPLOY" install-strip
rm -r "$DEPLOY/share"

View file

@ -10,18 +10,14 @@ prepare() {
}
build() {
local SOURCE="$1"
local BUILD="$2"
$SOURCE/configure --prefix="" --host="$TARGET"
$1/configure --prefix="" --host="$TARGET"
make -j $NUMJOBS
}
deploy() {
local SOURCE="$1"
local BUILD="$2"
local DEPLOY="$3"
local DEPLOY="$2"
make DESTDIR="$DEPLOY" install-strip

View file

@ -10,19 +10,15 @@ prepare() {
}
build() {
local SOURCE="$1"
local BUILD="$2"
cp -r ${SOURCE}/* ${BUILD}
cp -r ${1}/* ${PKGBUILDDIR}
make CC=${TARGET}-gcc PREFIX="/" BINDIR="/bin" -j $NUMJOBS
}
deploy() {
local SOURCE="$1"
local BUILD="$2"
local DEPLOY="$3"
local DEVDEPLOY="$4"
local DEPLOY="$2"
local DEVDEPLOY="$3"
make CC=${TARGET}-gcc PREFIX="/" BINDIR="/bin" DESTDIR="$DEPLOY" install

View file

@ -10,20 +10,16 @@ prepare() {
}
build() {
local SOURCE="$1"
local BUILD="$2"
$SOURCE/configure --prefix="" --host="$TARGET" --sbindir=/bin \
--disable-compat-symlinks --without-udev
$1/configure --prefix="" --host="$TARGET" --sbindir=/bin \
--disable-compat-symlinks --without-udev
make -j $NUMJOBS
}
deploy() {
local SOURCE="$1"
local BUILD="$2"
local DEPLOY="$3"
local DEVDEPLOY="$4"
local DEPLOY="$2"
local DEVDEPLOY="$3"
make DESTDIR="$DEPLOY" install-strip
rm -r "$DEPLOY/share"

View file

@ -10,18 +10,14 @@ prepare() {
}
build() {
local INPUT="$1"
local OUTPUT="$2"
$INPUT/configure --prefix="" --host="$TARGET" --sbindir="/bin"
$1/configure --prefix="" --host="$TARGET" --sbindir="/bin"
make -j $NUMJOBS
}
deploy() {
local SOURCE="$1"
local BUILD="$2"
local DEPLOY="$3"
local DEPLOY="$2"
make DESTDIR="$DEPLOY" install-strip

View file

@ -10,20 +10,16 @@ prepare() {
}
build() {
local SOURCE="$1"
local BUILD="$2"
$SOURCE/configure --prefix="" --host="$TARGET" --disable-static \
--without-xmlwf --with-libbsd
$1/configure --prefix="" --host="$TARGET" --disable-static \
--without-xmlwf --with-libbsd
make -j $NUMJOBS
}
deploy() {
local SOURCE="$1"
local BUILD="$2"
local DEPLOY="$3"
local DEVDEPLOY="$4"
local DEPLOY="$2"
local DEVDEPLOY="$3"
make DESTDIR="$DEPLOY" install-strip

View file

@ -10,19 +10,15 @@ prepare() {
}
build() {
local INPUT="$1"
local OUTPUT="$2"
$INPUT/configure --prefix="" --host="$TARGET" --disable-static
$1/configure --prefix="" --host="$TARGET" --disable-static
make -j $NUMJOBS
}
deploy() {
local SOURCE="$1"
local BUILD="$2"
local DEPLOY="$3"
local DEVDEPLOY="$4"
local DEPLOY="$2"
local DEVDEPLOY="$3"
make DESTDIR="$DEPLOY" install-strip

View file

@ -10,19 +10,15 @@ prepare() {
}
build() {
local SOURCE="$1"
local BUILD="$2"
$SOURCE/configure --prefix="" --host="$TARGET" \
--localstatedir=/var/lib/locate
$1/configure --prefix="" --host="$TARGET" \
--localstatedir=/var/lib/locate
make -j $NUMJOBS
}
deploy() {
local SOURCE="$1"
local BUILD="$2"
local DEPLOY="$3"
local DEPLOY="$2"
make DESTDIR="$DEPLOY" install-strip

View file

@ -28,9 +28,8 @@ build() {
deploy() {
local SOURCE="$1"
local BUILD="$2"
local DEPLOY="$3"
local DEVDEPLOY="$4"
local DEPLOY="$2"
local DEVDEPLOY="$3"
cp -r "$SOURCE/hardfp/opt" "$DEPLOY/"

View file

@ -10,18 +10,14 @@ prepare() {
}
build() {
local SOURCE="$1"
local BUILD="$2"
$SOURCE/configure --prefix="" --host="$TARGET"
$1/configure --prefix="" --host="$TARGET"
make -j $NUMJOBS
}
deploy() {
local SOURCE="$1"
local BUILD="$2"
local DEPLOY="$3"
local DEPLOY="$2"
make DESTDIR="$DEPLOY" install-strip

View file

@ -10,20 +10,15 @@ prepare() {
}
build() {
local SOURCE="$1"
local BUILD="$2"
$SOURCE/configure --prefix="" --host="$TARGET" \
--disable-static --enable-cxx
$1/configure --prefix="" --host="$TARGET" --disable-static --enable-cxx
make -j $NUMJOBS
}
deploy() {
local SOURCE="$1"
local BUILD="$2"
local DEPLOY="$3"
local DEVDEPLOY="$4"
local DEPLOY="$2"
local DEVDEPLOY="$3"
make DESTDIR="$DEPLOY" install

View file

@ -10,18 +10,14 @@ prepare() {
}
build() {
local INPUT="$1"
local OUTPUT="$2"
$INPUT/configure --prefix="" --host="$TARGET"
$1/configure --prefix="" --host="$TARGET"
make -j $NUMJOBS
}
deploy() {
local SOURCE="$1"
local BUILD="$2"
local DEPLOY="$3"
local DEPLOY="$2"
make DESTDIR="$DEPLOY" install-strip
rm -r "$DEPLOY/share"

View file

@ -10,18 +10,14 @@ prepare() {
}
build() {
local INPUT="$1"
local OUTPUT="$2"
$INPUT/configure --prefix="" --host="$TARGET" --with-regex=regcmp
$1/configure --prefix="" --host="$TARGET" --with-regex=regcmp
make -j $NUMJOBS
}
deploy() {
local SOURCE="$1"
local BUILD="$2"
local DEPLOY="$3"
local DEPLOY="$2"
make DESTDIR="$DEPLOY" install-strip
rm -r "$DEPLOY/share"

View file

@ -15,8 +15,7 @@ build() {
deploy() {
local SOURCE="$1"
local BUILD="$2"
local DEPLOY="$3"
local DEPLOY="$2"
mkdir -p "$DEPLOY/etc"
cp "$SOURCE/protocols" "$DEPLOY/etc"

View file

@ -10,22 +10,17 @@ prepare() {
}
build() {
local INPUT="$1"
local OUTPUT="$2"
$INPUT/configure --prefix="" --host="$TARGET" --disable-servers \
--disable-dnsdomainname --enable-hostname \
--disable-rcp --disable-rexec --disable-rlogin \
--disable-rsh --disable-logger --disable-talk \
--disable-ifconfig
$1/configure --prefix="" --host="$TARGET" --disable-servers \
--disable-dnsdomainname --disable-rcp --disable-rexec \
--enable-hostname --disable-rlogin --disable-rsh \
--disable-logger --disable-talk --disable-ifconfig
make -j $NUMJOBS
}
deploy() {
local SOURCE="$1"
local BUILD="$2"
local DEPLOY="$3"
local DEPLOY="$2"
make DESTDIR="$DEPLOY" install-strip

View file

@ -66,8 +66,7 @@ dir_filelist() {
build() {
local INPUT="$1"
local OUTPUT="$2"
local DEPLOY="$3"
local DEPLOY="$2"
# populate with default directory structure
for dir in dev proc sys bin lib newroot images; do
@ -86,10 +85,9 @@ build() {
deploy() {
local SOURCE="$1"
local BUILD="$2"
local DEPLOY="$3"
local DEPLOY="$2"
local LSTFILE="$BUILD/initrd.list"
local LSTFILE="$PKGBUILDDIR/initrd.list"
dir_filelist "$DEPLOY" > "$LSTFILE"
echo "dir /dev 0755 0 0" >> "$LSTFILE"

View file

@ -10,19 +10,15 @@ prepare() {
}
build() {
local SOURCE="$1"
local BUILD="$2"
cp -r ${SOURCE}/* ${BUILD}
cp -r ${1}/* ${PKGBUILDDIR}
make HOSTCC="gcc" AR="${TARGET}-ar" LD="${TARGET}-ld" CC="${TARGET}-gcc" SYSROOT="$TCDIR/$TARGET"
}
deploy() {
local SOURCE="$1"
local BUILD="$2"
local DEPLOY="$3"
local DEVDEPLOY="$4"
local DEPLOY="$2"
local DEVDEPLOY="$3"
mkdir -p "$DEPLOY/var/lib/arpd"
make DESTDIR="$DEPLOY" SYSROOT="$TCDIR/$TARGET" install

View file

@ -10,21 +10,16 @@ prepare() {
}
build() {
local SOURCE="$1"
local BUILD="$2"
$SOURCE/configure --prefix="" --host="$TARGET" \
--disable-tests --enable-optional-progs \
--enable-libkeymap --disable-vlock
$1/configure --prefix="" --host="$TARGET" --enable-optional-progs \
--disable-tests --enable-libkeymap --disable-vlock
make -j $NUMJOBS
}
deploy() {
local SOURCE="$1"
local BUILD="$2"
local DEPLOY="$3"
local DEVDEPLOY="$4"
local DEPLOY="$2"
local DEVDEPLOY="$3"
make DESTDIR="$DEPLOY" install-strip

View file

@ -10,21 +10,16 @@ prepare() {
}
build() {
local INPUT="$1"
local OUTPUT="$2"
$INPUT/configure --prefix="" --host="$TARGET" \
--with-xz --with-zlib \
--with-bashcompletiondir="/share/bash-completion/completions"
$1/configure --prefix="" --host="$TARGET" --with-xz --with-zlib \
--with-bashcompletiondir="/share/bash-completion/completions"
make -j $NUMJOBS
}
deploy() {
local SOURCE="$1"
local BUILD="$2"
local DEPLOY="$3"
local DEVDEPLOY="$4"
local DEPLOY="$2"
local DEVDEPLOY="$3"
make DESTDIR="$DEPLOY" install-strip

View file

@ -10,18 +10,14 @@ prepare() {
}
build() {
local INPUT="$1"
local OUTPUT="$2"
$INPUT/configure --prefix="" --host="$TARGET" --with-regex=regcmp
$1/configure --prefix="" --host="$TARGET" --with-regex=regcmp
make -j $NUMJOBS
}
deploy() {
local SOURCE="$1"
local BUILD="$2"
local DEPLOY="$3"
local DEPLOY="$2"
make DESTDIR="$DEPLOY" install

View file

@ -10,19 +10,15 @@ prepare() {
}
build() {
local SOURCE="$1"
local BUILD="$2"
$SOURCE/configure --prefix="" --host="$TARGET" --disable-static
$1/configure --prefix="" --host="$TARGET" --disable-static
make -j $NUMJOBS
}
deploy() {
local SOURCE="$1"
local BUILD="$2"
local DEPLOY="$3"
local DEVDEPLOY="$4"
local DEPLOY="$2"
local DEVDEPLOY="$3"
make DESTDIR="$DEPLOY" install-strip

View file

@ -10,19 +10,15 @@ prepare() {
}
build() {
local SOURCE="$1"
local BUILD="$2"
$SOURCE/configure --prefix="" --host="$TARGET" --disable-static
$1/configure --prefix="" --host="$TARGET" --disable-static
make -j $NUMJOBS
}
deploy() {
local SOURCE="$1"
local BUILD="$2"
local DEPLOY="$3"
local DEVDEPLOY="$4"
local DEPLOY="$2"
local DEVDEPLOY="$3"
make DESTDIR="$DEPLOY" install

View file

@ -10,19 +10,15 @@ prepare() {
}
build() {
local SOURCE="$1"
local BUILD="$2"
$SOURCE/configure --prefix="" --host="$TARGET" --disable-static
$1/configure --prefix="" --host="$TARGET" --disable-static
make -j $NUMJOBS
}
deploy() {
local SOURCE="$1"
local BUILD="$2"
local DEPLOY="$3"
local DEVDEPLOY="$4"
local DEPLOY="$2"
local DEVDEPLOY="$3"
make DESTDIR="$DEPLOY" install-strip

View file

@ -10,19 +10,15 @@ prepare() {
}
build() {
local SOURCE="$1"
local BUILD="$2"
$SOURCE/configure --prefix="" --host="$TARGET" --disable-static
$1/configure --prefix="" --host="$TARGET" --disable-static
make -j $NUMJOBS
}
deploy() {
local SOURCE="$1"
local BUILD="$2"
local DEPLOY="$3"
local DEVDEPLOY="$4"
local DEPLOY="$2"
local DEVDEPLOY="$3"
make DESTDIR="$DEPLOY" install-strip

View file

@ -10,19 +10,15 @@ prepare() {
}
build() {
local INPUT="$1"
local OUTPUT="$2"
$INPUT/configure --prefix="" --host="$TARGET"
$1/configure --prefix="" --host="$TARGET"
make -j $NUMJOBS
}
deploy() {
local SOURCE="$1"
local BUILD="$2"
local DEPLOY="$3"
local DEVDEPLOY="$4"
local DEPLOY="$2"
local DEVDEPLOY="$3"
make DESTDIR="$DEPLOY" install-strip

View file

@ -10,19 +10,15 @@ prepare() {
}
build() {
local INPUT="$1"
local OUTPUT="$2"
$INPUT/configure --prefix="" --host="$TARGET"
$1/configure --prefix="" --host="$TARGET"
make -j $NUMJOBS
}
deploy() {
local SOURCE="$1"
local BUILD="$2"
local DEPLOY="$3"
local DEVDEPLOY="$4"
local DEPLOY="$2"
local DEVDEPLOY="$3"
make DESTDIR="$DEPLOY" install-strip

View file

@ -10,19 +10,15 @@ prepare() {
}
build() {
local SOURCE="$1"
local BUILD="$2"
$SOURCE/configure --prefix="" --host="$TARGET" --disable-static
$1/configure --prefix="" --host="$TARGET" --disable-static
make -j $NUMJOBS
}
deploy() {
local SOURCE="$1"
local BUILD="$2"
local DEPLOY="$3"
local DEVDEPLOY="$4"
local DEPLOY="$2"
local DEVDEPLOY="$3"
make DESTDIR="$DEPLOY" install-strip

View file

@ -10,19 +10,15 @@ prepare() {
}
build() {
local SOURCE="$1"
local BUILD="$2"
$SOURCE/configure --prefix="" --host="$TARGET" --disable-static
$1/configure --prefix="" --host="$TARGET" --disable-static
make -j $NUMJOBS
}
deploy() {
local SOURCE="$1"
local BUILD="$2"
local DEPLOY="$3"
local DEVDEPLOY="$4"
local DEPLOY="$2"
local DEVDEPLOY="$3"
make DESTDIR="$DEPLOY" install-strip

View file

@ -10,19 +10,15 @@ prepare() {
}
build() {
local SOURCE="$1"
local BUILD="$2"
$SOURCE/configure --prefix="" --host="$TARGET" --disable-static
$1/configure --prefix="" --host="$TARGET" --disable-static
make -j $NUMJOBS
}
deploy() {
local SOURCE="$1"
local BUILD="$2"
local DEPLOY="$3"
local DEVDEPLOY="$4"
local DEPLOY="$2"
local DEVDEPLOY="$3"
make DESTDIR="$DEPLOY" install-strip

View file

@ -10,32 +10,25 @@ prepare() {
}
build() {
local INPUT="$1"
local OUTPUT="$2"
local CFGFILE="$SCRIPTDIR/board/$BOARD/linux.config"
local INITRDLIST="$PKGDEPLOYDIR/initrd/initrd.list"
export KBUILD_OUTPUT="$OUTPUT"
make -C "$INPUT" O="$OUTPUT" ARCH="arm" CROSS_COMPILE="${TARGET}-" mrproper
export KBUILD_OUTPUT="$PKGBUILDDIR"
make -C "$1" O="$PKGBUILDDIR" ARCH="arm" CROSS_COMPILE="${TARGET}-" mrproper
cp "$CFGFILE" "$OUTPUT/.config"
sed -i "$OUTPUT/.config" -e 's,^CONFIG_CROSS_COMPILE=.*,CONFIG_CROSS_COMPILE="'$TARGET'-",'
sed -i "$OUTPUT/.config" -e 's,^CONFIG_INITRAMFS_SOURCE=.*,CONFIG_INITRAMFS_SOURCE="'$INITRDLIST'",'
make -C "$INPUT" O="$OUTPUT" ARCH="arm" CROSS_COMPILE="${TARGET}-" oldconfig
cp "$SCRIPTDIR/board/$BOARD/linux.config" "$PKGBUILDDIR/.config"
sed -i "$PKGBUILDDIR/.config" -e 's,^CONFIG_CROSS_COMPILE=.*,CONFIG_CROSS_COMPILE="'$TARGET'-",'
sed -i "$PKGBUILDDIR/.config" -e 's,^CONFIG_INITRAMFS_SOURCE=.*,CONFIG_INITRAMFS_SOURCE="'$INITRDLIST'",'
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 "$OUTPUT/.config" -e 's,^CONFIG_INITRAMFS_SOURCE=.*,CONFIG_INITRAMFS_SOURCE="'$INITRDLIST'",'
sed -i "$OUTPUT/.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
sed -i "$PKGBUILDDIR/.config" -e 's,^CONFIG_CROSS_COMPILE=.*,CONFIG_CROSS_COMPILE="'$TARGET'-",'
sed -i "$PKGBUILDDIR/.config" -e 's,^CONFIG_INITRAMFS_SOURCE=.*,CONFIG_INITRAMFS_SOURCE="'$INITRDLIST'",'
sed -i "$PKGBUILDDIR/.config" -e 's,^CONFIG_LOCALVERSION=.*,CONFIG_LOCALVERSION="-'${OS_NAME}-${OS_RELEASE}'",'
make -C "$1" O="$PKGBUILDDIR" ARCH="arm" CROSS_COMPILE="${TARGET}-" -j $NUMJOBS zImage dtbs
}
deploy() {
local SOURCE="$1"
local BUILD="$2"
local DEPLOY="$3"
local DEPLOY="$2"
pushd $BUILD
install -m 755 "arch/arm/boot/zImage" "$DEPLOY/vmlinuz"
popd
}

View file

@ -14,30 +14,24 @@ prepare() {
}
build() {
local INPUT="$1"
local OUTPUT="$2"
local CFGFILE="$SCRIPTDIR/board/$BOARD/linux.config"
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
cp "$CFGFILE" "$OUTPUT/.config"
make -C "$1" O="$PKGBUILDDIR" ARCH="$LINUX_CPU" CROSS_COMPILE="${TARGET}-" mrproper
cp "$CFGFILE" "$PKGBUILDDIR/.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'-",'
sed -i "$OUTPUT/.config" -e 's,^CONFIG_INITRAMFS_SOURCE=.*,CONFIG_INITRAMFS_SOURCE="'$INITRDLIST'",'
sed -i "$OUTPUT/.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}-" oldconfig
sed -i "$PKGBUILDDIR/.config" -e 's,^CONFIG_CROSS_COMPILE=.*,CONFIG_CROSS_COMPILE="'$TARGET'-",'
sed -i "$PKGBUILDDIR/.config" -e 's,^CONFIG_INITRAMFS_SOURCE=.*,CONFIG_INITRAMFS_SOURCE="'$INITRDLIST'",'
sed -i "$PKGBUILDDIR/.config" -e 's,^CONFIG_LOCALVERSION=.*,CONFIG_LOCALVERSION="-'${OS_NAME}-${OS_RELEASE}'",'
make -C "$1" O="$PKGBUILDDIR" ARCH="$LINUX_CPU" CROSS_COMPILE="${TARGET}-" -j $NUMJOBS $LINUX_TGT
}
deploy() {
local SOURCE="$1"
local BUILD="$2"
local DEPLOY="$3"
local DEPLOY="$2"
pushd $BUILD
install -m 755 "arch/$LINUX_CPU/boot/$LINUX_TGT" "$DEPLOY/vmlinuz"
popd
}

View file

@ -3,29 +3,21 @@ source "$SCRIPTDIR/pkg/$LINUXPKG/build"
DEPENDS="toolchain"
build() {
local INPUT="$1"
local OUTPUT="$2"
export KBUILD_OUTPUT="$PKGBUILDDIR"
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"
export KBUILD_OUTPUT="$OUTPUT"
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
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'-",'
make -C "$1" O="$PKGBUILDDIR" ARCH="$LINUX_CPU" CROSS_COMPILE="${TARGET}-" -j $NUMJOBS modules
}
deploy() {
local SOURCE="$1"
local BUILD="$2"
local DEPLOY="$3"
local CFGFILE="$SCRIPTDIR/board/$BOARD/linux.config"
local DEPLOY="$2"
mkdir -p "$DEPLOY/lib/modules"
export KBUILD_OUTPUT="$BUILD"
make -C "$SOURCE" O="$BUILD" ARCH="$LINUX_CPU" CROSS_COMPILE="${TARGET}-" INSTALL_MOD_PATH="$DEPLOY" modules_install
export KBUILD_OUTPUT="$PKGBUILDDIR"
make -C "$SOURCE" O="$PKGBUILDDIR" ARCH="$LINUX_CPU" CROSS_COMPILE="${TARGET}-" INSTALL_MOD_PATH="$DEPLOY" modules_install
}

View file

@ -10,20 +10,16 @@ prepare() {
}
build() {
local SOURCE="$1"
local BUILD="$2"
$SOURCE/configure --prefix="" --host="$TARGET" \
--enable-shared --disable-static
$1/configure --prefix="" --host="$TARGET" \
--enable-shared --disable-static
make -j $NUMJOBS
}
deploy() {
local SOURCE="$1"
local BUILD="$2"
local DEPLOY="$3"
local DEVDEPLOY="$4"
local DEPLOY="$2"
local DEVDEPLOY="$3"
make DESTDIR="$DEPLOY" install-strip

View file

@ -10,18 +10,14 @@ prepare() {
}
build() {
local INPUT="$1"
local OUTPUT="$2"
$INPUT/configure --prefix="" --host="$TARGET" --enable-utf8
$1/configure --prefix="" --host="$TARGET" --enable-utf8
make -j $NUMJOBS
}
deploy() {
local SOURCE="$1"
local BUILD="$2"
local DEPLOY="$3"
local DEPLOY="$2"
make DESTDIR="$DEPLOY" install-strip

View file

@ -10,23 +10,18 @@ prepare() {
}
build() {
local INPUT="$1"
local OUTPUT="$2"
$INPUT/configure --prefix="" --host="$TARGET" \
--with-shared --without-debug \
--without-ada --enable-widec \
--with-pkg-config-libdir=/lib/pkgconfig \
--enable-pc-files --disable-stripping
$1/configure --prefix="" --host="$TARGET" --with-shared \
--without-debug --without-ada --enable-widec \
--with-pkg-config-libdir=/lib/pkgconfig \
--enable-pc-files --disable-stripping
make -j $NUMJOBS
}
deploy() {
local SOURCE="$1"
local BUILD="$2"
local DEPLOY="$3"
local DEVDEPLOY="$4"
local DEPLOY="$2"
local DEVDEPLOY="$3"
make DESTDIR="$DEPLOY" install

View file

@ -10,19 +10,15 @@ prepare() {
}
build() {
local SOURCE="$1"
local BUILD="$2"
$SOURCE/configure --prefix="" --host="$TARGET" --disable-static
$1/configure --prefix="" --host="$TARGET" --disable-static
make -j $NUMJOBS
}
deploy() {
local SOURCE="$1"
local BUILD="$2"
local DEPLOY="$3"
local DEVDEPLOY="$4"
local DEPLOY="$2"
local DEVDEPLOY="$3"
make DESTDIR="$DEPLOY" install

View file

@ -10,20 +10,16 @@ prepare() {
}
build() {
local INPUT="$1"
local OUTPUT="$2"
$INPUT/configure --prefix="" --host="$TARGET" --sbindir=/bin \
--disable-debug --disable-man-doc --without-mini-gmp
$1/configure --prefix="" --host="$TARGET" --sbindir=/bin \
--disable-debug --disable-man-doc --without-mini-gmp
make -j $NUMJOBS
}
deploy() {
local SOURCE="$1"
local BUILD="$2"
local DEPLOY="$3"
local DEVDEPLOY="$4"
local DEPLOY="$2"
local DEVDEPLOY="$3"
make DESTDIR="$DEPLOY" install-strip
}

View file

@ -11,12 +11,11 @@ prepare() {
build() {
local SOURCE="$1"
local BUILD="$2"
local DEPLOY="$3"
local DEPLOY="$2"
local distroname="${OS_NAME}-${OS_RELEASE}"
cp -R ${SOURCE}/* ${BUILD}
cp -R ${SOURCE}/* ${PKGBUILDDIR}
apply_patches
@ -31,9 +30,8 @@ build() {
deploy() {
local SOURCE="$1"
local BUILD="$2"
local DEPLOY="$3"
local DEVDEPLOY="$4"
local DEPLOY="$2"
local DEVDEPLOY="$3"
local distroname="${OS_NAME}-${OS_RELEASE}"

View file

@ -10,22 +10,18 @@ prepare() {
}
build() {
local SOURCE="$1"
local BUILD="$2"
$SOURCE/configure --prefix="" --host="$TARGET" --sbindir=/bin \
--with-pie --without-pam --without-stackprotect \
--without-selinux --disable-strip \
--with-sandbox=seccomp_filter \
--with-privsep-path=/var/lib/sshd
$1/configure --prefix="" --host="$TARGET" --sbindir=/bin \
--with-pie --without-pam --without-stackprotect \
--without-selinux --disable-strip \
--with-sandbox=seccomp_filter \
--with-privsep-path=/var/lib/sshd
make -j $NUMJOBS
}
deploy() {
local SOURCE="$1"
local BUILD="$2"
local DEPLOY="$3"
local DEPLOY="$2"
make DESTDIR="$DEPLOY" install

View file

@ -10,22 +10,18 @@ prepare() {
}
build() {
local SOURCE="$1"
local BUILD="$2"
$SOURCE/Configure --prefix=/ --cross-compile-prefix="${TARGET}-" \
--openssldir=/etc/ssl --libdir=/lib \
-DOPENSSL_NO_HEARTBEATS \
threads shared zlib-dynamic no-async $OPENSSL_TARGET
$1/Configure --prefix=/ --cross-compile-prefix="${TARGET}-" \
--openssldir=/etc/ssl --libdir=/lib \
-DOPENSSL_NO_HEARTBEATS \
threads shared zlib-dynamic no-async $OPENSSL_TARGET
make -j 1
}
deploy() {
local SOURCE="$1"
local BUILD="$2"
local DEPLOY="$3"
local DEVDEPLOY="$4"
local DEPLOY="$2"
local DEVDEPLOY="$3"
make DESTDIR="$DEPLOY" install

View file

@ -10,23 +10,19 @@ prepare() {
}
build() {
local INPUT="$1"
local OUTPUT="$2"
ac_cv_func_malloc_0_nonnull=yes \
ac_cv_func_realloc_0_nonnull=yes \
$INPUT/configure --prefix="" --host="$TARGET" --disable-static \
--enable-watch8bit --with-ncurses --without-systemd \
--disable-kill --sbindir=/bin
$1/configure --prefix="" --host="$TARGET" --disable-static \
--enable-watch8bit --with-ncurses --without-systemd \
--disable-kill --sbindir=/bin
make -j $NUMJOBS
}
deploy() {
local SOURCE="$1"
local BUILD="$2"
local DEPLOY="$3"
local DEVDEPLOY="$4"
local DEPLOY="$2"
local DEVDEPLOY="$3"
make DESTDIR="$DEPLOY" install-strip

View file

@ -10,22 +10,18 @@ prepare() {
}
build() {
local INPUT="$1"
local OUTPUT="$2"
ac_cv_func_malloc_0_nonnull=yes \
ac_cv_func_realloc_0_nonnull=yes \
$INPUT/configure --prefix="" --host="$TARGET" --disable-static \
--disable-selinux
$1/configure --prefix="" --host="$TARGET" --disable-static \
--disable-selinux
make -j $NUMJOBS
}
deploy() {
local SOURCE="$1"
local BUILD="$2"
local DEPLOY="$3"
local DEVDEPLOY="$4"
local DEPLOY="$2"
local DEVDEPLOY="$3"
make DESTDIR="$DEPLOY" install-strip
rm -r "$DEPLOY/share"

View file

@ -10,19 +10,15 @@ prepare() {
}
build() {
local INPUT="$1"
local OUTPUT="$2"
$INPUT/configure --prefix="" --host="$TARGET" --disable-static
$1/configure --prefix="" --host="$TARGET" --disable-static
make SHLIB_LIBS="-lncursesw" -j $NUMJOBS
}
deploy() {
local SOURCE="$1"
local BUILD="$2"
local DEPLOY="$3"
local DEVDEPLOY="$4"
local DEPLOY="$2"
local DEVDEPLOY="$3"
make SHLIB_LIBS="-lncursesw" DESTDIR="$DEPLOY" install

View file

@ -2,15 +2,15 @@ DEPENDS="rootfs linux"
build() {
local SOURCE="$1"
local BUILD="$2"
local DEPLOY="$3"
local DEPLOY="$2"
mkdir -p "$BUILD/$OS_RELEASE"
mkdir -p "$PKGBUILDDIR/$OS_RELEASE"
# copy output of immediate dependencies
for pkgname in $DEPENDS; do
if [ -e "$PKGDEPLOYDIR/$pkgname" ]; then
cp -ru ${PKGDEPLOYDIR}/${pkgname}/* "$BUILD/$OS_RELEASE"
cp -ru ${PKGDEPLOYDIR}/${pkgname}/* \
"$PKGBUILDDIR/$OS_RELEASE"
fi
done
@ -18,21 +18,20 @@ build() {
local linux_image="$OS_RELEASE/vmlinuz"
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
cp "$SCRIPTDIR/pkg/$PKGNAME/$script" "$BUILD"
cp "$SCRIPTDIR/pkg/$PKGNAME/$script" "$PKGBUILDDIR"
sed -i 's#ROOTFSFILE#'$rootfs_image'#g' "$BUILD/$script"
sed -i 's#KERNELFILE#'$linux_image'#g' "$BUILD/$script"
sed -i 's#VERSIONDIR#'$OS_RELEASE'#g' "$BUILD/$script"
sed -i 's#ROOTFSFILE#'$rootfs_image'#g' "$PKGBUILDDIR/$script"
sed -i 's#KERNELFILE#'$linux_image'#g' "$PKGBUILDDIR/$script"
sed -i 's#VERSIONDIR#'$OS_RELEASE'#g' "$PKGBUILDDIR/$script"
done
}
deploy() {
local SOURCE="$1"
local BUILD="$2"
local DEPLOY="$3"
local DEPLOY="$2"
tar czf "$DEPLOY/$PKGNAME.tar.gz" *
}

View file

@ -2,39 +2,37 @@ DEPENDS="rootfs linux-rpi3 boot-rpi3"
build() {
local SOURCE="$1"
local BUILD="$2"
local DEPLOY="$3"
local DEPLOY="$2"
# copy output of immediate dependencies
mkdir -p "$BUILD/boot"
mkdir -p "$PKGBUILDDIR/boot"
for pkgname in $DEPENDS; do
if [ -e "$PKGDEPLOYDIR/$pkgname" ]; then
cp -ru ${PKGDEPLOYDIR}/${pkgname}/* "$BUILD/boot"
cp -ru ${PKGDEPLOYDIR}/${pkgname}/* "$PKGBUILDDIR/boot"
fi
done
# copy files from this package
cp "$SCRIPTDIR/pkg/$PKGNAME/cmdline.txt" "$BUILD/boot"
cp "$SCRIPTDIR/pkg/$PKGNAME/install.sh" "$BUILD"
cp "$SCRIPTDIR/pkg/$PKGNAME/genimage.sh" "$BUILD"
cp "$SCRIPTDIR/pkg/$PKGNAME/cmdline.txt" "$PKGBUILDDIR/boot"
cp "$SCRIPTDIR/pkg/$PKGNAME/install.sh" "$PKGBUILDDIR"
cp "$SCRIPTDIR/pkg/$PKGNAME/genimage.sh" "$PKGBUILDDIR"
# substitute file names in scripts
mkdir -p "$BUILD/boot/$OS_RELEASE"
mv "$BUILD/boot/rootfs.img" "$BUILD/boot/$OS_RELEASE"
mv "$BUILD/boot/vmlinuz" "$BUILD/boot/$OS_RELEASE"
mkdir -p "$PKGBUILDDIR/boot/$OS_RELEASE"
mv "$PKGBUILDDIR/boot/rootfs.img" "$PKGBUILDDIR/boot/$OS_RELEASE"
mv "$PKGBUILDDIR/boot/vmlinuz" "$PKGBUILDDIR/boot/$OS_RELEASE"
local rootfs_image="$OS_RELEASE/rootfs.img"
local kernel_image="$OS_RELEASE/vmlinuz"
sed -i 's#ROOTFSFILE#'$rootfs_image'#g' "$BUILD/boot/cmdline.txt"
sed -i 's#KERNELFILE#'$kernel_image'#g' "$BUILD/boot/config.txt"
sed -i 's#ROOTFSFILE#'$rootfs_image'#g' "$PKGBUILDDIR/boot/cmdline.txt"
sed -i 's#KERNELFILE#'$kernel_image'#g' "$PKGBUILDDIR/boot/config.txt"
}
deploy() {
local SOURCE="$1"
local BUILD="$2"
local DEPLOY="$3"
local DEPLOY="$2"
tar czf "$DEPLOY/$PKGNAME.tar.gz" *
}

View file

@ -3,52 +3,53 @@ DEPENDS="$DEPENDS toolchain"
build() {
local SOURCE="$1"
local BUILD="$2"
local DEPLOY="$3"
local DEPLOY="$2"
# setup skeleton
mkdir -pv ${BUILD}/{bin,lib,etc,dev,sys,proc,tmp,var,run}
mkdir -pv ${BUILD}/{boot,usr,srv,mnt,opt}
mkdir -pv ${BUILD}/cfg/{preserve,overlay}
mkdir -pv ${PKGBUILDDIR}/{bin,lib,etc,dev,sys,proc,tmp,var,run}
mkdir -pv ${PKGBUILDDIR}/{boot,usr,srv,mnt,opt}
mkdir -pv ${PKGBUILDDIR}/cfg/{preserve,overlay}
cp -r "$SCRIPTDIR/pkg/$PKGNAME/etc" "$BUILD"
cp -r "$SCRIPTDIR/pkg/$PKGNAME/etc" "$PKGBUILDDIR"
# 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
if [ ! -e "$PKGDEPLOYDIR/$pkgname" ]; then
continue
fi
cp -ru --remove-destination ${PKGDEPLOYDIR}/${pkgname}/* "$BUILD"
done < "$BUILD/etc/packages"
cp -ru --remove-destination ${PKGDEPLOYDIR}/${pkgname}/* \
"$PKGBUILDDIR"
done < "$PKGBUILDDIR/etc/packages"
# version info
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
cp -r "$BUILD/etc/skel" "$BUILD/root"
chmod 750 "$BUILD/root"
cp -r "$PKGBUILDDIR/etc/skel" "$PKGBUILDDIR/root"
chmod 750 "$PKGBUILDDIR/root"
# move configuration to preserve directory
mv ${BUILD}/etc ${BUILD}/cfg/preserve
mkdir -p ${BUILD}/etc
mv ${PKGBUILDDIR}/etc ${PKGBUILDDIR}/cfg/preserve
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
mkdir -p ${BUILD}/root
chmod 750 ${BUILD}/root
chmod 750 ${BUILD}/cfg/preserve/root
mv ${PKGBUILDDIR}/root ${PKGBUILDDIR}/cfg/preserve
mkdir -p ${PKGBUILDDIR}/root
chmod 750 ${PKGBUILDDIR}/root
chmod 750 ${PKGBUILDDIR}/cfg/preserve/root
}
deploy() {
local SOURCE="$1"
local BUILD="$2"
local DEPLOY="$3"
local DEPLOY="$2"
mksquashfs "$BUILD" "$DEPLOY/rootfs.img" -all-root -no-progress -no-xattrs
mksquashfs "$PKGBUILDDIR" "$DEPLOY/rootfs.img" \
-all-root -no-progress -no-xattrs
}

View file

@ -10,18 +10,14 @@ prepare() {
}
build() {
local SOURCE="$1"
local BUILD="$2"
$SOURCE/configure --prefix="" --host="$TARGET"
$1/configure --prefix="" --host="$TARGET"
make -j $NUMJOBS
}
deploy() {
local SOURCE="$1"
local BUILD="$2"
local DEPLOY="$3"
local DEPLOY="$2"
make DESTDIR="$DEPLOY" install-strip

View file

@ -13,20 +13,16 @@ prepare() {
}
build() {
local SOURCE="$1"
local BUILD="$2"
$SOURCE/configure --prefix="" --host="$TARGET" --sbindir=/bin\
--disable-man --without-libpam --without-selinux \
--with-sha-crypt --with-group-name-max-length=32
$1/configure --prefix="" --host="$TARGET" --sbindir=/bin \
--disable-man --without-libpam --without-selinux \
--with-sha-crypt --with-group-name-max-length=32
make -j $NUMJOBS
}
deploy() {
local SOURCE="$1"
local BUILD="$2"
local DEPLOY="$3"
local DEPLOY="$2"
make DESTDIR="$DEPLOY" install-strip

View file

@ -10,19 +10,15 @@ prepare() {
}
build() {
local INPUT="$1"
local OUTPUT="$2"
$INPUT/configure --prefix="" --host="$TARGET" --disable-tcl
$1/configure --prefix="" --host="$TARGET" --disable-tcl
make -j $NUMJOBS
}
deploy() {
local SOURCE="$1"
local BUILD="$2"
local DEPLOY="$3"
local DEVDEPLOY="$4"
local DEPLOY="$2"
local DEVDEPLOY="$3"
make DESTDIR="$DEPLOY" install-strip

View file

@ -10,18 +10,14 @@ prepare() {
}
build() {
local SOURCE="$1"
local BUILD="$2"
$SOURCE/configure --prefix="" --host="$TARGET"
$1/configure --prefix="" --host="$TARGET"
make -j $NUMJOBS
}
deploy() {
local SOURCE="$1"
local BUILD="$2"
local DEPLOY="$3"
local DEPLOY="$2"
make DESTDIR="$DEPLOY" install-strip

View file

@ -10,12 +10,8 @@ prepare() {
}
build() {
local INPUT="$1"
local OUTPUT="$2"
$INPUT/configure --prefix="$TCDIR" --target="$TARGET" \
--with-sysroot="$TCDIR/$TARGET" \
--disable-nls --disable-multilib
$1/configure --prefix="$TCDIR" --target="$TARGET" --disable-nls \
--with-sysroot="$TCDIR/$TARGET" --disable-multilib
make configure-host
make -j $NUMJOBS

View file

@ -6,11 +6,8 @@ prepare() {
}
build() {
local SOURCE="$1"
local BUILD="$2"
$SOURCE/configure --prefix="$TCDIR" --disable-static \
--build="$HOSTTUPLE" --host="$HOSTTUPLE"
$1/configure --prefix="$TCDIR" --disable-static \
--build="$HOSTTUPLE" --host="$HOSTTUPLE"
make -j $NUMJOBS
}

View file

@ -25,19 +25,16 @@ prepare() {
}
build() {
local INPUT="$1"
local OUTPUT="$2"
$INPUT/configure --prefix="$TCDIR" --target="$TARGET" \
--build="$HOSTTUPLE" --host="$HOSTTUPLE" \
--with-sysroot="$TCDIR/$TARGET" \
--disable-nls --disable-shared --without-headers \
--disable-multilib --disable-decimal-float \
--disable-libgomp --disable-libmudflap \
--disable-libssp --disable-libatomic \
--disable-libquadmath --disable-threads \
--enable-languages=c --with-newlib \
--with-arch="$GCC_CPU" $GCC_EXTRACFG
$1/configure --prefix="$TCDIR" --target="$TARGET" \
--build="$HOSTTUPLE" --host="$HOSTTUPLE" \
--with-sysroot="$TCDIR/$TARGET" \
--disable-nls --disable-shared --without-headers \
--disable-multilib --disable-decimal-float \
--disable-libgomp --disable-libmudflap \
--disable-libssp --disable-libatomic \
--disable-libquadmath --disable-threads \
--enable-languages=c --with-newlib \
--with-arch="$GCC_CPU" $GCC_EXTRACFG
make -j $NUMJOBS all-gcc all-target-libgcc
}

View file

@ -3,28 +3,24 @@ source "$SCRIPTDIR/pkg/tc-gcc1/build"
DEPENDS="tc-gcc1 tc-musl tc-linux_hdr"
build() {
local INPUT="$1"
local OUTPUT="$2"
$INPUT/configure --prefix="$TCDIR" --target="$TARGET" \
--build="$HOSTTUPLE" --host="$HOSTTUPLE" \
--with-sysroot="$TCDIR/$TARGET" \
--disable-nls --enable-languages=c,c++ \
--enable-c99 --enable-long-long \
--disable-libmudflap --disable-multilib \
--disable-libmpx --disable-libssp \
--disable-libsanitizer \
--with-arch="$GCC_CPU" $GCC_EXTRACFG \
--with-native-system-header-dir="/include"
$1/configure --prefix="$TCDIR" --target="$TARGET" \
--build="$HOSTTUPLE" --host="$HOSTTUPLE" \
--with-sysroot="$TCDIR/$TARGET" \
--disable-nls --enable-languages=c,c++ \
--enable-c99 --enable-long-long \
--disable-libmudflap --disable-multilib \
--disable-libmpx --disable-libssp \
--disable-libsanitizer \
--with-arch="$GCC_CPU" $GCC_EXTRACFG \
--with-native-system-header-dir="/include"
make -j $NUMJOBS
}
deploy() {
local SOURCE="$1"
local BUILD="$2"
local DEPLOY="$3"
local DEVDEPLOY="$4"
local DEPLOY="$2"
local DEVDEPLOY="$3"
make install

View file

@ -3,19 +3,15 @@ source "$SCRIPTDIR/pkg/$LINUXPKG/build"
DEPENDS=""
build() {
local INPUT="$1"
local OUTPUT="$2"
make -C "$INPUT" O="$OUTPUT" ARCH="$LINUX_CPU" mrproper
make -C "$INPUT" O="$OUTPUT" ARCH="$LINUX_CPU" headers_check
make -C "$1" O="$PKGBUILDDIR" ARCH="$LINUX_CPU" mrproper
make -C "$1" O="$PKGBUILDDIR" ARCH="$LINUX_CPU" headers_check
}
deploy() {
local INPUT="$1"
local OUTPUT="$2"
local DEPLOY="$3"
local DEVDEPLOY="$4"
local DEPLOY="$2"
local DEVDEPLOY="$3"
export KBUILD_OUTPUT="$OUTPUT"
make -C "$INPUT" O="$OUTPUT" ARCH="$LINUX_CPU" INSTALL_HDR_PATH="$DEVDEPLOY" headers_install
export KBUILD_OUTPUT="$PKGBUILDDIR"
make -C "$INPUT" O="$PKGBUILDDIR" ARCH="$LINUX_CPU" INSTALL_HDR_PATH="$DEVDEPLOY" headers_install
}

View file

@ -10,18 +10,14 @@ prepare() {
}
build() {
local INPUT="$1"
local OUTPUT="$2"
CC="${TARGET}-gcc" $INPUT/configure --prefix=/ --target="$TARGET"
CC="${TARGET}-gcc" $1/configure --prefix=/ --target="$TARGET"
CC="${TARGET}-gcc" make -j $NUMJOBS
}
deploy() {
local INPUT="$1"
local OUTPUT="$2"
local DEPLOY="$3"
local DEVDEPLOY="$4"
local DEPLOY="$2"
local DEVDEPLOY="$3"
DESTDIR="$DEVDEPLOY" make install-headers
DESTDIR="$DEVDEPLOY" make install-libs

View file

@ -10,16 +10,14 @@ prepare() {
}
build() {
local SOURCE="$1"
local BUILD="$2"
$SOURCE/configure --prefix="$TCDIR" --target="$TARGET" \
--build="$HOSTTUPLE" --host="$HOSTTUPLE" \
--with-sysroot="$TCDIR/$TARGET" \
--with-pc-path="$TCDIR/$TARGET/lib/pkgconfig" \
--with-system-include-path="/include" \
--with-system-library-path="/lib" \
--with-internal-glib
$1/configure --prefix="$TCDIR" --target="$TARGET" \
--build="$HOSTTUPLE" --host="$HOSTTUPLE" \
--with-sysroot="$TCDIR/$TARGET" \
--with-pc-path="$TCDIR/$TARGET/lib/pkgconfig" \
--with-system-include-path="/include" \
--with-system-library-path="/lib" \
--with-internal-glib
make -j $NUMJOBS
}

View file

@ -5,10 +5,6 @@ build() {
}
deploy() {
local INPUT="$1"
local OUTPUT="$2"
local DEPLOY="$3"
gen_cmake_toolchain_file
save_toolchain
}

View file

@ -10,22 +10,18 @@ prepare() {
}
build() {
local SOURCE="$1"
local BUILD="$2"
$SOURCE/configure --prefix="" --host="$TARGET" --disable-static \
--sysconfdir=/etc --with-pidfile=/run/unbound.pid \
--sbindir=/bin --with-libexpat="$TCDIR/$TARGET" \
--with-ssl="$TCDIR/$TARGET"
$1/configure --prefix="" --host="$TARGET" --disable-static \
--sysconfdir=/etc --with-pidfile=/run/unbound.pid \
--sbindir=/bin --with-libexpat="$TCDIR/$TARGET" \
--with-ssl="$TCDIR/$TARGET"
make -j $NUMJOBS
}
deploy() {
local SOURCE="$1"
local BUILD="$2"
local DEPLOY="$3"
local DEVDEPLOY="$4"
local DEPLOY="$2"
local DEVDEPLOY="$3"
make DESTDIR="$DEPLOY" install

View file

@ -10,50 +10,29 @@ prepare() {
}
build() {
local SOURCE="$1"
$SOURCE/configure ADJTIME_PATH=/var/lib/hwclock/adjtime \
--prefix="" --host="$TARGET" \
--with-bashcompletiondir="/share/bash-completion/completions" \
--sbindir="/bin" \
--disable-pylibmount \
--disable-static \
--without-python \
--without-systemd \
--without-systemdsystemunitdir \
--disable-makeinstall-chown \
--disable-makeinstall-setuid \
--enable-agetty \
--disable-cal \
--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
$1/configure ADJTIME_PATH=/var/lib/hwclock/adjtime \
--prefix="" --host="$TARGET" --sbindir="/bin" \
--with-bashcompletiondir="/share/bash-completion/completions" \
--disable-pylibmount --disable-static --without-python \
--without-systemd --without-systemdsystemunitdir \
--disable-cal --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 \
--disable-makeinstall-chown \
--disable-makeinstall-setuid \
--enable-agetty \
make -j $NUMJOBS
}
deploy() {
local SOURCE="$1"
local BUILD="$2"
local DEPLOY="$3"
local DEVDEPLOY="$4"
local DEPLOY="$2"
local DEVDEPLOY="$3"
mkdir -p "$DEPLOY/var/lib/hwclock"

View file

@ -10,19 +10,15 @@ prepare() {
}
build() {
local SOURCE="$1"
local BUILD="$2"
$SOURCE/configure --prefix="" --host="$TARGET" --disable-static
$1/configure --prefix="" --host="$TARGET" --disable-static
make -j $NUMJOBS
}
deploy() {
local SOURCE="$1"
local BUILD="$2"
local DEPLOY="$3"
local DEVDEPLOY="$4"
local DEPLOY="$2"
local DEVDEPLOY="$3"
make DESTDIR="$DEPLOY" install-strip

View file

@ -10,19 +10,16 @@ prepare() {
}
build() {
local SOURCE="$1"
cmake -DCMAKE_TOOLCHAIN_FILE="$CMAKETCFILE" \
-DCMAKE_INSTALL_PREFIX="" "$SOURCE"
-DCMAKE_INSTALL_PREFIX="" "$1"
make -j $NUMJOBS
}
deploy() {
local SOURCE="$1"
local BUILD="$2"
local DEPLOY="$3"
local DEVDEPLOY="$4"
local DEPLOY="$2"
local DEVDEPLOY="$3"
make DESTDIR="$DEPLOY" install

View file

@ -15,7 +15,7 @@ run_pkg_command() {
mkdir -p "$DEPLOYDIR" "$PKGBUILDDIR" "${DEPLOYDIR}-dev"
pushd "$PKGBUILDDIR" > /dev/null
$FUNCTION "$SRC" "$PKGBUILDDIR" "$DEPLOYDIR" "${DEPLOYDIR}-dev" &>> "$LOGFILE" < /dev/null
$FUNCTION "$SRC" "$DEPLOYDIR" "${DEPLOYDIR}-dev" &>> "$LOGFILE" < /dev/null
popd > /dev/null
(rmdir "$DEPLOYDIR" || true) 2> /dev/null ;