From patchwork Wed Jun 16 05:03:39 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Drew Fustini X-Patchwork-Id: 1492696 Return-Path: X-Original-To: incoming-buildroot@patchwork.ozlabs.org Delivered-To: patchwork-incoming-buildroot@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=busybox.net (client-ip=2605:bc80:3010::137; helo=smtp4.osuosl.org; envelope-from=buildroot-bounces@busybox.net; receiver=) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=beagleboard-org.20150623.gappssmtp.com header.i=@beagleboard-org.20150623.gappssmtp.com header.a=rsa-sha256 header.s=20150623 header.b=IwHQSA0y; dkim-atps=neutral Received: from smtp4.osuosl.org (smtp4.osuosl.org [IPv6:2605:bc80:3010::137]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4G4Y5m1XCLz9sWX for ; Wed, 16 Jun 2021 15:05:00 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by smtp4.osuosl.org (Postfix) with ESMTP id 5EF56405C2; Wed, 16 Jun 2021 05:04:57 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from smtp4.osuosl.org ([127.0.0.1]) by localhost (smtp4.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Y9zCPABAWBm0; Wed, 16 Jun 2021 05:04:56 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by smtp4.osuosl.org (Postfix) with ESMTP id 43DF1405ED; Wed, 16 Jun 2021 05:04:55 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from smtp1.osuosl.org (smtp1.osuosl.org [140.211.166.138]) by ash.osuosl.org (Postfix) with ESMTP id 4525D1BF5DA for ; Wed, 16 Jun 2021 05:04:54 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp1.osuosl.org (Postfix) with ESMTP id 330F5839BF for ; Wed, 16 Jun 2021 05:04:53 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Authentication-Results: smtp1.osuosl.org (amavisd-new); dkim=pass (2048-bit key) header.d=beagleboard-org.20150623.gappssmtp.com Received: from smtp1.osuosl.org ([127.0.0.1]) by localhost (smtp1.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id p7JH96fuk9ZC for ; Wed, 16 Jun 2021 05:04:52 +0000 (UTC) X-Greylist: whitelisted by SQLgrey-1.8.0 Received: from mail-pf1-x435.google.com (mail-pf1-x435.google.com [IPv6:2607:f8b0:4864:20::435]) by smtp1.osuosl.org (Postfix) with ESMTPS id 7BF8383A15 for ; Wed, 16 Jun 2021 05:04:52 +0000 (UTC) Received: by mail-pf1-x435.google.com with SMTP id k6so1186911pfk.12 for ; Tue, 15 Jun 2021 22:04:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=beagleboard-org.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=Z3tG9Pg28TXRF0yx77p88MBEr0VISn+tQSsYUwH4o0U=; b=IwHQSA0yaTvkjoJFK6yOEZIiSG+uQsKPxjZ7c9A33fUnegWiphpZVqBIIcOwAcKDyd C9hbp7koijA9M+f/NBDyEXj2tGPsWforbNI6OXw1aDWlu1COhPRWlSiHnsmazNWFcuqW ZJxXT6l41oDPZ8FcuvW+O1iOuvEjOhiZLn2VW3glKSeETTG73KzWmAZc5Cyoys4zzgqw pSvO0SHaL7LAaeX+oO+JBrfeQGLk03T+Xih9aUsdvys/pEv48oaGIsbSkWG0uXXwUVvB 7/6NuxnQIG8DOVMYMNxMyGleO0QVQrpo0T19JOp9m1ytpVgL3FELiBYvp/GteKC2d3ZY tlng== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=Z3tG9Pg28TXRF0yx77p88MBEr0VISn+tQSsYUwH4o0U=; b=PRL+05floMDVT2qEhfEc0avCIpP7fMkGnPB9tcIircGZFEkeMThN7hBQwFO6MOjfxs j7OMOV/45nZ3O8LT2BoI23JErvD5qgItfOFmGZjrSKWUkgpr1iC4yBKNcNw89Kne+hNq BppyO9nQ4E/LsnUL7ntyfCHt2rwpk1PrVNHRm5diX/F/xYnbIZNrIfiN9P/cxjTv+Olf aqM8PuC/b04x1Xe/2QOfNSq/Bbag35XxenPKk5/PV2lvLOdPOmNExLAJbJOmmLxWEcZf 1JZ6FEMrtF2+qQjabeuIMFPujDFGmpUmjvVAqwDnh82Ez3TARk9/F5rLFSRwqIdhi6HV nqMA== X-Gm-Message-State: AOAM530eX53Y4GWbBh7D54Rke+WiBoaQfS4TOHa485dGdEv6SHqE7WsQ l55fXPJnHUFnjGkfj5p6Wa+4rqOGjOKahw== X-Google-Smtp-Source: ABdhPJwq0y+FIGPypJ5rEf4LniAvXJtr4oh7og5zkvJeJu0Oi9Jm8IuS89SZRZVqtikUZX8jp9n4dg== X-Received: by 2002:a63:145a:: with SMTP id 26mr3136880pgu.324.1623819891188; Tue, 15 Jun 2021 22:04:51 -0700 (PDT) Received: from x1.hsd1.or.comcast.net ([2601:1c0:4701:ae70:e309:599f:f8cb:f28d]) by smtp.gmail.com with ESMTPSA id f8sm719456pfv.73.2021.06.15.22.04.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 15 Jun 2021 22:04:50 -0700 (PDT) From: Drew Fustini To: buildroot@buildroot.org Date: Tue, 15 Jun 2021 22:03:39 -0700 Message-Id: <20210616050341.510702-2-drew@beagleboard.org> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20210616050341.510702-1-drew@beagleboard.org> References: <20210616050341.510702-1-drew@beagleboard.org> MIME-Version: 1.0 Subject: [Buildroot] [PATCH v2 1/4] boot/uboot: introduce BR2_TARGET_UBOOT_FORMAT_DTB X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.29 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Drew Fustini , Alistair Francis , Alistair Francis , Thomas Petazzoni , Bin Meng Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" If U-Boot CONFIG_OF_SEPARATE is defined [1], then the device tree will be built and placed in a u-boot.dtb file alongside u-boot.bin. When BR2_TARGET_UBOOT_FORMAT_DTB is enabled, buildroot will copy u-boot.dtb to $(BINARIES_DIR). This is useful for RISC-V platforms that want to build OpenSBI with an external DTB by using FW_FDT_PATH [2]. [1] https://github.com/u-boot/u-boot/blob/master/doc/README.fdt-control [2] https://github.com/riscv/opensbi/blob/master/docs/firmware/fw.md Reviewed-by: Alistair Francis Reviewed-by: Bin Meng Signed-off-by: Drew Fustini --- boot/uboot/Config.in | 3 +++ boot/uboot/uboot.mk | 4 ++++ 2 files changed, 7 insertions(+) diff --git a/boot/uboot/Config.in b/boot/uboot/Config.in index 00c667412006..44a16d892a60 100644 --- a/boot/uboot/Config.in +++ b/boot/uboot/Config.in @@ -252,6 +252,9 @@ config BR2_TARGET_UBOOT_FORMAT_BIN bool "u-boot.bin" default y +config BR2_TARGET_UBOOT_FORMAT_DTB + bool "u-boot.dtb" + config BR2_TARGET_UBOOT_FORMAT_DTB_BIN bool "u-boot-dtb.bin" diff --git a/boot/uboot/uboot.mk b/boot/uboot/uboot.mk index dbe82e65b17e..923fd0c1d46c 100644 --- a/boot/uboot/uboot.mk +++ b/boot/uboot/uboot.mk @@ -48,6 +48,10 @@ ifeq ($(BR2_TARGET_UBOOT_FORMAT_BIN),y) UBOOT_BINS += u-boot.bin endif +ifeq ($(BR2_TARGET_UBOOT_FORMAT_DTB),y) +UBOOT_BINS += u-boot.dtb +endif + ifeq ($(BR2_TARGET_UBOOT_FORMAT_ELF),y) UBOOT_BINS += u-boot # To make elf usable for debuging on ARC use special target