From mboxrd@z Thu Jan 1 00:00:00 1970 From: Marek Vasut Date: Tue, 4 Jun 2019 02:00:28 +0200 Subject: [U-Boot] [PATCH v2 1/2] Makefile: Add target to generate hex output for combined spl and dtb In-Reply-To: <20190603235718.28381-1-dalon.westergreen@linux.intel.com> References: <20190603235718.28381-1-dalon.westergreen@linux.intel.com> Message-ID: <927ff6ad-bfc2-e1c4-7b41-871b06a777bf@denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On 6/4/19 1:57 AM, Dalon Westergreen wrote: > From: Dalon Westergreen > > Some architectures, Stratix10, require a hex formatted spl that combines > the spl image and dtb. This adds a target to create said hex file with > and offset of SPL_TEXT_BASE. > > Signed-off-by: Dalon Westergreen > [...] > @@ -363,6 +365,11 @@ endif > $(obj)/$(SPL_BIN).sfp: $(obj)/$(SPL_BIN).bin FORCE > $(call if_changed,mkimage) > > +OBJCOPYFLAGS_$(SPL_BIN).hex := -I binary -O ihex --change-address=$(CONFIG_SPL_TEXT_BASE) Do we really need to do it here ? The commit message is not clear why this is needed ; I think if you link the SPl against the correct address, this should not be needed. > +$(obj)/$(SPL_BIN).hex: $(obj)/u-boot-spl.bin FORCE > + $(call if_changed,objcopy) > + > quiet_cmd_mksunxiboot = MKSUNXI $@ > cmd_mksunxiboot = $(objtree)/tools/mksunxiboot \ > --default-dt $(CONFIG_DEFAULT_DEVICE_TREE) $< $@ > @@ -463,3 +470,4 @@ ifdef CONFIG_ARCH_K3 > tispl.bin: $(obj)/u-boot-spl-nodtb.bin $(SHRUNK_ARCH_DTB) $(SPL_ITS) FORCE > $(call if_changed,mkfitimage) > endif > + Drop this hunk -- Best regards, Marek Vasut