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 B1B15C4332F for ; Sat, 17 Dec 2022 21:30:27 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 587B4853EA; Sat, 17 Dec 2022 22:28:53 +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="LLKUuXry"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id EBDC385395; Sat, 17 Dec 2022 22:28:35 +0100 (CET) Received: from mail-il1-x130.google.com (mail-il1-x130.google.com [IPv6:2607:f8b0:4864:20::130]) (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 AD5BF853A7 for ; Sat, 17 Dec 2022 22:28:31 +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-il1-x130.google.com with SMTP id m15so3032385ilq.2 for ; Sat, 17 Dec 2022 13:28:31 -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=OfFl4U3TE94J+hM8HtRGlEEY4Wlcj+hdeHzHFK1+Szw=; b=LLKUuXry8qNpIUTKcZUHhU10Aqe53P3byRAD+drXswAxex7+L5dSf+Wdbxp/PJxh6r R1mSCAGmed2QnGIa2WsDu186+nk4elUcAhp/7DPKZU5YSwY0J/WrPxV3TzShsQpcnfYX jIkJLJtOmokJUs490grXyBHJbMoLWm2CT0bYE= 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=OfFl4U3TE94J+hM8HtRGlEEY4Wlcj+hdeHzHFK1+Szw=; b=heYCjNuClIukgJNdrlSkBuEp7zBgBIjtbVdFySas4j2i70FO1S5SXE3pJuShH3sF+6 AuCYl6vKddwVnyi9gVtfdR/QhJtEGyzx+Vt8ZnLeQuROnRQvUahVVPj4b6wYdOdrYdDp 7J7Zujk8Velr1I3ClHP+ht1TNabMWKEEQyuMqOQWcGQtiPUyLth3MVU++J2Sqpxpf+tH iemi7HjgnMlO3VSEEmUp3sjt4zTBt7izgLnlsWdwfEWTDEmJp0yYwUppI7IFWkSDzw32 /y+NT/J/HLdwCLnbQqt7/gJTjdTz57Ue2f2GmekFPG2e2vetv3/xbGQH2CdPuxObDhGq f4Hw== X-Gm-Message-State: ANoB5pkwMLT8IfZ9ZfPaFwURfIVJE1+v0NQK3emhZRvetWraJk0zrhH9 YRSjeuwmiAa+YQNdE/ip7GKokt6OtCSFAA1+ X-Google-Smtp-Source: AA0mqf7lQ5X/R8eEFdiY5gzwsRbPVJNnoF+SkowrAfNunkn1JKhqG94NNp8Vr+ZLtYU2cwE89nnxrw== X-Received: by 2002:a05:6e02:ec5:b0:304:cd81:b933 with SMTP id i5-20020a056e020ec500b00304cd81b933mr11225887ilk.18.1671312510010; Sat, 17 Dec 2022 13:28:30 -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 e2-20020a02a502000000b00370decbbff3sm1949886jam.148.2022.12.17.13.28.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 17 Dec 2022 13:28:29 -0800 (PST) From: Simon Glass To: U-Boot Mailing List Cc: huang lin , Jeffy Chen , Simon Glass , Kever Yang , Philipp Tomsich , Peter Geis , Quentin Schulz , Alper Nebi Yasak , Ivan Mikhaylov , Philippe Reynes , Tom Rini , Jerome Forissier , Roger Quadros Subject: [PATCH v7 10/12] rockchip: Convert all boards to use binman Date: Sat, 17 Dec 2022 14:28:11 -0700 Message-Id: <20221217212813.89914-11-sjg@chromium.org> X-Mailer: git-send-email 2.39.0.314.g84b9a713c41-goog In-Reply-To: <20221217212813.89914-1-sjg@chromium.org> References: <20221217212813.89914-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 9d84f964817..566eeb5a248 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