bootstrap: Add some tools to test bootstrap steps
Change-Id: Idac85d5b7c1fadd371efd13fa788a03656e82e66
This commit is contained in:
parent
efac84e790
commit
54624bda43
2
3rdparty/docker/bootstrap/Dockerfile
vendored
2
3rdparty/docker/bootstrap/Dockerfile
vendored
@ -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"
|
||||
|
2
3rdparty/docker/bootstrap/README.md
vendored
2
3rdparty/docker/bootstrap/README.md
vendored
@ -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
12
3rdparty/docker/bootstrap/haikuports_build.sh
vendored
Executable 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
|
14
3rdparty/docker/bootstrap/haikuports_chroot.sh
vendored
Executable file
14
3rdparty/docker/bootstrap/haikuports_chroot.sh
vendored
Executable 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
|
Loading…
Reference in New Issue
Block a user