From patchwork Wed Dec 22 19:57:28 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: dirk.brandewie@gmail.com X-Patchwork-Id: 428511 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter1.kernel.org (8.14.4/8.14.3) with ESMTP id oBMJwcxT008588 for ; Wed, 22 Dec 2010 19:58:45 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751756Ab0LVT6L (ORCPT ); Wed, 22 Dec 2010 14:58:11 -0500 Received: from mail-iy0-f174.google.com ([209.85.210.174]:51700 "EHLO mail-iy0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750943Ab0LVT5s (ORCPT ); Wed, 22 Dec 2010 14:57:48 -0500 Received: by mail-iy0-f174.google.com with SMTP id 12so4376816iyi.19 for ; Wed, 22 Dec 2010 11:57:48 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:from:to:cc:subject:date :message-id:x-mailer:in-reply-to:references; bh=UmvDUDQ5xDiSXKAyo8HSSb+ik6CPbTavd3C3jIh9jDQ=; b=ql84Ayrqs0e6Cvr/lZAvlHB6pabOTgoahqxQSODtd6a02ud5q6FjUSoykkPRqqZapr AOt77P9gAAeZyMgyHaJyYASr0+6Go9Ku0ZajRqJcOYTiOjb7qLADA3JmcSxE7KoxZoI9 D2NuTzRPwaZ71S+aP6+cuVP2q6F40Mc64Yb5c= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:cc:subject:date:message-id:x-mailer:in-reply-to:references; b=R03zwwYW6m1VJilnunQUAJMKopvoioasKy+SBJGFw4Uh+31VIFi6eHnNf8j1kxtODR RUyD5oqDxnD+OGSlSOZoAJVyzGYYNUl2d+Exx+AGGuEr5exipdgfcA9YeJ14eE1u8TNB aJTVnQT5DoykJ4XLl8v66tBs/A5GJK+493QH8= Received: by 10.42.229.7 with SMTP id jg7mr7427903icb.211.1293047868179; Wed, 22 Dec 2010 11:57:48 -0800 (PST) Received: from localhost.localdomain (pool-173-50-156-247.ptldor.fios.verizon.net [173.50.156.247]) by mx.google.com with ESMTPS id f7sm6021294icq.17.2010.12.22.11.57.46 (version=TLSv1/SSLv3 cipher=RC4-MD5); Wed, 22 Dec 2010 11:57:47 -0800 (PST) From: dirk.brandewie@gmail.com To: linux-kernel@vger.kernel.org Cc: devicetree-discuss@lists.ozlabs.org, linuxppc-dev@lists.ozlabs.org, microblaze-uclinux@itee.uq.edu.au, linux-arch@vger.kernel.org, mmarek@suse.cz, dirk.brandewie@gmail.com, linux-kbuild@vger.kernel.org Subject: [PATCH 3/4] of/powerpc: Use generic rule to build dtb's Date: Wed, 22 Dec 2010 11:57:28 -0800 Message-Id: <1293047849-26078-4-git-send-email-dirk.brandewie@gmail.com> X-Mailer: git-send-email 1.7.2.3 In-Reply-To: <1293047849-26078-1-git-send-email-dirk.brandewie@gmail.com> References: <1293047849-26078-1-git-send-email-dirk.brandewie@gmail.com> Sender: linux-kbuild-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kbuild@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.3 (demeter1.kernel.org [140.211.167.41]); Wed, 22 Dec 2010 19:58:45 +0000 (UTC) diff --git a/arch/powerpc/boot/Makefile b/arch/powerpc/boot/Makefile index fae8192..96deec6 100644 --- a/arch/powerpc/boot/Makefile +++ b/arch/powerpc/boot/Makefile @@ -35,7 +35,7 @@ endif BOOTCFLAGS += -I$(obj) -I$(srctree)/$(obj) -DTS_FLAGS ?= -p 1024 +DTC_FLAGS ?= -p 1024 $(obj)/4xx.o: BOOTCFLAGS += -mcpu=405 $(obj)/ebony.o: BOOTCFLAGS += -mcpu=405 @@ -332,10 +332,8 @@ $(obj)/treeImage.%: vmlinux $(obj)/%.dtb $(wrapperbits) $(call if_changed,wrap,treeboot-$*,,$(obj)/$*.dtb) # Rule to build device tree blobs -DTC = $(objtree)/scripts/dtc/dtc - -$(obj)/%.dtb: $(dtstree)/%.dts - $(DTC) -O dtb -o $(obj)/$*.dtb -b 0 $(DTS_FLAGS) $(dtstree)/$*.dts +$(obj)/%.dtb: $(src)/dts/%.dts + $(call cmd,dtc) # If there isn't a platform selected then just strip the vmlinux. ifeq (,$(image-y))