aboutsummaryrefslogtreecommitdiffstats
path: root/firmware
diff options
context:
space:
mode:
authorDavid Woodhouse <dwmw2@infradead.org>2008-06-25 08:56:07 -0400
committerDavid Woodhouse <David.Woodhouse@intel.com>2008-07-10 09:47:20 -0400
commitd172e7f5c67f2d41f453c7aa83d3bdb405ef8ba5 (patch)
tree43d926fd28d710d75a9364430af24ca243b0b122 /firmware
parent4d2acfbfdf68257e846aaa355edd10fc35ba0feb (diff)
firmware: Add CONFIG_FIRMWARE_IN_KERNEL option.
This will control whether we build firmware into the kernel image for _every_ driver which we convert to request_firmware(), to avoid a proliferation of 'CONFIG_XXX_FIRMWARE' options for each one. Default to 'y' for now, which is the wrong thing to do but people seem to be insisting on it and refusing to even review patches until it's done. And it does preserve the existing behaviour for built-in drivers. Signed-off-by: David Woodhouse <dwmw2@infradead.org>
Diffstat (limited to 'firmware')
-rw-r--r--firmware/Makefile5
1 files changed, 5 insertions, 0 deletions
diff --git a/firmware/Makefile b/firmware/Makefile
index e69461f9362..cc25f5600d5 100644
--- a/firmware/Makefile
+++ b/firmware/Makefile
@@ -9,6 +9,11 @@ fwabs := $(addprefix $(srctree)/,$(filter-out /%,$(fwdir)))$(filter /%,$(fwdir))
9 9
10fw-external-y := $(subst ",,$(CONFIG_EXTRA_FIRMWARE)) 10fw-external-y := $(subst ",,$(CONFIG_EXTRA_FIRMWARE))
11 11
12# If CONFIG_FIRMWARE_IN_KERNEL is not set, then don't include any firmware
13ifneq ($(CONFIG_FIRMWARE_IN_KERNEL),y)
14fw-shipped-y :=
15endif
16
12firmware-y := $(fw-external-y) $(fw-shipped-y) 17firmware-y := $(fw-external-y) $(fw-shipped-y)
13firmware-dirs := $(sort $(patsubst %,$(objtree)/$(obj)/%/,$(dir $(firmware-y) $(fw-shipped-)))) 18firmware-dirs := $(sort $(patsubst %,$(objtree)/$(obj)/%/,$(dir $(firmware-y) $(fw-shipped-))))
14 19