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 $@ |
Bin Meng | df4019a | 2019-10-28 07:25:01 -0700 | [diff] [blame] | 7 | cmd_sed = sed $(SEDFLAGS_$(@F)) $< >$(dir $@)$(@F) |
Chris Packham | 90b4a00 | 2019-04-13 20:21:18 +1200 | [diff] [blame] | 8 | |
| 9 | SEDFLAGS_kwbimage.cfg = -e "s/^\#@BOOT_FROM.*/BOOT_FROM $(if $(CONFIG_CMD_NAND),nand,spi)/" |
Bin Meng | df4019a | 2019-10-28 07:25:01 -0700 | [diff] [blame] | 10 | $(obj)/kwbimage.cfg: $(src)/kwbimage.cfg.in include/autoconf.mk \ |
Chris Packham | 90b4a00 | 2019-04-13 20:21:18 +1200 | [diff] [blame] | 11 | include/config/auto.conf |
| 12 | $(call if_changed,sed) |