summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 09256d5)
raw | patch | inline | side by side (parent: 09256d5)
author | Dave Gerlach <d-gerlach@ti.com> | |
Tue, 29 Sep 2020 04:16:39 +0000 (04:16 +0000) | ||
committer | Dave Gerlach <d-gerlach@ti.com> | |
Fri, 16 Oct 2020 18:05:38 +0000 (13:05 -0500) |
Each SOC has its own Makefile and some SOCs may have a need for a
different load address, so define the LOADADDR variable in the SOC
specific Makefile.
Signed-off-by: Dave Gerlach <d-gerlach@ti.com>
Reviewed-by: Suman Anna <s-anna@ti.com>
different load address, so define the LOADADDR variable in the SOC
specific Makefile.
Signed-off-by: Dave Gerlach <d-gerlach@ti.com>
Reviewed-by: Suman Anna <s-anna@ti.com>
diff --git a/Makefile b/Makefile
index 61e52e4bdb17d2214811b39f3db0709402188ed6..d827e6a8f8ea7f4c16e9f003a06b5273af09c819 100644 (file)
--- a/Makefile
+++ b/Makefile
ifdef HS
$(SYSFW_HS_CERTS_PATH): $(SYSFW_HS_INNER_CERT_PATH)
@echo "Signing the SYSFW inner certificate with $(KEY) key...";
- ./gen_x509_cert.sh -d -c m3 -b $< -o $@ -l 0x40000 -k $(KEY);
+ ./gen_x509_cert.sh -d -c m3 -b $< -o $@ -l $(LOADADDR) -k $(KEY);
$(soc_objroot)/sysfw.bin: $(SYSFW_HS_CERTS_PATH) $(SYSFW_HS_PATH)
cat $^ > $@
$(soc_objroot)/sysfw.bin: $(SYSFW_PATH)
@if [ -n "$(KEY)" ]; then \
echo "Signing the SYSFW release image with $(KEY) key..."; \
- ./gen_x509_cert.sh -c m3 -b $< -o $@ -l 0x40000 -k $(KEY); \
+ ./gen_x509_cert.sh -c m3 -b $< -o $@ -l $(LOADADDR) -k $(KEY); \
else \
echo "Signing the SYSFW release image with random key..."; \
- ./gen_x509_cert.sh -c m3 -b $< -o $@ -l 0x40000; \
+ ./gen_x509_cert.sh -c m3 -b $< -o $@ -l $(LOADADDR); \
fi
endif
diff --git a/soc/am65x/Makefile b/soc/am65x/Makefile
index 5be7f90c8dff87a84519c55905a2c5caf6ffa846..8f091cd5c224753094c62f6bc1d853a98a836e2c 100644 (file)
--- a/soc/am65x/Makefile
+++ b/soc/am65x/Makefile
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#
+LOADADDR ?= 0x40000
+
.PHONY: all
all: _objtree_build $(ITB) sysfw.itb
diff --git a/soc/am65x_sr2/Makefile b/soc/am65x_sr2/Makefile
index 5be7f90c8dff87a84519c55905a2c5caf6ffa846..8f091cd5c224753094c62f6bc1d853a98a836e2c 100644 (file)
--- a/soc/am65x_sr2/Makefile
+++ b/soc/am65x_sr2/Makefile
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#
+LOADADDR ?= 0x40000
+
.PHONY: all
all: _objtree_build $(ITB) sysfw.itb
diff --git a/soc/j7200/Makefile b/soc/j7200/Makefile
index bdbc50f25caca5677ea2552b49c63f13b21e9d40..8a1005a643f199bb2a70d4e7b53dc79cadb5ee8f 100644 (file)
--- a/soc/j7200/Makefile
+++ b/soc/j7200/Makefile
SBL_LOADADDDR ?= 0x41c00000
COMBINED_BRDCFG_LOADADDR ?= 0x7f000
+LOADADDR ?= 0x40000
.PHONY: all
ifeq (,$(SBL))
diff --git a/soc/j721e/Makefile b/soc/j721e/Makefile
index 5be7f90c8dff87a84519c55905a2c5caf6ffa846..8f091cd5c224753094c62f6bc1d853a98a836e2c 100644 (file)
--- a/soc/j721e/Makefile
+++ b/soc/j721e/Makefile
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#
+LOADADDR ?= 0x40000
+
.PHONY: all
all: _objtree_build $(ITB) sysfw.itb