Skip to content

Commit

Permalink
ipxedust: add nap.h to arm64 build to set NAP_NULL to support u-boot
Browse files Browse the repository at this point in the history
- see ipxe/ipxe#605 (reply in thread)
- "This will cause iPXE to leave the CPU spinning instead of putting it to sleep, and will avoid the problems on U-Boot."
- Seems harmless on non U-Boot machines -- the CPU will spin during the key timeout (2s?) but that's about it.

Signed-off-by: Ricardo Pardini <[email protected]>
  • Loading branch information
rpardini committed Mar 31, 2024
1 parent df58475 commit fc5ed25
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions binary/script/build_and_pr.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ tracked_files=(
"./script/ipxe-customizations/general.efi.h"
"./script/ipxe-customizations/general.undionly.h"
"./script/ipxe-customizations/common.h"
"./script/ipxe-customizations/nap.h"
"./script/embed.ipxe"
"./script/ipxe.commit"
"./ipxe.efi"
Expand Down
1 change: 1 addition & 0 deletions binary/script/build_ipxe.sh
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ function copy_custom_files() {
;;
bin-arm64-efi/snp.efi)
cp binary/script/ipxe-customizations/general.efi.h "${ipxe_dir}"/src/config/local/general.h
cp binary/script/ipxe-customizations/nap.h "${ipxe_dir}"/src/config/local/nap.h
;;
bin-x86_64-efi/ipxe.iso)
cp binary/script/ipxe-customizations/general.efi.h "${ipxe_dir}"/src/config/local/general.h
Expand Down
2 changes: 2 additions & 0 deletions binary/script/ipxe-customizations/nap.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
#undef NAP_EFIARM
#define NAP_NULL

0 comments on commit fc5ed25

Please sign in to comment.