Skip to content

Commit

Permalink
Adjust the dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
Sean-StarLabs committed Oct 9, 2023
1 parent add0c37 commit e8af81b
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 9 deletions.
16 changes: 9 additions & 7 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,16 @@ ifeq ($(target),coreboot)
make -C ../coreboot defconfig KBUILD_DEFCONFIG=configs/config.starlabs_$(model)
make -C ../coreboot
mv ../coreboot/build/coreboot.rom $@
else
exit 1
endif

$(OUTPUT_DIR):
mkdir -p $@

# Just the binary
$(OUTPUT_DIR)/$(version).rom: $(version).rom
mv $< $@
$(OUTPUT_DIR)/$(version).rom:
mv $(version).rom $@

$(OUTPUT_DIR)/$(version).cap: $(OUTPUT_DIR)/$(version).rom
./binaries/header.py --guid $(uefi) --bin $< --cap $@
Expand All @@ -40,15 +42,15 @@ $(OUTPUT_DIR)/$(sku).$(target).metainfo.xml: $(OUTPUT_DIR)
printf '$(metadata)' > $@

$(OUTPUT_DIR)/$(target)-$(sku).cab: $(OUTPUT_DIR)/$(sku).$(target).metainfo.xml \
$(OUTPUT_DIR)/$(version).$(file_type)
$(OUTPUT_DIR)/$(version).rom
gcab -cn $@ $^

# EFI Shell
$(OUTPUT_DIR)/startup.nsh: $(OUTPUT_DIR)
printf '$(nsh_script)' > $@

$(OUTPUT_DIR)/efi-$(sku).zip: $(OUTPUT_DIR)/startup.nsh \
$(OUTPUT_DIR)/$(version).$(file_type) \
$(OUTPUT_DIR)/$(version).rom \
binaries/$(nsh_tool).efi
zip -rj $@ $^

Expand Down Expand Up @@ -77,7 +79,7 @@ push_to_git:
printf '$(readme_release_notes)\n' >> $(subst $() $(),/,$(name))/README.md
git add $(OUTPUT_DIR) $(subst $() $(),/,$(name))/README.md
git commit -m "Added $(name) $(target) $(version)"
git push
# git push

DEPENDENCIES = \
$(OUTPUT_DIR) \
Expand All @@ -90,9 +92,9 @@ ami-flashrom: $(DEPENDENCIES) \

$(MAKE) target_link="$(link)/$(version).$(file_type)" push_to_git

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

$(MAKE) target_link="$(link)/$(version).$(file_type)" push_to_git
Expand Down
4 changes: 2 additions & 2 deletions make/Makefile.models
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ superio1 = d83a4cd0-fce6-58a8-93c7-bcee89b41dcf
ami = 4c7c8bc5-475c-5384-b602-78c9d4771b5d
coreboot = ""

ami-switch = $(afu_amd)
ami_switch = $(afu_amd)

else ifeq ($(model),byte_cezanne)
name = Byte MkI
Expand All @@ -111,7 +111,7 @@ superio1 = d83a4cd0-fce6-58a8-93c7-bcee89b41dcf
ami = ""
coreboot = ""

ami-switch = $(afu_amd)
ami_switch = $(afu_amd)

else ifeq ($(model),starbook_rpl)
name = StarBook MkVIr2-Intel
Expand Down

0 comments on commit e8af81b

Please sign in to comment.