]> git.proxmox.com Git - mirror_qemu.git/commit - roms/edk2-funcs.sh
roms/edk2-funcs.sh: add the qemu_edk2_get_thread_count() function
authorLaszlo Ersek <lersek@redhat.com>
Thu, 7 Mar 2019 12:15:20 +0000 (13:15 +0100)
committerLaszlo Ersek <lersek@redhat.com>
Wed, 17 Apr 2019 13:38:35 +0000 (15:38 +0200)
commitfd75d2c2ee5c2b4ee965561f214273e63722f413
tree2e447298e692d04e4b006c0e9e3569381d1ce063
parentb9a4c15164876ed292018f34d4b22bc7d5eb1de7
roms/edk2-funcs.sh: add the qemu_edk2_get_thread_count() function

The edk2 "build" utility natively supports building modules (that is, INF
files) in parallel. The feature is not useful when building a single
module (with the "-m" option), but it is useful for platform firmware
builds (which include many modules). Add a function that determines the
"-n" option argument for "build", from the MAKEFLAGS variable (i.e. based
on the presence of a make job server).

Signed-off-by: Laszlo Ersek <lersek@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Tested-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Tested-by: Igor Mammedov <imammedo@redhat.com>
Reviewed-by: Igor Mammedov <imammedo@redhat.com>
roms/edk2-funcs.sh