Support make -j switch.

* Introduce new variable "make_num_jobs" to user_overrides.yml (default
  value is 1).
* Use new variable in each task that uses "make".
This commit is contained in:
Markus Reil 2023-12-08 16:31:08 +07:00
parent 43b9ed3f97
commit d30223014f
6 changed files with 18 additions and 9 deletions

View file

@ -35,7 +35,8 @@
- name: Compile iPXE bootloaders for EFI arm64
ansible.builtin.shell: |
make clean
make CROSS_COMPILE=aarch64-linux-gnu- \
make -j{{ make_num_jobs }} \
CROSS_COMPILE=aarch64-linux-gnu- \
ARCH=arm64 \
EMBED={{ bootloader_filename }} \
TRUST={{ trust_files }} \
@ -49,7 +50,8 @@
- name: Compile iPXE bootloader for EFI arm64 with debug flags
ansible.builtin.shell: |
make clean
make CROSS_COMPILE=aarch64-linux-gnu- \
make -j{{ make_num_jobs }} \
CROSS_COMPILE=aarch64-linux-gnu- \
ARCH=arm64 \
DEBUG={{ ipxe_debug_options }} \
EMBED={{ bootloader_filename }} \

View file

@ -27,7 +27,8 @@
- name: Compile iPXE bootloader for EFI
ansible.builtin.shell: |
make clean
make EMBED={{ bootloader_filename }} \
make -j{{ make_num_jobs }} \
EMBED={{ bootloader_filename }} \
TRUST={{ trust_files }} \
bin-x86_64-efi/ipxe.efi \
bin-x86_64-efi/snp.efi \
@ -39,7 +40,8 @@
- name: Compile iPXE bootloader for EFI with debug flags
ansible.builtin.shell: |
make clean
make EMBED={{ bootloader_filename }} \
make -j{{ make_num_jobs }} \
EMBED={{ bootloader_filename }} \
DEBUG={{ ipxe_debug_options }} \
TRUST={{ trust_files }} \
bin-x86_64-efi/ipxe.efi \

View file

@ -23,7 +23,8 @@
- name: Compile iPXE bootloader for Legacy BIOS
ansible.builtin.shell: |
make clean
make EMBED={{ bootloader_filename }} \
make -j{{ make_num_jobs }} \
EMBED={{ bootloader_filename }} \
TRUST={{ trust_files }} \
bin/ipxe.dsk \
bin/ipxe.pdsk \
@ -37,7 +38,8 @@
- name: Compile iPXE bootloader for Legacy BIOS with debug flags
ansible.builtin.shell: |
make clean
make EMBED={{ bootloader_filename }} \
make -j{{ make_num_jobs }} \
EMBED={{ bootloader_filename }} \
DEBUG={{ ipxe_debug_options }} \
TRUST={{ trust_files }} \
bin/ipxe.dsk \

View file

@ -27,7 +27,8 @@
- name: Compile iPXE Linux bootloader for Legacy BIOS
ansible.builtin.shell: |
make clean
make EMBED={{ bootloader_filename }} \
make -j{{ make_num_jobs }} \
EMBED={{ bootloader_filename }} \
TRUST={{ trust_files }} \
bin-x86_64-linux/slirp.linux
args:
@ -37,7 +38,8 @@
- name: Compile iPXE Linux bootloader for Legacy BIOS with debug flags
ansible.builtin.shell: |
make clean
make EMBED={{ bootloader_filename }} \
make -j{{ make_num_jobs }} \
EMBED={{ bootloader_filename }} \
DEBUG={{ ipxe_debug_options }} \
TRUST={{ trust_files }} \
bin-x86_64-linux/slirp.linux

View file

@ -50,7 +50,7 @@
- name: Compile iPXE bootloader for RPI build
ansible.builtin.shell: |
make
make -j{{ make_num_jobs }}
args:
chdir: "{{ pipxe_source_dir }}"

View file

@ -5,6 +5,7 @@ generate_menus: true
generate_disks: true
generate_checksums: true
generate_local_vars: true
make_num_jobs: 1
# set desired site name
# site_name: mysitename.com