]> git.baikalelectronics.ru Git - kernel.git/commit
firmware: fix directory creation rule matching with make 3.80
authorMark Asselstine <mark.asselstine@windriver.com>
Wed, 19 Sep 2012 20:30:44 +0000 (16:30 -0400)
committerMichal Marek <mmarek@suse.cz>
Fri, 21 Sep 2012 11:15:42 +0000 (13:15 +0200)
commit76bdd3456eb04da9e09ee433323a52e719eeb2cc
treede050b1e8e17c9fdfb5cfb3e95f5dfa45b18494c
parente509ec0394af4ea69f45edda12ce48db23108ae8
firmware: fix directory creation rule matching with make 3.80

Since make 3.80 doesn't support secondary expansion it uses a fallback
rule to create firmware directories which is matched after primary
expansion of the $(installed-fw) rule's prerequisite. Commit
e509ec0394af [firmware: fix directory creation rule matching with make
3.82] changed the expression generated after primary expansion such
that the fallback was not matched. Updating the fallback rule to match
the new look primary expansion is not an option for various reasons.

The trailing slash added here to $(INSTALL_FW_PATH)/. while defining
installed-fw-dirs fixes builds with make 3.82 since this will provide
a matching rule for $(INSTALL_FW_PATH)/$$(dir %) when % is in the base
firmware directory (ie. $(dir %) gives './'). Versions of make prior
to 3.82 will strip this trailing slash along with the one generated by
$(dir %) when % is in the base firmware directory and as such continue
to function as before.

Signed-off-by: Mark Asselstine <mark.asselstine@windriver.com>
Tested-by: Jan Beulich <jbeulich@suse.com>
Signed-off-by: Michal Marek <mmarek@suse.cz>
scripts/Makefile.fwinst