diff options
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/Makefile.fwinst | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/scripts/Makefile.fwinst b/scripts/Makefile.fwinst index 6bf8e87f1dcf..689204f2faa9 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 @@ -36,6 +36,14 @@ $(INSTALL_FW_PATH)/$$(%): install-all-dirs install-all-dirs: $(installed-fw-dirs) @true + +# hack for make-3.82 support; without this (admittedly daft) rule, +# firmware installation fails since it can't find a matching +# rule for $(INSTALL_FW_PATH/.. +# leave the hack in place till the root cause is fully found, without +# it make-3.82 cannot be used. +$(INSTALL_FW_PATH)/./: $(INSTALL_FW_PATH) + quiet_cmd_install = INSTALL $(subst $(srctree)/,,$@) cmd_install = $(INSTALL) -m0644 $< $@ |