From patchwork Mon Dec 6 17:36:01 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: 74409 X-Patchwork-Delegate: benh@kernel.crashing.org Return-Path: X-Original-To: patchwork-incoming@ozlabs.org Delivered-To: patchwork-incoming@ozlabs.org Received: from bilbo.ozlabs.org (localhost [127.0.0.1]) by ozlabs.org (Postfix) with ESMTP id F3B7AB7AAC for ; Tue, 7 Dec 2010 04:37:00 +1100 (EST) Received: from mail-iw0-f179.google.com (mail-iw0-f179.google.com [209.85.214.179]) by ozlabs.org (Postfix) with ESMTP id 337BCB713F; Tue, 7 Dec 2010 04:36:22 +1100 (EST) Received: by iwn41 with SMTP id 41so142711iwn.38 for ; Mon, 06 Dec 2010 09:36:21 -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=mDxgtZkw5yNQTKfOy0ImGU6WJXIV6t57FutCSYIasCc=; b=f14sAAbzSzIYj7lE7+S7qpUQJVlfi3v4xdQVBskZr4FUM6KturRax/FQ8pmr+AbvWm cktnzyNuXPi3sdCprIfYO1yKzH+F7Oh+HkRjydyq5/KlEKhb6cda1c9m1Fq5MQ3BDTtl KgZrB48Qgs/VE0flnAX6ooTHg1OhmLlfOqtwE= 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=JWQkJVouX9yQ4cZZfg4nTlBM6nb12PwnROKvAPW89QomJUpjKjtezRae1vBsJxKNOJ pNA06rowR4JVt6wixMk6v9Rk0DYvgM15nqOijq9hPaZn/bj77ux3hQkCQ4LvCKRvPMBv +LZW4wUStOvGyarXNerUzK6TL2aqs0bCrbXwI= Received: by 10.231.32.10 with SMTP id a10mr6181900ibd.183.1291656981367; Mon, 06 Dec 2010 09:36:21 -0800 (PST) Received: from localhost.localdomain (pool-173-50-249-160.ptldor.fios.verizon.net [173.50.249.160]) by mx.google.com with ESMTPS id d21sm5187815ibg.9.2010.12.06.09.36.19 (version=TLSv1/SSLv3 cipher=RC4-MD5); Mon, 06 Dec 2010 09:36:20 -0800 (PST) From: dirk.brandewie@gmail.com To: linux-kernel@vger.kernel.org Subject: [PATCH 3/4] of/powerpc: Use generic rule to build dtb's Date: Mon, 6 Dec 2010 09:36:01 -0800 Message-Id: X-Mailer: git-send-email 1.7.2.3 In-Reply-To: References: Cc: linux-arch@vger.kernel.org, mmarek@suse.cz, microblaze-uclinux@itee.uq.edu.au, devicetree-discuss@lists.ozlabs.org, sodaville@linutronix.de, Dirk Brandewie , linuxppc-dev@lists.ozlabs.org X-BeenThere: linuxppc-dev@lists.ozlabs.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: linuxppc-dev-bounces+patchwork-incoming=ozlabs.org@lists.ozlabs.org Errors-To: linuxppc-dev-bounces+patchwork-incoming=ozlabs.org@lists.ozlabs.org From: Dirk Brandewie Modify arch/powerpc/boot/Makefile to use dtc command in scripts/Makefile.lib Signed-off-by: Dirk Brandewie --- arch/powerpc/boot/Makefile | 8 +++----- 1 files changed, 3 insertions(+), 5 deletions(-) diff --git a/arch/powerpc/boot/Makefile b/arch/powerpc/boot/Makefile index fae8192..3afb33a 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 if_changed,dtc) # If there isn't a platform selected then just strip the vmlinux. ifeq (,$(image-y))