bootstrap: Add some tools to test bootstrap steps

Change-Id: Idac85d5b7c1fadd371efd13fa788a03656e82e66
This commit is contained in:
Alexander von Gluck IV 2019-02-15 11:25:00 -06:00
parent efac84e790
commit 54624bda43
4 changed files with 29 additions and 1 deletions

View File

@ -26,6 +26,8 @@ ENV GIT_HAIKUPORTS_CROSS="https://github.com/haikuports/haikuports.cross.git"
ADD prep.sh /usr/local/bin/prep
ADD crosstools.sh /usr/local/bin/crosstools
ADD bootstrap.sh /usr/local/bin/bootstrap
ADD haikuports_chroot.sh /usr/local/bin/haikuports_chroot
ADD haikuports_build.sh /usr/local/bin/haikuports_build
ENV WORKPATH="/work"
ENV PATH="$PATH:$WORKPATH/bin"

View File

@ -36,5 +36,5 @@ from the end users host and create more-reproduceable bootstrap builds.
```TARGET_ARCH=arm make bootstrap```
5) If you need to enter the build environment, ```make enter``` will quickly let you do so.
5) If you need to enter the build environment, ```TARGET_ARCH=arm make enter``` will quickly let you do so.
6) profit!

12
3rdparty/docker/bootstrap/haikuports_build.sh vendored Executable file
View File

@ -0,0 +1,12 @@
#!/bin/bash
if [ $# -ne 1 ]; then
echo "usage: $0 <recipe>"
exit 1
fi
export GENERATED=$WORKPATH/generated.$TARGET_ARCH
export LD_LIBRARY_PATH=$GENERATED/objects/linux/lib/:$LD_LIBRARY_PATH
$WORKPATH/src/haikuporter/haikuporter --config=$GENERATED/objects/haiku/$TARGET_ARCH/packaging/repositories/HaikuPortsCross-build/haikuports.conf \
--cross-devel-package $GENERATED/objects/haiku/$TARGET_ARCH/packaging/packages/haiku_cross_devel_sysroot_stage1_$TARGET_ARCH.hpkg $1

View File

@ -0,0 +1,14 @@
#!/bin/bash
if [ $# -ne 1 ]; then
echo "usage: $0 <recipe>"
exit 1
fi
export GENERATED=$WORKPATH/generated.$TARGET_ARCH
export LD_LIBRARY_PATH=$GENERATED/objects/linux/lib/:$LD_LIBRARY_PATH
$WORKPATH/src/haikuporter/haikuporter \
--config=$GENERATED/objects/haiku/$TARGET_ARCH/packaging/repositories/HaikuPortsCross-build/haikuports.conf \
--cross-devel-package $GENERATED/objects/haiku/$TARGET_ARCH/packaging/packages/haiku_cross_devel_sysroot_stage1_$TARGET_ARCH.hpkg \
--enter-chroot $1