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

View file

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

View file

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

View file

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