Skip to content

Instantly share code, notes, and snippets.

@r-vignesh
Created December 9, 2022 08:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save r-vignesh/e402285b4db62ac5efcb64498b60145d to your computer and use it in GitHub Desktop.
Save r-vignesh/e402285b4db62ac5efcb64498b60145d to your computer and use it in GitHub Desktop.
diff --git a/Makefile b/Makefile
index a8c14eb530a1..6b22a3c08946 100644
--- a/Makefile
+++ b/Makefile
@@ -212,8 +212,9 @@ $(ITS): | _objtree_build
$(ITB): $(ITS) $(SOC_BINS) | _bindir_build
$(MKIMAGE) -f $< -r $@
+.PHONY: sysfw.itb
sysfw.itb: $(ITB)
- @ln -sf $< $@
+ @ln -sf $< $(BIN_DIR)/$@
$(COMBINED_SYSFW_BRDCFG): $(soc_objroot)/board-cfg.bin $(soc_objroot)/sec-cfg.bin $(soc_objroot)/pm-cfg.bin $(soc_objroot)/rm-cfg.bin
python3 ./scripts/sysfw_boardcfg_blob_creator.py -b $(soc_objroot)/board-cfg.bin -s $(soc_objroot)/sec-cfg.bin -p $(soc_objroot)/pm-cfg.bin -r $(soc_objroot)/rm-cfg.bin -o $@
@@ -237,8 +238,9 @@ $(TIBOOT3): $(SBL) $(SYSFW_PATH) $(SYSFW_HS_INNER_CERT_PATH) $(COMBINED_TIFS_BRD
./scripts/gen_x509_combined_cert.sh -b $(SBL) -l $(SBL_LOADADDDR) -s $(SYSFW_PATH) -m $(LOADADDR) -c "$(SYSFW_HS_INNER_CERT_PATH)" -d $(COMBINED_TIFS_BRDCFG) -n $(COMBINED_TIFS_BRDCFG_LOADADDR) -t $(COMBINED_DM_BRDCFG) -y $(COMBINED_DM_BRDCFG_LOADADDR) -k $(KEY) -r $(SW_REV) -o $@
endif
+.PHONY: tiboot3.bin
tiboot3.bin: $(TIBOOT3)
- @ln -sf $< $@
+ @ln -sf $< $(BIN_DIR)/$@
$(soc_objroot)/%.o: %.c | _objtree_build
$(CROSS_COMPILE)gcc $(CFLAGS) -c -o $@-pre-validated $<
@@ -258,9 +260,9 @@ sysfw_version: $(SYSFW_PATH)
clean:
-rm -f $(SOC_BINS) $(SOC_PVAL) $(SOC_LOGS)
-rm -f $(COMBINED_SYSFW_BRDCFG) $(COMBINED_TIFS_BRDCFG) $(COMBINED_DM_BRDCFG)
- -rm -f $(ITB) sysfw.itb
+ -rm -f $(ITB) $(BIN_DIR)/sysfw.itb
-rm -f $(ITS)
- -rm -f $(TIBOOT3) tiboot3.bin
+ -rm -f $(TIBOOT3) $(BIN_DIR)/tiboot3.bin
-rm -f $(SYSFW_HS_CERTS_PATH)
-rm -df $(BIN_DIR)
-rm -df $(O)/soc/$(BASE_SOC)/$(CONFIG) && \
--
2.38.1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment