Pass qemu path
This commit is contained in:
parent
0b715b5077
commit
31f0667695
|
@ -211,7 +211,7 @@ prepare-cache:qemu:
|
|||
- export PATH=$INSTALL_DIR/bin:$PATH
|
||||
- apt-get update
|
||||
script:
|
||||
- .gitlab/build-test.sh --jobs ${JOBS} --with-arch ${ARCH} --with-debian stretch --with-debian-mirror http://ftp.de.debian.org/debian/ --with-project-path ${CI_PROJECT_DIR} --with-chroot-path /tmp/racket-${ARCH}-${CI_COMMIT_SHORT_SHA}-chroot
|
||||
- .gitlab/build-test.sh --jobs ${JOBS} --with-arch ${ARCH} --with-debian stretch --with-debian-mirror http://ftp.de.debian.org/debian/ --with-project-path ${CI_PROJECT_DIR} --with-chroot-path /tmp/racket-${ARCH}-${CI_COMMIT_SHORT_SHA}-chroot --with-qemu-path=$INSTALL_DIR
|
||||
cache:
|
||||
key: qemu-3.1.0
|
||||
policy: pull
|
||||
|
@ -301,7 +301,7 @@ test:ppc64el:
|
|||
- export PATH=$INSTALL_DIR:$PATH
|
||||
- apt-get update
|
||||
script:
|
||||
- .gitlab/build-test.sh --jobs ${JOBS} --with-arch ${ARCH} --with-debian stretch --with-debian-mirror http://ftp.de.debian.org/debian/ --with-project-path ${CI_PROJECT_DIR} --with-chroot-path /tmp/racket-${ARCH}-${CI_COMMIT_SHORT_SHA}-chroot --enable-cs
|
||||
- .gitlab/build-test.sh --jobs ${JOBS} --with-arch ${ARCH} --with-debian stretch --with-debian-mirror http://ftp.de.debian.org/debian/ --with-project-path ${CI_PROJECT_DIR} --with-chroot-path /tmp/racket-${ARCH}-${CI_COMMIT_SHORT_SHA}-chroot --enable-cs --with-qemu-path=$INSTALL_DIR
|
||||
|
||||
test:x86_64:cs:
|
||||
extends: .preparearch:cs
|
||||
|
|
|
@ -41,6 +41,7 @@ ARCH="$(uname -m)"
|
|||
BUILD_DIR=${CI_PROJECT_DIR}
|
||||
MAKE_TARGET="in-place"
|
||||
CHROOT_DIR="/tmp/racket-chroot"
|
||||
QEMU_PATH=
|
||||
|
||||
# Parse options
|
||||
until
|
||||
|
@ -80,6 +81,10 @@ until
|
|||
shift
|
||||
CHROOT_DIR=$1
|
||||
;;
|
||||
--with-qemu-path)
|
||||
shift
|
||||
QEMU_PATH=$1
|
||||
;;
|
||||
?*)
|
||||
usage "Unknown argument $1"
|
||||
;;
|
||||
|
@ -144,7 +149,7 @@ function setup_chroot {
|
|||
mkdir "${CHROOT_DIR}"
|
||||
debootstrap --foreign --no-check-gpg --include=fakeroot,build-essential \
|
||||
--arch="${ARCH}" "${DEBIAN}" "${CHROOT_DIR}" "${DEBIAN_MIRROR}"
|
||||
cp /usr/bin/qemu-${QEMU_ARCH} "${CHROOT_DIR}"/usr/bin/
|
||||
cp ${QEMU_PATH}/bin/qemu-${QEMU_ARCH} "${CHROOT_DIR}"/usr/bin/qemu-${QEMU_ARCH}-static
|
||||
chroot "${CHROOT_DIR}" ./debootstrap/debootstrap --second-stage
|
||||
sbuild-createchroot --arch="${ARCH}" --foreign --setup-only \
|
||||
"${DEBIAN}" "${CHROOT_DIR}" "${DEBIAN_MIRROR}"
|
||||
|
|
Loading…
Reference in New Issue
Block a user