From patchwork Wed Jan 14 12:32:02 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Arnaud Patard (Rtp)" X-Patchwork-Id: 5630931 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.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 21C7AC058D for ; Wed, 14 Jan 2015 12:48:31 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 2916020155 for ; Wed, 14 Jan 2015 12:48:30 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id CAEB620122 for ; Wed, 14 Jan 2015 12:48:28 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752471AbbANMs2 (ORCPT ); Wed, 14 Jan 2015 07:48:28 -0500 Received: from lebrac.rtp-net.org ([195.154.106.105]:34774 "EHLO lebrac.rtp-net.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752499AbbANMs1 (ORCPT ); Wed, 14 Jan 2015 07:48:27 -0500 X-Greylist: delayed 355 seconds by postgrey-1.27 at vger.kernel.org; Wed, 14 Jan 2015 07:48:27 EST Received: by lebrac.rtp-net.org (Postfix, from userid 1000) id 9135729232; Wed, 14 Jan 2015 13:42:07 +0100 (CET) Message-Id: <20150114123658.185884720@rtp-net.org> User-Agent: quilt/0.60-1 Date: Wed, 14 Jan 2015 13:32:02 +0100 From: Arnaud Patard (Rtp) To: linux-kbuild@vger.kernel.org Cc: maximilian attems , Ben Hutchings , Michal Marek Subject: [PATCHv2 1/1] deb-pkg: Add device tree blobs to the package References: <20150114123201.434698327@rtp-net.org> Content-Disposition: inline; filename=builddeb-install-dtbs-if-needed.patch Sender: linux-kbuild-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kbuild@vger.kernel.org X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, T_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. v2: make use of dtbs_install 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 2015-01-14 13:04:45.845922441 +0100 +++ linux-next/scripts/package/builddeb 2015-01-14 13:19:26.121883720 +0100 @@ -143,6 +143,10 @@ else cp arch/$ARCH/boot/$KBUILD_IMAGE "$tmpdir/$installed_image_path" fi +if grep -q "^CONFIG_OF=y" .config ; then + make INSTALL_DTBS_PATH="$tmpdir/usr/lib/$packagename" dtbs_install +fi + if grep -q '^CONFIG_MODULES=y' $KCONFIG_CONFIG ; then INSTALL_MOD_PATH="$tmpdir" $MAKE KBUILD_SRC= modules_install rm -f "$tmpdir/lib/modules/$version/build"