From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tan, Ley Foon Date: Fri, 13 Nov 2020 03:10:39 +0000 Subject: [v3 15/16] arm: socfpga: soc64: Enable FIT image generation using binman In-Reply-To: <20201015122955.10259-16-elly.siew.chin.lim@intel.com> References: <20201015122955.10259-1-elly.siew.chin.lim@intel.com> <20201015122955.10259-16-elly.siew.chin.lim@intel.com> Message-ID: List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de > -----Original Message----- > From: Lim, Elly Siew Chin > Sent: Thursday, October 15, 2020 8:30 PM > To: u-boot at lists.denx.de > Cc: Marek Vasut ; Tan, Ley Foon > ; See, Chin Liang ; > Simon Goldschmidt ; Chee, Tien Fong > ; Westergreen, Dalon > ; Simon Glass ; Lim, > Elly Siew Chin > Subject: [v3 15/16] arm: socfpga: soc64: Enable FIT image generation using > binman > > Add new build target "fit-itb" for FIT image generation. > > In preparation to support Vendor Authorized Boot (VAB) for Intel > SOC64 device in near future. With VAB, u-boot proper, dtb and arm trusted > firmware need to be signed before FIT image generation. > > To align user experience for ATF boot with and without VAB feature, we skip > binman for ARCH_SOCFPGA in default Makefile flow. User always use 'make > fit-itb' to generate FIT image after successfully compile u-boot. > > Signed-off-by: Siew Chin Lim > --- > Makefile | 7 +++++++ > arch/arm/mach-socfpga/Kconfig | 2 ++ > 2 files changed, 9 insertions(+) > > diff --git a/Makefile b/Makefile > index 28c9f31fb4..ed05becc9e 100644 > --- a/Makefile > +++ b/Makefile > @@ -1020,8 +1020,10 @@ inputs: $(INPUTS-y) > > all: .binman_stamp inputs > ifeq ($(CONFIG_BINMAN),y) > +ifneq ($(CONFIG_ARCH_SOCFPGA),y) > $(call if_changed,binman) > endif > +endif > > # Timestamp file to make sure that binman always runs > .binman_stamp: FORCE > @@ -1600,6 +1602,11 @@ cmd_socnandboot = cat u-boot-spl-padx4.sfp > u-boot.img > $@ || rm -f $@ > u-boot-with-nand-spl.sfp: u-boot-spl-padx4.sfp u-boot.img FORCE > $(call if_changed,socnandboot) > > +ifeq ($(CONFIG_FIT),y) > +fit-itb: > + $(call if_changed,binman) > +endif > + > endif > > ifeq ($(CONFIG_MPC85xx)$(CONFIG_OF_SEPARATE),yy) > diff --git a/arch/arm/mach-socfpga/Kconfig b/arch/arm/mach- > socfpga/Kconfig index 01f5a1fc41..7fdb52dd83 100644 > --- a/arch/arm/mach-socfpga/Kconfig > +++ b/arch/arm/mach-socfpga/Kconfig > @@ -37,6 +37,7 @@ config TARGET_SOCFPGA_AGILEX > select FPGA_INTEL_SDM_MAILBOX > select NCORE_CACHE > select SPL_CLK if SPL > + select BINMAN Sort by alphabetical order > config TARGET_SOCFPGA_ARRIA5 > bool > @@ -79,6 +80,7 @@ config TARGET_SOCFPGA_STRATIX10 > select ARMV8_MULTIENTRY > select ARMV8_SET_SMPEN > select FPGA_INTEL_SDM_MAILBOX > + select BINMAN Sort by alphabetical order Regards Ley Foon