diff options
author | Michal Marek <mmarek@suse.cz> | 2014-07-08 08:38:33 -0400 |
---|---|---|
committer | Michal Marek <mmarek@suse.cz> | 2014-07-09 09:16:35 -0400 |
commit | dd5a6752ae7df4e0ba6ce3bcd0c3b4489bb3537f (patch) | |
tree | 4ec2a4aa8c23dcf41a7a62ffbd2510a8e0fe1f29 /firmware | |
parent | c79624c1a698a82747b1e6fe54cc7effa4c07aa5 (diff) |
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>
Diffstat (limited to 'firmware')
-rw-r--r-- | firmware/Makefile | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/firmware/Makefile b/firmware/Makefile index 5747417069ca..0862d34cf7d1 100644 --- a/firmware/Makefile +++ b/firmware/Makefile | |||
@@ -219,6 +219,12 @@ $(obj)/%.fw: $(obj)/%.H16 $(ihex2fw_dep) | |||
219 | obj-y += $(patsubst %,%.gen.o, $(fw-external-y)) | 219 | obj-y += $(patsubst %,%.gen.o, $(fw-external-y)) |
220 | obj-$(CONFIG_FIRMWARE_IN_KERNEL) += $(patsubst %,%.gen.o, $(fw-shipped-y)) | 220 | obj-$(CONFIG_FIRMWARE_IN_KERNEL) += $(patsubst %,%.gen.o, $(fw-shipped-y)) |
221 | 221 | ||
222 | ifeq ($(KBUILD_SRC),) | ||
223 | # Makefile.build only creates subdirectories for O= builds, but external | ||
224 | # firmware might live outside the kernel source tree | ||
225 | _dummy := $(foreach d,$(addprefix $(obj)/,$(dir $(fw-external-y))), $(shell [ -d $(d) ] || mkdir -p $(d))) | ||
226 | endif | ||
227 | |||
222 | # Remove .S files and binaries created from ihex | 228 | # Remove .S files and binaries created from ihex |
223 | # (during 'make clean' .config isn't included so they're all in $(fw-shipped-)) | 229 | # (during 'make clean' .config isn't included so they're all in $(fw-shipped-)) |
224 | targets := $(fw-shipped-) $(patsubst $(obj)/%,%, \ | 230 | targets := $(fw-shipped-) $(patsubst $(obj)/%,%, \ |