From patchwork Thu Nov 7 15:17:34 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Arnaud Patard (Rtp)" X-Patchwork-Id: 3156821 Return-Path: X-Original-To: patchwork-linux-kbuild@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 7E8B0BEEB2 for ; Fri, 8 Nov 2013 08:44:30 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 29CBA20499 for ; Fri, 8 Nov 2013 08:44:29 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 4DF2420497 for ; Fri, 8 Nov 2013 08:44:28 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751530Ab3KHIo1 (ORCPT ); Fri, 8 Nov 2013 03:44:27 -0500 Received: from lebrac.rtp-net.org ([88.191.135.105]:49647 "EHLO lebrac.rtp-net.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751221Ab3KHIo1 (ORCPT ); Fri, 8 Nov 2013 03:44:27 -0500 X-Greylist: delayed 425 seconds by postgrey-1.27 at vger.kernel.org; Fri, 08 Nov 2013 03:44:27 EST Received: by lebrac.rtp-net.org (Postfix, from userid 1000) id 9B65729275; Fri, 8 Nov 2013 09:36:44 +0100 (CET) Message-Id: <20131107151746.950612598@rtp-net.org> User-Agent: quilt/0.60-1 Date: Thu, 07 Nov 2013 16:17:34 +0100 From: Arnaud Patard (Rtp) To: linux-kbuild@vger.kernel.org Cc: maximilian attems , Ben Hutchings , Michal Marek , Arnaud Patard Subject: [patch 1/1] deb-pkg: Add device tree blobs to the package Sender: linux-kbuild-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kbuild@vger.kernel.org X-Spam-Status: No, score=-5.9 required=5.0 tests=BAYES_00, DATE_IN_PAST_12_24, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP When building a package with make deb-pkg (say, for arm), the dtb files are not added to the package. Given that things are still evolving on arm, it make sense to have them along with the kernel and modules. Signed-off-by: Arnaud Patard --- -- To unsubscribe from this list: send the line "unsubscribe linux-kbuild" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Index: linux-next/scripts/package/builddeb =================================================================== --- linux-next.orig/scripts/package/builddeb 2013-11-06 12:51:49.548299578 +0100 +++ linux-next/scripts/package/builddeb 2013-11-06 12:52:24.152298055 +0100 @@ -140,6 +140,10 @@ if [ -e $KBUILD_IMAGE ]; then else cp arch/$ARCH/boot/$KBUILD_IMAGE "$tmpdir/$installed_image_path" fi +if grep -q "^CONFIG_OF=y" .config ; then + mkdir -p "$tmpdir/usr/lib/$packagename" + find arch/$ARCH -name *.dtb -exec cp {} "$tmpdir/usr/lib/$packagename" \; +fi if grep -q '^CONFIG_MODULES=y' $KCONFIG_CONFIG ; then INSTALL_MOD_PATH="$tmpdir" $MAKE KBUILD_SRC= modules_install