From patchwork Thu Apr 14 20:58:56 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Grant Likely X-Patchwork-Id: 1031 Return-Path: Delivered-To: unknown Received: from imap.gmail.com (74.125.159.109) by localhost6.localdomain6 with IMAP4-SSL; 08 Jun 2011 14:48:27 -0000 Delivered-To: patches@linaro.org Received: by 10.68.59.138 with SMTP id z10cs90960pbq; Thu, 14 Apr 2011 13:59:01 -0700 (PDT) Received: by 10.91.15.5 with SMTP id s5mr2117319agi.11.1302814741190; Thu, 14 Apr 2011 13:59:01 -0700 (PDT) Received: from mail-yi0-f50.google.com (mail-yi0-f50.google.com [209.85.218.50]) by mx.google.com with ESMTPS id f10si4845167anh.183.2011.04.14.13.58.59 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 14 Apr 2011 13:59:00 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.218.50 is neither permitted nor denied by best guess record for domain of grant.likely@secretlab.ca) client-ip=209.85.218.50; Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.218.50 is neither permitted nor denied by best guess record for domain of grant.likely@secretlab.ca) smtp.mail=grant.likely@secretlab.ca Received: by yie30 with SMTP id 30so2504603yie.37 for ; Thu, 14 Apr 2011 13:58:59 -0700 (PDT) Received: by 10.42.159.199 with SMTP id m7mr1788870icx.78.1302814738455; Thu, 14 Apr 2011 13:58:58 -0700 (PDT) Received: from localhost (S01060002b3d79728.cg.shawcable.net [70.72.87.49]) by mx.google.com with ESMTPS id d9sm1424742ibb.19.2011.04.14.13.58.57 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 14 Apr 2011 13:58:58 -0700 (PDT) Sender: Grant Likely Received: from [127.0.1.1] (localhost [127.0.0.1]) by localhost (Postfix) with ESMTP id 6493D182DD8; Thu, 14 Apr 2011 14:58:56 -0600 (MDT) Subject: [PATCH] arm/dt: Fix broken dtbs rule. To: nicolas.pitre@linaro.org, shawn.guo@linaro.org, linaro-kernel@lists.linaro.org, patches@linaro.org From: Grant Likely Cc: Andy Green Date: Thu, 14 Apr 2011 14:58:56 -0600 Message-ID: <20110414205849.10624.31814.stgit@ponder> User-Agent: StGit/0.15 MIME-Version: 1.0 On recent make, commit 1449fb96, "arm/dt: Add a make rule to build dtb for enabled boards" breaks build of the kernel immediately: /projects/linaro/linux-2.6/arch/arm/Makefile:292: *** mixed implicit and normal rules. Stop. > $ rpm -q make > make-3.82-4.fc15.x86_64 > > ''The previous behavior of mixing implicit and pattern rules in one line > like that was never supported or documented, but due to a "hole" in the > parser it worked for certain specific cases (for example, reversing that > line so the pattern comes first would not work, nor would adding extra > explicit targets after the pattern target). > > In 3.82, the parser was tightened in this respect and that "hole" was > closed, hence you see this error.'' This patch splits the rule to fix the bug. Reported-by: Andy Green Signed-off-by: Grant Likely --- arch/arm/Makefile | 6 +++++- 1 files changed, 5 insertions(+), 1 deletions(-) diff --git a/arch/arm/Makefile b/arch/arm/Makefile index 1be856a..4570ca7 100644 --- a/arch/arm/Makefile +++ b/arch/arm/Makefile @@ -289,7 +289,10 @@ zImage Image xipImage bootpImage uImage: vmlinux zinstall uinstall install: vmlinux $(Q)$(MAKE) $(build)=$(boot) MACHINE=$(MACHINE) $@ -dtbs %.dtb: +%.dtb: + $(Q)$(MAKE) $(build)=$(boot) MACHINE=$(MACHINE) $(boot)/$@ + +dtbs: $(Q)$(MAKE) $(build)=$(boot) MACHINE=$(MACHINE) $(boot)/$@ # We use MRPROPER_FILES and CLEAN_FILES now @@ -308,6 +311,7 @@ define archhelp echo ' uImage - U-Boot wrapped zImage' echo ' bootpImage - Combined zImage and initial RAM disk' echo ' (supply initrd image via make variable INITRD=)' + echo ' dtbs - Build device tree blobs for enabled boards' echo ' install - Install uncompressed kernel' echo ' zinstall - Install compressed kernel' echo ' uinstall - Install U-Boot wrapped compressed kernel'