summaryrefslogtreecommitdiff
path: root/scripts/Makefile.fwinst
blob: f72355e0ad2242111df31f660be02f181f7e40a8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
# ==========================================================================
# Installing firmware
#
# We don't include the .config, so all firmware files are in $(fw-shipped-)
# rather than in $(fw-shipped-y) or $(fw-shipped-n).
# ==========================================================================

INSTALL := install
src := $(obj)

include scripts/Kbuild.include 
include $(srctree)/$(obj)/Makefile

include scripts/Makefile.host

installed-fw := $(addprefix $(INSTALL_FW_PATH)/,$(fw-shipped-))
installed-fw-dirs := $(sort $(dir $(installed-fw)))

quiet_cmd_install = INSTALL $(subst $(srctree)/,,$@)
      cmd_install = $(INSTALL) -m0644 $< $@

$(installed-fw-dirs):
	$(call cmd,mkdir)

$(installed-fw): $(INSTALL_FW_PATH)/%: $(obj)/% | $(INSTALL_FW_PATH)/$$(dir %)/
	$(call cmd,install)

.PHONY: __fw_install FORCE
__fw_install: $(installed-fw)

FORCE: