firmware: Create directories for external firmware
authorMichal Marek <mmarek@suse.cz>
Tue, 8 Jul 2014 12:38:33 +0000 (14:38 +0200)
committerMichal Marek <mmarek@suse.cz>
Wed, 9 Jul 2014 13:16:35 +0000 (15:16 +0200)
commitdd5a6752ae7df4e0ba6ce3bcd0c3b4489bb3537f
tree4ec2a4aa8c23dcf41a7a62ffbd2510a8e0fe1f29
parentc79624c1a698a82747b1e6fe54cc7effa4c07aa5
firmware: Create directories for external firmware

Commit 5180d5f4 ("firmware: Simplify directory creation") broke
including firmware specified in CONFIG_EXTRA_FIRMWARE:

  MK_FW   firmware/amd-ucode/microcode_amd.bin.gen.S
/bin/sh: firmware/amd-ucode/microcode_amd.bin.gen.S: No such file or directory
...
firmware/Makefile:185: recipe for target
'firmware/amd-ucode/microcode_amd.bin.gen.S' failed

It works with O= builds, because the directory is created by
Makefile.build. Create the directory in firmware/Makefile in non-O
builds.

Reported-and-tested-by: Ronald Uitermark <ronald645@gmail.com>
Reported-and-tested-by: Torsten Kaiser <just.for.lkml@googlemail.com>
Signed-off-by: Michal Marek <mmarek@suse.cz>
firmware/Makefile