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/ |
@@ -999,6 +999,16 @@ depend dep: | |||
999 | @echo '*** Warning: make $@ is unnecessary now.' | 999 | @echo '*** Warning: make $@ is unnecessary now.' |
1000 | 1000 | ||
1001 | # --------------------------------------------------------------------------- | 1001 | # --------------------------------------------------------------------------- |
1002 | # Firmware install | ||
1003 | INSTALL_FW_PATH=$(INSTALL_MOD_PATH)/lib/firmware | ||
1004 | export INSTALL_FW_PATH | ||
1005 | |||
1006 | PHONY += firmware_install | ||
1007 | firmware_install: FORCE | ||
1008 | @mkdir -p $(objtree)/firmware | ||
1009 | $(Q)$(MAKE) -f $(srctree)/scripts/Makefile.fwinst obj=firmware __fw_install | ||
1010 | |||
1011 | # --------------------------------------------------------------------------- | ||
1002 | # Kernel headers | 1012 | # Kernel headers |
1003 | INSTALL_HDR_PATH=$(objtree)/usr | 1013 | INSTALL_HDR_PATH=$(objtree)/usr |
1004 | export INSTALL_HDR_PATH | 1014 | export INSTALL_HDR_PATH |
@@ -1084,6 +1094,7 @@ _modinst_: | |||
1084 | # boot script depmod is the master version. | 1094 | # boot script depmod is the master version. |
1085 | PHONY += _modinst_post | 1095 | PHONY += _modinst_post |
1086 | _modinst_post: _modinst_ | 1096 | _modinst_post: _modinst_ |
1097 | $(Q)$(MAKE) -f $(srctree)/scripts/Makefile.fwinst obj=firmware __fw_modinst | ||
1087 | $(call cmd,depmod) | 1098 | $(call cmd,depmod) |
1088 | 1099 | ||
1089 | else # CONFIG_MODULES | 1100 | else # CONFIG_MODULES |
@@ -1201,6 +1212,8 @@ help: | |||
1201 | @echo '* vmlinux - Build the bare kernel' | 1212 | @echo '* vmlinux - Build the bare kernel' |
1202 | @echo '* modules - Build all modules' | 1213 | @echo '* modules - Build all modules' |
1203 | @echo ' modules_install - Install all modules to INSTALL_MOD_PATH (default: /)' | 1214 | @echo ' modules_install - Install all modules to INSTALL_MOD_PATH (default: /)' |
1215 | @echo ' firmware_install- Install all firmware to INSTALL_FW_PATH' | ||
1216 | @echo ' (default: $$(INSTALL_MOD_PATH)/lib/firmware)' | ||
1204 | @echo ' dir/ - Build all files in dir and below' | 1217 | @echo ' dir/ - Build all files in dir and below' |
1205 | @echo ' dir/file.[ois] - Build specified target only' | 1218 | @echo ' dir/file.[ois] - Build specified target only' |
1206 | @echo ' dir/file.ko - Build module including final link' | 1219 | @echo ' dir/file.ko - Build module including final link' |