From patchwork Fri Nov 16 15:45:01 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Philipp Wagner X-Patchwork-Id: 999082 Return-Path: X-Original-To: incoming-buildroot@patchwork.ozlabs.org Delivered-To: patchwork-incoming-buildroot@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=busybox.net (client-ip=140.211.166.133; helo=hemlock.osuosl.org; envelope-from=buildroot-bounces@busybox.net; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=philipp-wagner.com Received: from hemlock.osuosl.org (smtp2.osuosl.org [140.211.166.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 42xPMf52F7z9s0t for ; Sat, 17 Nov 2018 03:49:18 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id B304C889CC; Fri, 16 Nov 2018 16:49:15 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from hemlock.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id tumfbPGw4k9c; Fri, 16 Nov 2018 16:49:13 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by hemlock.osuosl.org (Postfix) with ESMTP id 8C7E888995; Fri, 16 Nov 2018 16:49:13 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from silver.osuosl.org (smtp3.osuosl.org [140.211.166.136]) by ash.osuosl.org (Postfix) with ESMTP id E92671BF30F for ; Fri, 16 Nov 2018 16:49:11 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id E66D6233B0 for ; Fri, 16 Nov 2018 16:49:11 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from silver.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 3u29bXjjDfbH for ; Fri, 16 Nov 2018 16:49:10 +0000 (UTC) X-Greylist: delayed 01:04:04 by SQLgrey-1.7.6 Received: from smtprelay06.ispgateway.de (smtprelay06.ispgateway.de [80.67.31.102]) by silver.osuosl.org (Postfix) with ESMTPS id 988242291C for ; Fri, 16 Nov 2018 16:49:10 +0000 (UTC) Received: from [138.246.2.191] (helo=powerashley.wagner-net) by smtprelay06.ispgateway.de with esmtpsa (TLSv1.2:ECDHE-RSA-AES128-GCM-SHA256:128) (Exim 4.90_1) (envelope-from ) id 1gNgIp-00017P-G6; Fri, 16 Nov 2018 16:45:03 +0100 From: lists@philipp-wagner.com To: buildroot@uclibc.org Date: Fri, 16 Nov 2018 16:45:01 +0100 Message-Id: <20181116154501.14961-1-lists@philipp-wagner.com> X-Mailer: git-send-email 2.19.1 MIME-Version: 1.0 X-Df-Sender: bGlzdHNAcGhpbGlwcC13YWduZXIuY29t Subject: [Buildroot] [PATCH] Make BR2_LINUX_KERNEL_DTB_IS_SELF_BUILT public 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: Philipp Wagner Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" From: Philipp Wagner Currently the BR2_LINUX_KERNEL_DTB_IS_SELF_BUILT option is only available as dependency. This option controls if the Linux build system should build the DTB itself, or if buildroot explicitly calls the Linux Makefile like "make something.dtb". My use case: I want to build an OpenRISC image with a custom device tree file. OpenRISC does not support appended DTBs, and I'm not using a bootloader, but link everything into a single kernel (vmlinux) image. The kernel option CONFIG_OPENRISC_BUILTIN_DTB allows me to specify a dtb file, which is typically located in the kernel source tree in arch/openrisc/boot/dts/NAME.dts. Since my dts file is not part of the upstream kernel, I have two options: either patch the kernel to include the DTS file, and then specify it using the CONFIG_OPENRISC_BUILTIN_DTB option. Or use buildroot's BR2_LINUX_KERNEL_CUSTOM_DTS_PATH config option to copy any DTS file to the kernel source tree, and then specify this file with CONFIG_OPENRISC_BUILTIN_DTB as before. However, the second option also requries the buildroot option BR2_LINUX_KERNEL_DTB_IS_SELF_BUILT to be set, otherwise I end up with a "make -C kerneldir NAME.dts" call, which doesn't work (no such target exists). Currently the BR2_LINUX_KERNEL_DTB_IS_SELF_BUILT option exists, but it's not visible/available. Simply making it available solves the problem for me nicely. Signed-off-by: Philipp Wagner --- linux/Config.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/linux/Config.in b/linux/Config.in index ecb12d0b16..1f02ee6e3b 100644 --- a/linux/Config.in +++ b/linux/Config.in @@ -373,7 +373,7 @@ if BR2_LINUX_KERNEL_DTS_SUPPORT # The variable below address the second case, were you only want # limited actions from buildroot. config BR2_LINUX_KERNEL_DTB_IS_SELF_BUILT - bool + bool "DTB is built by kernel itself" config BR2_LINUX_KERNEL_APPENDED_DTB bool