From patchwork Wed Aug 1 02:56:26 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Shea Levy X-Patchwork-Id: 1262841 Return-Path: X-Original-To: patchwork-linux-kbuild@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork1.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork1.kernel.org (Postfix) with ESMTP id EDFF23FC1A for ; Wed, 1 Aug 2012 02:57:10 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753683Ab2HAC5K (ORCPT ); Tue, 31 Jul 2012 22:57:10 -0400 Received: from hapkido.dreamhost.com ([66.33.216.122]:53929 "EHLO hapkido.dreamhost.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752871Ab2HAC5J (ORCPT ); Tue, 31 Jul 2012 22:57:09 -0400 Received: from homiemail-a52.g.dreamhost.com (caibbdcaaaaf.dreamhost.com [208.113.200.5]) by hapkido.dreamhost.com (Postfix) with ESMTP id 6C0F1DF6A5 for ; Tue, 31 Jul 2012 19:57:09 -0700 (PDT) Received: from homiemail-a52.g.dreamhost.com (localhost [127.0.0.1]) by homiemail-a52.g.dreamhost.com (Postfix) with ESMTP id 4A4126B8264; Tue, 31 Jul 2012 19:56:29 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; c=nofws; d=shealevy.com; h=message-id:date :from:mime-version:to:subject:content-type; q=dns; s= shealevy.com; b=JDMZdrRyWUL58c+UuzVHKxa3jwMSZiHgSFKQqtKJnqsqvL6w sKlLEN74x+dm5t2ox45UlOga4a3cBcPfTMrjfVvSo54VM0/f0vP9uilDqK3g3pOv 6wZvWnTq3j75FfTDwZE7yUT1y/OYAl/mB13bVHzTy0U3wXOyLTeAOCEMntk= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=shealevy.com; h=message-id :date:from:mime-version:to:subject:content-type; s=shealevy.com; bh=7C1GGle9r7zqIG+hCJXjUF9MHeI=; b=BuC7B5bvzRETEGTlePAtztsUcTW2 JQBryO9SqvNQFr4tuCJUQqatRiJHrCW0qOdvLTh5494e7TV+pjnomUHKWkk7HHUb 7kzAVmfOg00T9oIEjQJhYa9gViMTT+jhJWDLnBXT/lryraWhrWUasjsdgTTXMgPZ S70HYwmqDvV4szg= Received: from home.shealevy.com (c-71-232-210-231.hsd1.nh.comcast.net [71.232.210.231]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: shea@shealevy.com) by homiemail-a52.g.dreamhost.com (Postfix) with ESMTPSA id 7DC976B8258; Tue, 31 Jul 2012 19:56:28 -0700 (PDT) Message-ID: <50189ADA.4050009@shealevy.com> Date: Tue, 31 Jul 2012 22:56:26 -0400 From: Shea Levy User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:11.0) Gecko/20120703 Thunderbird/11.0.1 MIME-Version: 1.0 To: "linux-kernel@vger.kernel.org" , Michal Marek , linux-kbuild@vger.kernel.org Subject: [PATCH] Fix firmware installation for images w/o subdirs Sender: linux-kbuild-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kbuild@vger.kernel.org On some setups (probably due to too new a GNU Make), firmware installation fails with *** No rule to make target `lib/firmware/./', needed by `lib/firmware/.fw'. Stop. when a file in the top-level firmware/ directory is needed. Original patch idea by Denys Dmytriyenko, see http://permalink.gmane.org/gmane.linux.embedded.yocto.meta-ti/27 Signed-off-by: Shea Levy --- scripts/Makefile.fwinst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/Makefile.fwinst b/scripts/Makefile.fwinst index 6bf8e87..4d908d1 100644 --- a/scripts/Makefile.fwinst +++ b/scripts/Makefile.fwinst @@ -27,7 +27,7 @@ endif installed-mod-fw := $(addprefix $(INSTALL_FW_PATH)/,$(mod-fw)) installed-fw := $(addprefix $(INSTALL_FW_PATH)/,$(fw-shipped-all)) -installed-fw-dirs := $(sort $(dir $(installed-fw))) $(INSTALL_FW_PATH)/. +installed-fw-dirs := $(sort $(dir $(installed-fw))) $(INSTALL_FW_PATH)/./ # Workaround for make < 3.81, where .SECONDEXPANSION doesn't work. PHONY += $(INSTALL_FW_PATH)/$$(%) install-all-dirs