From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from mail-wm1-x32b.google.com ([2a00:1450:4864:20::32b]) by metis.ext.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1ifgHm-000513-S4 for ptxdist@pengutronix.de; Fri, 13 Dec 2019 09:26:55 +0100 Received: by mail-wm1-x32b.google.com with SMTP id b19so1127207wmj.4 for ; Fri, 13 Dec 2019 00:26:54 -0800 (PST) From: =?UTF-8?q?Guillermo=20Rodr=C3=ADguez?= Date: Fri, 13 Dec 2019 09:26:35 +0100 Message-Id: <20191213082635.8951-1-guille.rodriguez@gmail.com> In-Reply-To: <20191212163058.7883-1-guille.rodriguez@gmail.com> References: <20191212163058.7883-1-guille.rodriguez@gmail.com> MIME-Version: 1.0 Subject: [ptxdist] [PATCH v2] u-boot: Add support for u-boot.stm32 binary List-Id: PTXdist Development Mailing List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: ptxdist@pengutronix.de Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: ptxdist-bounces@pengutronix.de Sender: "ptxdist" To: ptxdist@pengutronix.de Cc: Alexander Dahl , =?UTF-8?q?Guillermo=20Rodr=C3=ADguez?= Adds support for copying u-boot.stm32 (u-boot with STM32 image header) to the platform image directory. This is used by STM32MP1 SoCs. Signed-off-by: Guillermo Rodriguez Reviewed-by: Alexander Dahl --- v2: Formatting/whitespace changes platforms/u-boot.in | 8 ++++++++ rules/u-boot.make | 4 ++++ 2 files changed, 12 insertions(+) diff --git a/platforms/u-boot.in b/platforms/u-boot.in index aab9c57a3..50fb008a3 100644 --- a/platforms/u-boot.in +++ b/platforms/u-boot.in @@ -220,5 +220,13 @@ config U_BOOT_INSTALL_U_BOOT_WITH_SPL_PBL Installing the U-Boot binary which contains as well the SPL and PBL. Say yes if you are building for Layerscape SoCs +config U_BOOT_INSTALL_U_BOOT_STM32 + prompt "install u-boot.stm32" + bool + help + Installing the U-Boot image with stm32 header (u-boot.stm32) into + platform image directory. Say yes if you are building for STM32MP1 + SOCs. + endif diff --git a/rules/u-boot.make b/rules/u-boot.make index 04d801fc6..0c6bccc71 100644 --- a/rules/u-boot.make +++ b/rules/u-boot.make @@ -167,6 +167,9 @@ ifdef PTXCONF_U_BOOT_INSTALL_U_BOOT_WITH_SPL_PBL @install -v -D -m644 $(U_BOOT_BUILD_DIR)/u-boot-with-spl-pbl.bin \ $(IMAGEDIR)/u-boot-with-spl-pbl.bin endif +ifdef PTXCONF_U_BOOT_INSTALL_U_BOOT_STM32 + @install -v -D -m644 $(U_BOOT_BUILD_DIR)/u-boot.stm32 $(IMAGEDIR)/u-boot.stm32 +endif ifndef PTXCONF_U_BOOT_ENV_IMAGE_NONE @install -v -D -m644 $(U_BOOT_BUILD_DIR)/u-boot-env.img \ $(IMAGEDIR)/u-boot-env.img @@ -198,6 +201,7 @@ $(STATEDIR)/u-boot.clean: @rm -vf $(IMAGEDIR)/u-boot.imx $(IMAGEDIR)/u-boot-dtb.imx @rm -vf $(IMAGEDIR)/u-boot-env.img @rm -vf $(IMAGEDIR)/u-boot-dtb.bin $(IMAGEDIR)/u-boot-with-spl-pbl.bin + @rm -vf $(IMAGEDIR)/u-boot.stm32 # ---------------------------------------------------------------------------- # oldconfig / menuconfig -- 2.21.0 _______________________________________________ ptxdist mailing list ptxdist@pengutronix.de