qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH v4 2/4] datadir: Use bundle mechanism


From: Paolo Bonzini
Subject: Re: [PATCH v4 2/4] datadir: Use bundle mechanism
Date: Wed, 15 Jun 2022 10:21:35 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.10.0

On 6/14/22 23:07, Akihiko Odaki wrote:
)
+
  roms = []
  if unpack_edk2_blobs
    fds = [
@@ -20,6 +22,9 @@ if unpack_edk2_blobs
                    install: get_option('install_blobs'),
                    install_dir: qemu_datadir,
                    command: [ bzip2, '-dc', '@INPUT0@' ])
+
+    run_command('ln', '-sf', '../../../pc-bios' / f, qemu_bundledir / 
qemu_datadir,
+                check: true)
    endforeach
  endif
@@ -85,15 +90,11 @@ blobs = [
    'vof-nvram.bin',
  ]
-ln_s = [find_program('ln', required: true), '-sf']
+install_data(blobs, install_dir: qemu_datadir)

This needs to be conditional on get_option('install_blobs').

Paolo

  foreach f : blobs
-  roms += custom_target(f,
-                build_by_default: have_system,
-                output: f,
-                input: files('meson.build'),            # dummy input
-                install: get_option('install_blobs'),
-                install_dir: qemu_datadir,
-                command: [ ln_s, meson.project_source_root() / 'pc-bios' / f, 
'@OUTPUT@' ])
+  run_command('ln', '-sf', meson.current_source_dir() / f, qemu_bundledir / 
qemu_datadir,
+              check: true)
  endforeach
subdir('descriptors')




reply via email to

[Prev in Thread] Current Thread [Next in Thread]