Skip to content

Commit

Permalink
Create EFI capsules from the raw binaries
Browse files Browse the repository at this point in the history
  • Loading branch information
Sean-StarLabs committed Oct 9, 2023
1 parent 55770bd commit e8c8d93
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 8 deletions.
5 changes: 2 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ $(OUTPUT_DIR):
$(OUTPUT_DIR)/$(version).rom:
mv $(version).rom $@

$(OUTPUT_DIR)/$(version).cap: $(OUTPUT_DIR)/$(version).rom
$(OUTPUT_DIR)/$(version).cap: $(subst $() $(),/,$(name))/$(target)-flashrom/$(version)/$(version).rom
./binaries/header.py --guid $(uefi) --bin $< --cap $@

# Standard CAB
Expand Down Expand Up @@ -83,7 +83,7 @@ push_to_git:
DEPENDENCIES = \
$(OUTPUT_DIR) \
$(OUTPUT_DIR)/release_notes.md \
$(OUTPUT_DIR)/$(version).rom
$(OUTPUT_DIR)/$(version).$(file_type)

# Master recipes to be called
ami-flashrom: $(DEPENDENCIES) \
Expand All @@ -93,7 +93,6 @@ ami-flashrom: $(DEPENDENCIES) \
$(MAKE) target_link="$(link)/$(version).$(file_type)" push_to_git

ami: $(DEPENDENCIES) \
$(OUTPUT_DIR)/$(version).cap \
$(OUTPUT_DIR)/$(target)-$(sku).cab

$(MAKE) target_link="$(link)/$(version).$(file_type)" push_to_git
Expand Down
4 changes: 2 additions & 2 deletions make/Makefile.nsh_script
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,10 @@ nsh_script += echo "************************************************************
nsh_script += echo " "\n
nsh_script += echo "This update is for the $(name). Installing on any other laptop will cause it not to start."\n
nsh_script += echo " "\n
nsh_script += echo "Press Enter to update firmware or press Q to quit."\n
nsh_script += pause\n
nsh_script += echo \"This update contains the following changes:\"\n
nsh_script += $(nsh_release_notes)
nsh_script += echo "Press Enter to update firmware or press Q to quit."\n
nsh_script += pause\n
nsh_script += for %%a run (0 10)\n
nsh_script += \tif exist fs%%a:$(nsh_tool).efi then\n
nsh_script += \t\tfs%%a:\n
Expand Down
6 changes: 3 additions & 3 deletions make/Makefile.targets
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,6 @@ meta_branch = false
meta_guid_1 = $(uefi)
file_type = cap

nsh_tool = AfuEfix64
nsh_switch = $(ami_switch)

else ifeq ($(target),ami-flashrom)
meta_version = 1.7.7
meta_protocol = org.flashrom
Expand All @@ -44,5 +41,8 @@ meta_branch = false
meta_guid_1 = $(coreboot)
file_type = rom

nsh_tool = AfuEfix64
nsh_switch = $(ami_switch)

endif

0 comments on commit e8c8d93

Please sign in to comment.