build system: replace files on UPDATE_IMAGE
So far the build system only added files starting with CBFS_PREFIX/ in the UPDATE_IMAGE configuration, but there are a number of files that exist in the global namespace (eg. config, revision, but also cmos_layout.bin). Now, existing files are removed if necessary. Change-Id: I977ff85fe18115c84268103be72e91ca854e62a4 Signed-off-by: Patrick Georgi <pgeorgi@chromium.org> Reviewed-on: https://review.coreboot.org/12581 Reviewed-by: Timothy Pearson <tpearson@raptorengineeringinc.com> Tested-by: build bot (Jenkins) Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net> Tested-by: Raptor Engineering Automated Test Stand <noreply@raptorengineeringinc.com> Tested-by: BSI firmware lab <coreboot-labor@bsi.bund.de>
This commit is contained in:
parent
d9c193d8b3
commit
89b4abdf80
|
@ -626,10 +626,9 @@ prebuilt-files = $(foreach file,$(cbfs-files), $(call extract_nth,1,$(file)))
|
||||||
# Add all cbfs files to image of the form: CONFIG_CBFS_PREFIX/<filename>
|
# Add all cbfs files to image of the form: CONFIG_CBFS_PREFIX/<filename>
|
||||||
prebuild-files = \
|
prebuild-files = \
|
||||||
$(foreach file,$(cbfs-files), \
|
$(foreach file,$(cbfs-files), \
|
||||||
$(if $(filter $(CONFIG_CBFS_PREFIX)/%,\
|
$(CBFSTOOL) $@.tmp remove -n $(call extract_nth,2,$(file)) 2>/dev/null ; \
|
||||||
$(call extract_nth,2,$(file))), \
|
|
||||||
$(if $(call extract_nth,6,$(file)),$(cbfs-add-cmd) -a $(call extract_nth,6,$(file)) &&,\
|
$(if $(call extract_nth,6,$(file)),$(cbfs-add-cmd) -a $(call extract_nth,6,$(file)) &&,\
|
||||||
$(cbfs-add-cmd) $(if $(call extract_nth,5,$(file)),-b $(call extract_nth,5,$(file))) &&)))
|
$(cbfs-add-cmd) $(if $(call extract_nth,5,$(file)),-b $(call extract_nth,5,$(file))) &&))
|
||||||
|
|
||||||
.PHONY: $(obj)/coreboot.pre1
|
.PHONY: $(obj)/coreboot.pre1
|
||||||
$(obj)/coreboot.pre1: $$(prebuilt-files) $(CBFSTOOL)
|
$(obj)/coreboot.pre1: $$(prebuilt-files) $(CBFSTOOL)
|
||||||
|
|
Loading…
Reference in New Issue