Add pkgtool to cross toolchain

The dependency in tc-pkg-config is added to make sure the pkg tool is built
*before* pkg-config.

Signed-off-by: David Oberhollenzer <goliath@infraroot.at>
This commit is contained in:
David Oberhollenzer 2019-01-30 14:18:25 +01:00
parent 2fb62ec2f1
commit 934a746b3f
4 changed files with 39 additions and 2 deletions

12
mk.sh
View File

@ -27,8 +27,10 @@ PKGBUILDDIR="$BUILDROOT/$PRODUCT/build"
PKGDEPLOYDIR="$BUILDROOT/$PRODUCT/deploy"
PKGLOGDIR="$BUILDROOT/$PRODUCT/log"
PACKAGELIST="$BUILDROOT/$PRODUCT/pkglist"
REPODIR="$BUILDROOT/$PRODUCT/repo"
mkdir -p "$PKGDOWNLOADDIR" "$PKGSRCDIR" "$PKGLOGDIR" "$PKGDEPLOYDIR"
mkdir -p "$REPODIR"
pushd "$SCRIPTDIR" > /dev/null
OS_NAME="Pygos"
@ -82,6 +84,16 @@ while read pkg; do
strip_files ${PKGDEPLOYDIR}/${PKGNAME}/{bin,lib}
restore_toolchain
if [ -d "$PKGDEPLOYDIR/$PKGNAME" ]; then
for f in $PKGDEPLOYDIR/$PKGNAME/*.desc; do
if [ ! -f "$f" ]; then
continue
fi
pkg pack -r "$REPODIR" -d "$f" -l $PKGDEPLOYDIR/$PKGNAME/$(basename "$f" .desc).files
done
fi
rm -rf "$PKGBUILDDIR"
touch "$PKGLOGDIR/.$pkg"
fi

View File

@ -3,7 +3,7 @@ SRCDIR="pkg-config-$VERSION"
TARBALL="$SRCDIR.tar.gz"
URL="https://pkg-config.freedesktop.org/releases/"
SHA256SUM="6fc69c01688c9458a57eb9a1664c9aba372ccda420a02bf4429fe610e7e7d591"
DEPENDS=""
DEPENDS="tc-pkgtool"
prepare() {
return

25
pkg/tc-pkgtool/build Executable file
View File

@ -0,0 +1,25 @@
VERSION="0.1"
SRCDIR="pkgtool-${VERSION}"
TARBALL="${SRCDIR}.tar.xz"
URL="http://infraroot.at/pygos"
SHA256SUM="475ad195886e68e55d71164147b9d7f9a83952a7b2be5836dfd438d6edbb9340"
DEPENDS=""
prepare() {
return
}
build() {
$1/configure --prefix="$TCDIR" --disable-static \
--build="$HOSTTUPLE" --host="$HOSTTUPLE"
make -j $NUMJOBS
}
deploy() {
make install
}
check_update() {
return
}

View File

@ -1,4 +1,4 @@
DEPENDS="tc-gcc2 musl linux_headers tc-pkg-config tc-file"
DEPENDS="tc-gcc2 musl linux_headers tc-pkg-config tc-file tc-pkgtool"
build() {
return