mirror of
https://github.com/netbootxyz/netboot.xyz.git
synced 2025-08-07 14:26:56 +02:00
* Introduce new variable "make_num_jobs" to user_overrides.yml (default value is 1). * Use new variable in each task that uses "make".
56 lines
1.7 KiB
YAML
56 lines
1.7 KiB
YAML
---
|
|
|
|
- name: Copy netboot.xyz local legacy iPXE configs
|
|
ansible.builtin.copy:
|
|
src: "ipxe/local/{{ item }}"
|
|
dest: "{{ ipxe_source_dir }}/src/config/local/{{ item }}"
|
|
with_items:
|
|
- colour.h
|
|
- console.h
|
|
- crypto.h
|
|
|
|
- name: Copy netboot.xyz general.h.efi iPXE config
|
|
ansible.builtin.copy:
|
|
src: "ipxe/local/general.h.efi"
|
|
dest: "{{ ipxe_source_dir }}/src/config/local/general.h"
|
|
|
|
- name: Set trust file to ipxe ca
|
|
ansible.builtin.set_fact:
|
|
trust_files: "{{ cert_dir }}/{{ ipxe_ca_filename }}"
|
|
when: not generate_signatures
|
|
|
|
- name: Combine trust args if set
|
|
ansible.builtin.set_fact:
|
|
trust_files: "{{ cert_dir }}/{{ ipxe_ca_filename }},{{ cert_dir }}/{{ cert_file_filename }}"
|
|
when: generate_signatures | bool
|
|
|
|
- name: Compile iPXE Linux bootloader for Legacy BIOS
|
|
ansible.builtin.shell: |
|
|
make clean
|
|
make -j{{ make_num_jobs }} \
|
|
EMBED={{ bootloader_filename }} \
|
|
TRUST={{ trust_files }} \
|
|
bin-x86_64-linux/slirp.linux
|
|
args:
|
|
chdir: "{{ ipxe_source_dir }}/src"
|
|
when: ipxe_debug_enabled | bool == false
|
|
|
|
- name: Compile iPXE Linux bootloader for Legacy BIOS with debug flags
|
|
ansible.builtin.shell: |
|
|
make clean
|
|
make -j{{ make_num_jobs }} \
|
|
EMBED={{ bootloader_filename }} \
|
|
DEBUG={{ ipxe_debug_options }} \
|
|
TRUST={{ trust_files }} \
|
|
bin-x86_64-linux/slirp.linux
|
|
args:
|
|
chdir: "{{ ipxe_source_dir }}/src"
|
|
when: ipxe_debug_enabled | bool
|
|
|
|
- name: Copy iPXE linux binary for Legacy BIOS to http directory
|
|
ansible.builtin.copy:
|
|
src: "{{ ipxe_source_dir }}/src/bin-x86_64-linux/slirp.linux"
|
|
dest: "{{ netbootxyz_root }}/ipxe/{{ bootloader_filename }}-linux.bin"
|
|
remote_src: true
|
|
when: bootloader_filename != "netboot.xyz-metal"
|