From patchwork Thu Dec 20 22:22:27 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gary Coulbourne X-Patchwork-Id: 207717 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from hemlock.osuosl.org (hemlock.osuosl.org [140.211.166.133]) by ozlabs.org (Postfix) with ESMTP id A17CD2C0084 for ; Fri, 21 Dec 2012 09:23:02 +1100 (EST) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id 8E5DDA00E9; Thu, 20 Dec 2012 22:23:01 +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 evB+swzeq8Nr; Thu, 20 Dec 2012 22:22:58 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by hemlock.osuosl.org (Postfix) with ESMTP id 9D776A0069; Thu, 20 Dec 2012 22:22:57 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from whitealder.osuosl.org (whitealder.osuosl.org [140.211.166.138]) by ash.osuosl.org (Postfix) with ESMTP id 35A518F79C for ; Thu, 20 Dec 2012 22:23:01 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 883868A180 for ; Thu, 20 Dec 2012 22:22:55 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id BI+GvpJHuNEs for ; Thu, 20 Dec 2012 22:22:45 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from mail-vc0-f182.google.com (mail-vc0-f182.google.com [209.85.220.182]) by whitealder.osuosl.org (Postfix) with ESMTPS id 13D808A79B for ; Thu, 20 Dec 2012 22:22:39 +0000 (UTC) Received: by mail-vc0-f182.google.com with SMTP id fy27so4430255vcb.27 for ; Thu, 20 Dec 2012 14:22:39 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-received:from:to:cc:subject:date:message-id:x-mailer :x-gm-message-state; bh=QlsWb5xbULdQzFobEq01NTuczxQZyYkGyoAH8paMEbU=; b=lJGnjHRBmy9rIu9DOQdu/C+Lb7/2zJA8iMjJh6/CZ5DAcgoLqtpp5F5rHfhZFScacH 1ulsVN7sg+DdIHJLaUScVUu14mUip4FAHF1seUhDaRWRUui6GZhHIDtuNucgoNeaTuEB JxUCZ1WRw8CitMzTyDevfwmXRSw72JaTv5hcHftWKesdIbqfMK5hFZ9qdES2ANV4Lw/F HQ9vvYtIZACrfMZN2p1tL0xkDYC4Z3yrXc+Zr6fT6Y4KKQ2q0GiKi691drFPM3TQHpNG PKlUB3FRaj/q9LPuaFS91Mv8GOcvO5Z+w5Mb35WHCBcpa5ZT8TZDCqxak8WMKJvjlxFb UfdQ== X-Received: by 10.220.156.197 with SMTP id y5mr16594692vcw.17.1356042158883; Thu, 20 Dec 2012 14:22:38 -0800 (PST) Received: from soyuz.lifeshield.local (static-98-114-31-106.phlapa.fios.verizon.net. [98.114.31.106]) by mx.google.com with ESMTPS id fb16sm6008499veb.9.2012.12.20.14.22.37 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 20 Dec 2012 14:22:38 -0800 (PST) From: Gary Coulbourne To: buildroot@busybox.net Date: Thu, 20 Dec 2012 17:22:27 -0500 Message-Id: <1356042147-1532-1-git-send-email-bear@bears.org> X-Mailer: git-send-email 1.7.10.4 X-Gm-Message-State: ALoCoQmbAbPGo8PlPM33UJ5TkwxiTgigDK4CWvdn0ufimaSBRw8HqwB0mrg3SX/WwXmaisBy9cw2 Subject: [Buildroot] [PATCH] dtb: provide option to install dtb to boot directory X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.14 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: buildroot-bounces@busybox.net Sender: buildroot-bounces@busybox.net Signed-off-by: Gary Coulbourne --- linux/Config.in | 6 ++++++ linux/linux.mk | 7 +++++++ 2 files changed, 13 insertions(+) diff --git a/linux/Config.in b/linux/Config.in index 9ebe0c9..8918297 100644 --- a/linux/Config.in +++ b/linux/Config.in @@ -284,6 +284,12 @@ config BR2_LINUX_KERNEL_INSTALL_TARGET /boot in the target root filesystem, as is typically done on x86/x86_64 systems. +config BR2_LINUX_DEVICE_TREE_INSTALL_TARGET + bool "Install Device Tree to /boot in target" + depends on BR2_LINUX_KERNEL_DTS_SUPPORT + help + Select this option to have the device tree installed to + /boot in the target root filesystem. # Linux extensions source "linux/Config.ext.in" diff --git a/linux/linux.mk b/linux/linux.mk index 3321d80..6d8c752 100644 --- a/linux/linux.mk +++ b/linux/linux.mk @@ -211,6 +211,12 @@ define LINUX_APPEND_DTB endef endif +ifeq ($(BR2_LINUX_DEVICE_TREE_INSTALL_TARGET),y) +define LINUX_INSTALL_DTB_TO_TARGET + install -m 0644 -D $(KERNEL_ARCH_PATH)/boot/$(KERNEL_DTS_NAME).dtb $(TARGET_DIR)/boot/$(KERNEL_DTS_NAME).dtb +endef +endif + # Compilation. We make sure the kernel gets rebuilt when the # configuration has changed. define LINUX_BUILD_CMDS @@ -247,6 +253,7 @@ endef define LINUX_INSTALL_TARGET_CMDS $(LINUX_INSTALL_KERNEL_IMAGE_TO_TARGET) $(LINUX_INSTALL_DTB) + $(LINUX_INSTALL_DTB_TO_TARGET) # Install modules and remove symbolic links pointing to build # directories, not relevant on the target @if grep -q "CONFIG_MODULES=y" $(@D)/.config; then \