aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorDavid Woodhouse <dwmw2@infradead.org>2008-05-29 04:01:51 -0400
committerDavid Woodhouse <David.Woodhouse@intel.com>2008-07-10 09:47:34 -0400
commit88ecf814c47f577248751ddbe9626d98aeef5783 (patch)
treef289bb81a8ec81dbe82fbc314f39a07f8df1d562 /Makefile
parentd172e7f5c67f2d41f453c7aa83d3bdb405ef8ba5 (diff)
firmware: Add firmware installation to modules_install, add firmware_install
For 'make modules_install', install any firmware required by the modules which are being installed. Also add a 'make firmware_install' target which doesn't depend on the configuration, but installs _all_ available in-kernel-tree firmware into $(INSTALL_FW_PATH), which defaults to /lib/firmware. This is intended for distributors to make arch-independent (and config-independent) packages containing firmware. Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile13
1 files changed, 13 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index f398cffa6c07..bd2aa14f1e77 100644
--- a/Makefile
+++ b/Makefile
@@ -995,6 +995,16 @@ depend dep:
995 @echo '*** Warning: make $@ is unnecessary now.' 995 @echo '*** Warning: make $@ is unnecessary now.'
996 996
997# --------------------------------------------------------------------------- 997# ---------------------------------------------------------------------------
998# Firmware install
999INSTALL_FW_PATH=$(INSTALL_MOD_PATH)/lib/firmware
1000export INSTALL_FW_PATH
1001
1002PHONY += firmware_install
1003firmware_install: FORCE
1004 @mkdir -p $(objtree)/firmware
1005 $(Q)$(MAKE) -f $(srctree)/scripts/Makefile.fwinst obj=firmware __fw_install
1006
1007# ---------------------------------------------------------------------------
998# Kernel headers 1008# Kernel headers
999INSTALL_HDR_PATH=$(objtree)/usr 1009INSTALL_HDR_PATH=$(objtree)/usr
1000export INSTALL_HDR_PATH 1010export INSTALL_HDR_PATH
@@ -1080,6 +1090,7 @@ _modinst_:
1080# boot script depmod is the master version. 1090# boot script depmod is the master version.
1081PHONY += _modinst_post 1091PHONY += _modinst_post
1082_modinst_post: _modinst_ 1092_modinst_post: _modinst_
1093 $(Q)$(MAKE) -f $(srctree)/scripts/Makefile.fwinst obj=firmware __fw_modinst
1083 $(call cmd,depmod) 1094 $(call cmd,depmod)
1084 1095
1085else # CONFIG_MODULES 1096else # CONFIG_MODULES
@@ -1197,6 +1208,8 @@ help:
1197 @echo '* vmlinux - Build the bare kernel' 1208 @echo '* vmlinux - Build the bare kernel'
1198 @echo '* modules - Build all modules' 1209 @echo '* modules - Build all modules'
1199 @echo ' modules_install - Install all modules to INSTALL_MOD_PATH (default: /)' 1210 @echo ' modules_install - Install all modules to INSTALL_MOD_PATH (default: /)'
1211 @echo ' firmware_install- Install all firmware to INSTALL_FW_PATH'
1212 @echo ' (default: $$(INSTALL_MOD_PATH)/lib/firmware)'
1200 @echo ' dir/ - Build all files in dir and below' 1213 @echo ' dir/ - Build all files in dir and below'
1201 @echo ' dir/file.[ois] - Build specified target only' 1214 @echo ' dir/file.[ois] - Build specified target only'
1202 @echo ' dir/file.ko - Build module including final link' 1215 @echo ' dir/file.ko - Build module including final link'