blob: 003e9f66d18f3b4e13905f238b065c74414bdbbe [file] [log] [blame]
Chris Packham90b4a002019-04-13 20:21:18 +12001# SPDX-License-Identifier: GPL-2.0+
2
3obj-y := db-88f6281-bp.o
4extra-y := kwbimage.cfg
5
6quiet_cmd_sed = SED $@
Bin Mengdf4019a2019-10-28 07:25:01 -07007 cmd_sed = sed $(SEDFLAGS_$(@F)) $< >$(dir $@)$(@F)
Chris Packham90b4a002019-04-13 20:21:18 +12008
9SEDFLAGS_kwbimage.cfg = -e "s/^\#@BOOT_FROM.*/BOOT_FROM $(if $(CONFIG_CMD_NAND),nand,spi)/"
Bin Mengdf4019a2019-10-28 07:25:01 -070010$(obj)/kwbimage.cfg: $(src)/kwbimage.cfg.in include/autoconf.mk \
Chris Packham90b4a002019-04-13 20:21:18 +120011 include/config/auto.conf
12 $(call if_changed,sed)