Skip to content

Commit

Permalink
Merge pull request netbootxyz#988 from netbootxyz/debugs
Browse files Browse the repository at this point in the history
Enable ability to generate debug iPXE images
  • Loading branch information
antonym authored Sep 9, 2021
2 parents 3790381 + 37505e5 commit 382558f
Show file tree
Hide file tree
Showing 4 changed files with 60 additions and 3 deletions.
2 changes: 2 additions & 0 deletions roles/netbootxyz/defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,8 @@ generate_menus: true
generate_signatures: false
generate_version_file: true
ipxe_branch: master
ipxe_debug_enabled: false
ipxe_debug_options: httpcore,tls
ipxe_ca_filename: ca-ipxe-org.crt
ipxe_ca_url: http://ca.ipxe.org/ca.crt
ipxe_repo: https://github.com/ipxe/ipxe
Expand Down
21 changes: 19 additions & 2 deletions roles/netbootxyz/tasks/generate_disks_arm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,14 +37,31 @@
- name: Compile iPXE bootloader for EFI arm64
shell: |
make clean
make CROSS_COMPILE=aarch64-linux-gnu- ARCH=arm64 \
EMBED={{ bootloader_filename }} \
make CROSS_COMPILE=aarch64-linux-gnu- \
ARCH=arm64 \
EMBED={{ bootloader_filename }} \
TRUST={{ trust_files }} \
bin-arm64-efi/snp.efi
args:
chdir: "{{ ipxe_source_dir }}/src"
tags:
- skip_ansible_lint
when: ipxe_debug_enabled | bool == false

- name: Compile iPXE bootloader for EFI arm64 with debug flags
shell: |
make clean
make CROSS_COMPILE=aarch64-linux-gnu- \
ARCH=arm64 \
DEBUG={{ ipxe_debug_options }} \
EMBED={{ bootloader_filename }} \
TRUST={{ trust_files }} \
bin-arm64-efi/snp.efi
args:
chdir: "{{ ipxe_source_dir }}/src"
tags:
- skip_ansible_lint
when: ipxe_debug_enabled | bool

- name: Copy iPXE arm64 EFI builds to http directory
copy:
Expand Down
16 changes: 16 additions & 0 deletions roles/netbootxyz/tasks/generate_disks_efi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,23 @@
chdir: "{{ ipxe_source_dir }}/src"
tags:
- skip_ansible_lint
when: ipxe_debug_enabled | bool == false

- name: Compile iPXE bootloader for EFI with debug flags
shell: |
make clean
make EMBED={{ bootloader_filename }} \
DEBUG={{ ipxe_debug_options }} \
TRUST={{ trust_files }} \
bin-x86_64-efi/ipxe.efi \
bin-x86_64-efi/snp.efi \
bin-x86_64-efi/snponly.efi
args:
chdir: "{{ ipxe_source_dir }}/src"
tags:
- skip_ansible_lint
when: ipxe_debug_enabled | bool

- name: Copy iPXE EFI builds to http directory
copy:
src: "{{ ipxe_source_dir }}/src/{{ item.src }}"
Expand Down
24 changes: 23 additions & 1 deletion roles/netbootxyz/tasks/generate_disks_legacy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,33 @@
- name: Compile iPXE bootloader for Legacy BIOS
shell: |
make clean
make EMBED={{ bootloader_filename }} TRUST={{ trust_files }} bin/ipxe.dsk bin/ipxe.lkrn bin/ipxe.kpxe bin/undionly.kpxe
make EMBED={{ bootloader_filename }} \
TRUST={{ trust_files }} \
bin/ipxe.dsk \
bin/ipxe.lkrn \
bin/ipxe.kpxe \
bin/undionly.kpxe
args:
chdir: "{{ ipxe_source_dir }}/src"
tags:
- skip_ansible_lint
when: ipxe_debug_enabled | bool == false

- name: Compile iPXE bootloader for Legacy BIOS with debug flags
shell: |
make clean
make EMBED={{ bootloader_filename }} \
DEBUG={{ ipxe_debug_options }} \
TRUST={{ trust_files }} \
bin/ipxe.dsk \
bin/ipxe.lkrn \
bin/ipxe.kpxe \
bin/undionly.kpxe
args:
chdir: "{{ ipxe_source_dir }}/src"
tags:
- skip_ansible_lint
when: ipxe_debug_enabled | bool

- name: Copy iPXE files for Legacy BIOS to http directory
copy:
Expand Down

0 comments on commit 382558f

Please sign in to comment.