Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id A015FC4332F for ; Wed, 21 Dec 2022 23:10:06 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 498BC8543B; Thu, 22 Dec 2022 00:08:23 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=chromium.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (1024-bit key; unprotected) header.d=chromium.org header.i=@chromium.org header.b="LAvGG6qg"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id CE0E6851EF; Thu, 22 Dec 2022 00:07:54 +0100 (CET) Received: from mail-io1-xd36.google.com (mail-io1-xd36.google.com [IPv6:2607:f8b0:4864:20::d36]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 2A09585282 for ; Thu, 22 Dec 2022 00:07:49 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=chromium.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=sjg@chromium.org Received: by mail-io1-xd36.google.com with SMTP id r72so187100iod.5 for ; Wed, 21 Dec 2022 15:07:49 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=IQ6lnFkAWFtUsGMyFrtF5w8J/driQ0daZ496qcrOmRs=; b=LAvGG6qgczGB3EFdvQrLu+Ck6Ye63+FhrehGnkkbk33Oi3kie9X+YgNWRCodg2XC/w h1qyEx6WCi7g4A8zLfo16janFMSTDbCEVLEEGp2rTr5NJ1UyuCmEJRSBe2l8dnGyyttT PjMUo2f7Pf5n7ZpXbv3J76k62CCR32DaC3668= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=IQ6lnFkAWFtUsGMyFrtF5w8J/driQ0daZ496qcrOmRs=; b=cgdoKoWWeWtVh4COp+4zAqaA3Nmt4NmPk+6rp7OvjV+rj/jz907w9Wq4oiN8jSqebh YJSoOpm0Y1iNnBRhVkPHBnsV5eENm6m4mX0zssPMqfMPwsvDNPJ+FFjGpLAtxDu/Bg+u yPqseC2ifubafrm4Ji5kmM/9mmvvsiTGVDElf6H+qnCbqcLoGP8+Z341z1jJZuB2jts1 Zdk4k7nUmv12s6JkQSSKMWSnE1gBz6rq5fTEneis06XFC3Uy/H33Oa0AEPKUxuP+qZtp oo6RBOk1LPn5FrJSKWJ/MaGj0ebX3+vdFiy4eGxZPmqDyGx6MBgOYLYhOG95YUJAxW5D Lf8A== X-Gm-Message-State: AFqh2konN1VWv86t6CPM9NOjTgqCXsM9ZuyciyLWKwCfe5x39r5XzazT pwWkZUvkFpjdDR5tqG/WSsYwCgfCd4s6rIk0 X-Google-Smtp-Source: AMrXdXuQEUIi6bSs3h7yqeytImFuBLpdpOZYq3vHmKy3KnssqtDw5HGx+2BKj/iK+rsgr/Uq+ItdIw== X-Received: by 2002:a6b:d118:0:b0:6e3:3332:8a36 with SMTP id l24-20020a6bd118000000b006e333328a36mr2520836iob.12.1671664067609; Wed, 21 Dec 2022 15:07:47 -0800 (PST) Received: from sjg1.roam.corp.google.com (c-67-190-102-125.hsd1.co.comcast.net. [67.190.102.125]) by smtp.gmail.com with ESMTPSA id c2-20020a5ea802000000b006a175fe334dsm6499433ioa.1.2022.12.21.15.07.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 21 Dec 2022 15:07:47 -0800 (PST) From: Simon Glass To: U-Boot Mailing List Cc: Tom Rini , huang lin , Jeffy Chen , Simon Glass , Kever Yang , Philipp Tomsich , Ivan Mikhaylov , Quentin Schulz , Roger Quadros , Philippe Reynes , Alper Nebi Yasak , Jerome Forissier , Peter Geis Subject: [PATCH v8 11/13] rockchip: Convert all boards to use binman Date: Wed, 21 Dec 2022 16:07:24 -0700 Message-Id: <20221221230726.638740-12-sjg@chromium.org> X-Mailer: git-send-email 2.39.0.314.g84b9a713c41-goog In-Reply-To: <20221221230726.638740-1-sjg@chromium.org> References: <20221221230726.638740-1-sjg@chromium.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.6 at phobos.denx.de X-Virus-Status: Clean Instead of the bash script, use binman to generate the FIT for arm64. For 32-bit boards, use binman for all images, dropping the intermediate files. With this change, only Zynq is now using SPL_FIT_GENERATOR so update the Kconfig rule accordingly. Clean up the Makefile to the extent possible. Unfortunately, two boards do not use SPL_FRAMEWORK so don't enable the u-boot.img rule: evb-rk3036 kylin-rk3036 So a small remnant remains. Signed-off-by: Simon Glass --- (no changes since v1) Makefile | 8 +------- boot/Kconfig | 2 +- 2 files changed, 2 insertions(+), 8 deletions(-) diff --git a/Makefile b/Makefile index 8cd873fd5f4..4e7091779de 100644 --- a/Makefile +++ b/Makefile @@ -1006,14 +1006,9 @@ ifeq ($(CONFIG_INIT_SP_RELATIVE)$(CONFIG_OF_SEPARATE),yy) INPUTS-y += init_sp_bss_offset_check endif -ifeq ($(CONFIG_ARCH_ROCKCHIP)$(CONFIG_SPL),yy) -# Binman image dependencies -ifeq ($(CONFIG_ARM64),y) -INPUTS-y += u-boot.itb -else +ifeq ($(CONFIG_ARCH_ROCKCHIP)_$(CONFIG_SPL_FRAMEWORK),y_) INPUTS-y += u-boot.img endif -endif INPUTS-$(CONFIG_X86) += u-boot-x86-start16.bin u-boot-x86-reset16.bin \ $(if $(CONFIG_SPL_X86_16BIT_INIT),spl/u-boot-spl.bin) \ @@ -1485,7 +1480,6 @@ OBJCOPYFLAGS_u-boot-with-spl.bin = -I binary -O binary \ u-boot-with-spl.bin: $(SPL_IMAGE) $(SPL_PAYLOAD) FORCE $(call if_changed,pad_cat) - ifeq ($(CONFIG_ARCH_LPC32XX)$(CONFIG_SPL),yy) MKIMAGEFLAGS_lpc32xx-spl.img = -T lpc32xximage -a $(CONFIG_SPL_TEXT_BASE) diff --git a/boot/Kconfig b/boot/Kconfig index 668270cc660..2fec861acd3 100644 --- a/boot/Kconfig +++ b/boot/Kconfig @@ -277,7 +277,7 @@ config SPL_FIT_SOURCE config USE_SPL_FIT_GENERATOR bool "Use a script to generate the .its script" - default y if SPL_FIT && (!ARCH_SUNXI && !RISCV) + default y if SPL_FIT && ARCH_ZYNQMP config SPL_FIT_GENERATOR string ".its file generator script for U-Boot FIT image" -- 2.39.0.314.g84b9a713c41-goog