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
…152)

#### ipxedust: add nap.h to arm64 build to set NAP_NULL to support u-boot

- see https://github.com/ipxe/ipxe/discussions/605#discussioncomment-2273515
- "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.
  • Loading branch information
mergify[bot] committed Apr 2, 2024
2 parents be54e17 + 3db501c commit 9b05492
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 9b05492

Please sign in to comment.