qemu-e2k/pc-bios/meson.build
Philippe Mathieu-Daudé 45b545dd19 meson.build: Detect bzip2 program
The --enable-bzip2/--disable-bzip2 configure arguments are
somehow misleading, they check for the bzip2 library, not
the bzip2 program.

We need the bzip2 program to install the EDK2 firmware blobs
(see commit 623ef637a2 "configure: Check bzip2 is available").

Check if the bzip2 program in the global meson.build to avoid
the configuration to succeed, but a later when trying to install
the firmware blobs:

    ../pc-bios/meson.build:5:2: ERROR: Program 'bzip2' not found

Reported-by: John Snow <jsnow@redhat.com>
Suggested-by: Paolo Bonzini <pbonzini@redhat.com>
Fixes: c8d5450bba ("configure: move install_blobs from configure to meson")
Signed-off-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Message-Id: <20210114174509.2944817-3-philmd@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
2021-01-23 15:55:07 -05:00

91 lines
2.0 KiB
Meson

if install_edk2_blobs
fds = [
'edk2-aarch64-code.fd',
'edk2-arm-code.fd',
'edk2-arm-vars.fd',
'edk2-i386-code.fd',
'edk2-i386-secure-code.fd',
'edk2-i386-vars.fd',
'edk2-x86_64-code.fd',
'edk2-x86_64-secure-code.fd',
]
foreach f : fds
custom_target(f,
output: f,
input: '@0@.bz2'.format(f),
capture: true,
install: get_option('install_blobs'),
install_dir: qemu_datadir,
command: [ bzip2, '-dc', '@INPUT0@' ])
endforeach
endif
blobs = files(
'bios.bin',
'bios-256k.bin',
'bios-microvm.bin',
'qboot.rom',
'sgabios.bin',
'vgabios.bin',
'vgabios-cirrus.bin',
'vgabios-stdvga.bin',
'vgabios-vmware.bin',
'vgabios-qxl.bin',
'vgabios-virtio.bin',
'vgabios-ramfb.bin',
'vgabios-bochs-display.bin',
'vgabios-ati.bin',
'openbios-sparc32',
'openbios-sparc64',
'openbios-ppc',
'QEMU,tcx.bin',
'QEMU,cgthree.bin',
'pxe-e1000.rom',
'pxe-eepro100.rom',
'pxe-ne2k_pci.rom',
'pxe-pcnet.rom',
'pxe-rtl8139.rom',
'pxe-virtio.rom',
'efi-e1000.rom',
'efi-eepro100.rom',
'efi-ne2k_pci.rom',
'efi-pcnet.rom',
'efi-rtl8139.rom',
'efi-virtio.rom',
'efi-e1000e.rom',
'efi-vmxnet3.rom',
'qemu-nsis.bmp',
'bamboo.dtb',
'canyonlands.dtb',
'petalogix-s3adsp1800.dtb',
'petalogix-ml605.dtb',
'multiboot.bin',
'linuxboot.bin',
'linuxboot_dma.bin',
'kvmvapic.bin',
'pvh.bin',
's390-ccw.img',
's390-netboot.img',
'slof.bin',
'skiboot.lid',
'palcode-clipper',
'u-boot.e500',
'u-boot-sam460-20100605.bin',
'qemu_vga.ndrv',
'edk2-licenses.txt',
'hppa-firmware.img',
'opensbi-riscv32-generic-fw_dynamic.bin',
'opensbi-riscv64-generic-fw_dynamic.bin',
'opensbi-riscv32-generic-fw_dynamic.elf',
'opensbi-riscv64-generic-fw_dynamic.elf',
'npcm7xx_bootrom.bin',
)
if get_option('install_blobs')
install_data(blobs, install_dir: qemu_datadir)
endif
subdir('descriptors')
subdir('keymaps')