diff mbox

Fix firmware installation for images w/o subdirs

Message ID 663f65e29cc718b63ef0e2a769d03606@shealevy.com (mailing list archive)
State New, archived
Headers show

Commit Message

Shea Levy Aug. 1, 2012, 2:59 a.m. UTC
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/<file>.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 <shea@shealevy.com>
---
  scripts/Makefile.fwinst | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Shea Levy Aug. 1, 2012, 3 a.m. UTC | #1
On 31.07.2012 22:59, shea@shealevy.com wrote:
> 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/<file>.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 <shea@shealevy.com>
> ---
>  scripts/Makefile.fwinst | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)

Whoops, sorry for the double post.
--
To unsubscribe from this list: send the line "unsubscribe linux-kbuild" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
diff mbox

Patch

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