diff options
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 15 |
1 files changed, 14 insertions, 1 deletions
@@ -450,7 +450,7 @@ scripts: scripts_basic include/config/auto.conf | |||
450 | 450 | ||
451 | # Objects we will link into vmlinux / subdirs we need to visit | 451 | # Objects we will link into vmlinux / subdirs we need to visit |
452 | init-y := init/ | 452 | init-y := init/ |
453 | drivers-y := drivers/ sound/ | 453 | drivers-y := drivers/ sound/ firmware/ |
454 | net-y := net/ | 454 | net-y := net/ |
455 | libs-y := lib/ | 455 | libs-y := lib/ |
456 | core-y := usr/ | 456 | core-y := usr/ |
@@ -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 | ||
999 | INSTALL_FW_PATH=$(INSTALL_MOD_PATH)/lib/firmware | ||
1000 | export INSTALL_FW_PATH | ||
1001 | |||
1002 | PHONY += firmware_install | ||
1003 | firmware_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 |
999 | INSTALL_HDR_PATH=$(objtree)/usr | 1009 | INSTALL_HDR_PATH=$(objtree)/usr |
1000 | export INSTALL_HDR_PATH | 1010 | export INSTALL_HDR_PATH |
@@ -1080,6 +1090,7 @@ _modinst_: | |||
1080 | # boot script depmod is the master version. | 1090 | # boot script depmod is the master version. |
1081 | PHONY += _modinst_post | 1091 | PHONY += _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 | ||
1085 | else # CONFIG_MODULES | 1096 | else # 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' |