Skip to content
This repository has been archived by the owner on Aug 28, 2023. It is now read-only.

Commit

Permalink
allow per-target configuration for qemu-user-static
Browse files Browse the repository at this point in the history
  • Loading branch information
ashkulz committed Jun 24, 2022
1 parent 8a467e3 commit db0a473
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 3 deletions.
7 changes: 4 additions & 3 deletions build
Original file line number Diff line number Diff line change
Expand Up @@ -59,9 +59,10 @@ def docker_images(config, targets, force):
params = config['docker-targets'][name]
needed_qemu = params.get('qemu')
if needed_qemu and started_qemu != needed_qemu:
pull('aptman/qus:d5.0', needed_qemu)
shell('docker run --rm --privileged aptman/qus:d5.0 -- -r')
shell('docker run --rm --privileged aptman/qus:d5.0 -s -- -p')
qemu_config = config['qemu-user-static'][name in config['qemu-user-static'] and name or 'default']
pull(qemu_config['image'], needed_qemu)
for cmd in qemu_config['setup']:
shell('docker run --rm --privileged %s %s' % (qemu_config['image'], cmd))
started_qemu = needed_qemu

image = prefix+name
Expand Down
13 changes: 13 additions & 0 deletions build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -493,6 +493,19 @@ qt-config:
# docker image which provides fpm
fpm-image: wkhtmltopdf/fpm:1.10.2-20200531

# qemu-user-static -- allow overriding the setup for a specific target
qemu-user-static:
default:
image: aptman/qus:d5.0 # chosen because it works with most builds
setup:
- "-- -r"
- "-s -- -p"
almalinux9-ppc64le:
image: aptman/qus:d6.1 # required for POWER 9 support used in image
setup:
- "-- -r"
- "-s -- -p"

# mapping of distro architecture => docker platform
matrix-platforms:
# debian/ubuntu
Expand Down

0 comments on commit db0a473

Please sign in to comment.