From patchwork Thu Apr 7 01:42:50 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Shawn Guo X-Patchwork-Id: 923 Return-Path: Delivered-To: unknown Received: from imap.gmail.com (74.125.159.109) by localhost6.localdomain6 with IMAP4-SSL; 08 Jun 2011 14:47:24 -0000 Delivered-To: patches@linaro.org Received: by 10.68.52.132 with SMTP id t4cs27470pbo; Wed, 6 Apr 2011 18:41:05 -0700 (PDT) Received: by 10.42.60.131 with SMTP id q3mr490120ich.58.1302140463916; Wed, 06 Apr 2011 18:41:03 -0700 (PDT) Received: from VA3EHSOBE008.bigfish.com (va3ehsobe001.messaging.microsoft.com [216.32.180.11]) by mx.google.com with ESMTPS id un6si2996809icb.48.2011.04.06.18.41.02 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 06 Apr 2011 18:41:03 -0700 (PDT) Received-SPF: neutral (google.com: 216.32.180.11 is neither permitted nor denied by best guess record for domain of R65073@freescale.com) client-ip=216.32.180.11; Authentication-Results: mx.google.com; spf=neutral (google.com: 216.32.180.11 is neither permitted nor denied by best guess record for domain of R65073@freescale.com) smtp.mail=R65073@freescale.com Received: from mail42-va3-R.bigfish.com (10.7.14.236) by VA3EHSOBE008.bigfish.com (10.7.40.28) with Microsoft SMTP Server id 14.1.225.8; Thu, 7 Apr 2011 01:41:01 +0000 Received: from mail42-va3 (localhost.localdomain [127.0.0.1]) by mail42-va3-R.bigfish.com (Postfix) with ESMTP id 75EA81A300AB; Thu, 7 Apr 2011 01:41:01 +0000 (UTC) X-SpamScore: 1 X-BigFish: VS1(z37d4lzbb2cKzz1202hzz8275dhz2dh2a8h668h839h62h) X-Spam-TCS-SCL: 1:0 X-Forefront-Antispam-Report: KIP:(null); UIP:(null); IPVD:NLI; H:mail.freescale.net; RD:none; EFVD:NLI Received: from mail42-va3 (localhost.localdomain [127.0.0.1]) by mail42-va3 (MessageSwitch) id 1302140461342836_3444; Thu, 7 Apr 2011 01:41:01 +0000 (UTC) Received: from VA3EHSMHS007.bigfish.com (unknown [10.7.14.245]) by mail42-va3.bigfish.com (Postfix) with ESMTP id 3949011D8051; Thu, 7 Apr 2011 01:41:01 +0000 (UTC) Received: from mail.freescale.net (70.37.183.190) by VA3EHSMHS007.bigfish.com (10.7.99.17) with Microsoft SMTP Server (TLS) id 14.1.225.8; Thu, 7 Apr 2011 01:40:59 +0000 Received: from az33smr02.freescale.net (10.64.34.200) by 039-SN1MMR1-001.039d.mgd.msft.net (10.84.1.13) with Microsoft SMTP Server id 14.1.270.2; Wed, 6 Apr 2011 20:40:49 -0500 Received: from S2100-06.ap.freescale.net (S2100-06.ap.freescale.net [10.192.242.125]) by az33smr02.freescale.net (8.13.1/8.13.0) with ESMTP id p371eka0020795; Wed, 6 Apr 2011 20:40:47 -0500 (CDT) From: Shawn Guo To: CC: , , Shawn Guo , Shawn Guo Subject: [PATCH] LINARO: Build .dtb files for packaging Date: Thu, 7 Apr 2011 09:42:50 +0800 Message-ID: <1302140570-24121-1-git-send-email-shawn.guo@freescale.com> X-Mailer: git-send-email 1.7.1 MIME-Version: 1.0 X-OriginatorOrg: freescale.com From: Shawn Guo Signed-off-by: Shawn Guo --- Hi John, After pulling the latest bits from Nico's tree, you should be able apply this patch on linux-linaro-natty and get .dtb files built in linux-image-*.deb. Regards, Shawn debian/rules.d/2-binary-arch.mk | 6 ++++++ 1 files changed, 6 insertions(+), 0 deletions(-) diff --git a/debian/rules.d/2-binary-arch.mk b/debian/rules.d/2-binary-arch.mk index 93114b2..815d134 100644 --- a/debian/rules.d/2-binary-arch.mk +++ b/debian/rules.d/2-binary-arch.mk @@ -36,6 +36,7 @@ $(stampdir)/stamp-build-%: prepare-% @echo "Building $*..." $(build_cd) $(kmake) $(build_O) $(conc_level) $(build_image) $(build_cd) $(kmake) $(build_O) $(conc_level) modules + $(build_cd) $(kmake) $(build_O) $(conc_level) dtbs @touch $@ # Install the finished build @@ -71,6 +72,11 @@ endif $(pkgdir)/boot/abi-$(abi_release)-$* install -m600 $(builddir)/build-$*/System.map \ $(pkgdir)/boot/System.map-$(abi_release)-$* + + mkdir -p $(pkgdir)/boot/dt-$(abi_release)-$*/ + install -m600 -D $(builddir)/build-$*/arch/$(build_arch)/boot/*.dtb \ + $(pkgdir)/boot/dt-$(abi_release)-$*/ + ifeq ($(no_dumpfile),) makedumpfile -g $(pkgdir)/boot/vmcoreinfo-$(abi_release)-$* \ -x $(builddir)/build-$*/vmlinux