1
0
Fork 0
mirror of https://github.com/pygos/build.git synced 2024-11-25 20:30:43 +01:00

cleanup: make $BUILDROOT point to actual product output directory

Signed-off-by: David Oberhollenzer <goliath@infraroot.at>
This commit is contained in:
David Oberhollenzer 2019-03-06 16:12:08 +01:00
parent e497ba164c
commit 2184f4dae7
4 changed files with 14 additions and 14 deletions

22
mk.sh
View file

@ -10,7 +10,7 @@ fi
PRODUCT="$1" PRODUCT="$1"
################################ basic setup ################################ ################################ basic setup ################################
BUILDROOT=$(pwd) BUILDROOT="$(pwd)/$PRODUCT"
SCRIPTDIR=$(cd $(dirname "${BASH_SOURCE[0]}") && pwd) SCRIPTDIR=$(cd $(dirname "${BASH_SOURCE[0]}") && pwd)
NUMJOBS=$(grep -e "^processor" /proc/cpuinfo | wc -l) NUMJOBS=$(grep -e "^processor" /proc/cpuinfo | wc -l)
@ -21,15 +21,15 @@ if [ ! -f "$LAYERCONF" ]; then
exit 1 exit 1
fi fi
PKGSRCDIR="$BUILDROOT/src" PKGSRCDIR="$(pwd)/src"
PKGDOWNLOADDIR="$BUILDROOT/download" PKGDOWNLOADDIR="$(pwd)/download"
PKGBUILDDIR="$BUILDROOT/$PRODUCT/build" PKGBUILDDIR="$BUILDROOT/build"
PKGDEPLOYDIR="$BUILDROOT/$PRODUCT/deploy" PKGDEPLOYDIR="$BUILDROOT/deploy"
PKGLOGDIR="$BUILDROOT/$PRODUCT/log" PKGLOGDIR="$BUILDROOT/log"
PACKAGELIST="$BUILDROOT/$PRODUCT/pkglist" PACKAGELIST="$BUILDROOT/pkglist"
REPODIR="$BUILDROOT/$PRODUCT/repo" REPODIR="$BUILDROOT/repo"
DEPENDSLIST="$BUILDROOT/$PRODUCT/depends" DEPENDSLIST="$BUILDROOT/depends"
PROVIDESLIST="$BUILDROOT/$PRODUCT/provides" PROVIDESLIST="$BUILDROOT/provides"
mkdir -p "$PKGDOWNLOADDIR" "$PKGSRCDIR" "$PKGLOGDIR" mkdir -p "$PKGDOWNLOADDIR" "$PKGSRCDIR" "$PKGLOGDIR"
mkdir -p "$REPODIR" mkdir -p "$REPODIR"
@ -50,7 +50,7 @@ source "$SCRIPTDIR/util/autotools.sh"
include_merge "TOOLCHAIN" include_merge "TOOLCHAIN"
HOSTTUPLE=$($SCRIPTDIR/util/config.guess) HOSTTUPLE=$($SCRIPTDIR/util/config.guess)
TCDIR="$BUILDROOT/$PRODUCT/toolchain" TCDIR="$BUILDROOT/toolchain"
export PATH="$TCDIR/bin:$PATH" export PATH="$TCDIR/bin:$PATH"

View file

@ -19,7 +19,7 @@ build() {
} }
deploy() { deploy() {
tar czf "$BUILDROOT/$PRODUCT/$PKGNAME.tar.gz" * tar czf "$BUILDROOT/$PKGNAME.tar.gz" *
touch "$PKGDEPLOYDIR/$PKGNAME.files" touch "$PKGDEPLOYDIR/$PKGNAME.files"
cat > "$PKGDEPLOYDIR/$PKGNAME.desc" <<_EOF cat > "$PKGDEPLOYDIR/$PKGNAME.desc" <<_EOF

View file

@ -23,7 +23,7 @@ build() {
} }
deploy() { deploy() {
tar czf "$BUILDROOT/$PRODUCT/$PKGNAME.tar.gz" * tar czf "$BUILDROOT/$PKGNAME.tar.gz" *
touch "$PKGDEPLOYDIR/$PKGNAME.files" touch "$PKGDEPLOYDIR/$PKGNAME.files"
cat > "$PKGDEPLOYDIR/$PKGNAME.desc" <<_EOF cat > "$PKGDEPLOYDIR/$PKGNAME.desc" <<_EOF

View file

@ -21,7 +21,7 @@ build() {
} }
deploy() { deploy() {
tar czf "$BUILDROOT/$PRODUCT/$PKGNAME.tar.gz" * tar czf "$BUILDROOT/$PKGNAME.tar.gz" *
touch "$PKGDEPLOYDIR/$PKGNAME.files" touch "$PKGDEPLOYDIR/$PKGNAME.files"
cat > "$PKGDEPLOYDIR/$PKGNAME.desc" <<_EOF cat > "$PKGDEPLOYDIR/$PKGNAME.desc" <<_EOF