Chris Packham | 90b4a00 | 2019-04-13 20:21:18 +1200 | [diff] [blame] | 1 | # SPDX-License-Identifier: GPL-2.0+ |
2 | |||||
3 | obj-y := db-88f6281-bp.o | ||||
4 | extra-y := kwbimage.cfg | ||||
5 | |||||
6 | quiet_cmd_sed = SED $@ | ||||
7 | cmd_sed = sed $(SEDFLAGS_$(@F)) $< >$(dir $<)$(@F) | ||||
8 | |||||
9 | SEDFLAGS_kwbimage.cfg = -e "s/^\#@BOOT_FROM.*/BOOT_FROM $(if $(CONFIG_CMD_NAND),nand,spi)/" | ||||
10 | $(src)/kwbimage.cfg: $(src)/kwbimage.cfg.in include/autoconf.mk \ | ||||
11 | include/config/auto.conf | ||||
12 | $(call if_changed,sed) |