diff options
Diffstat (limited to 'src/soc/intel/common/block/cse/Makefile.mk')
-rw-r--r-- | src/soc/intel/common/block/cse/Makefile.mk | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/soc/intel/common/block/cse/Makefile.mk b/src/soc/intel/common/block/cse/Makefile.mk index d41d735462..9196cf8031 100644 --- a/src/soc/intel/common/block/cse/Makefile.mk +++ b/src/soc/intel/common/block/cse/Makefile.mk @@ -91,6 +91,7 @@ ifeq ($(CONFIG_SOC_INTEL_CSE_LITE_COMPRESS_ME_RW),y) $(CSE_LITE_ME_RW)-compression := LZMA endif +ifeq ($(CONFIG_SOC_INTEL_CSE_RW_VERSION),"") INPUT_FILE := $(call strip_quotes,$(CONFIG_SOC_INTEL_CSE_RW_FILE)) TEMP_FILE := $(shell mktemp) OFFSETS := 16 18 20 22 # Offsets for CSE version components @@ -105,6 +106,10 @@ $(obj)/cse_rw.version: rm -f $(TEMP_FILE) $(eval CSE_RW_CBFS_VERSION := $(shell printf "%d.%d.%d.%d" $(CSE_VERSION_MAJOR)$(CSE_VERSION_MINOR)$(CSE_VERSION_HOTFIX)$(CSE_VERSION_BUILD))) @echo '$(CSE_RW_CBFS_VERSION)' > $@ +else +$(obj)/cse_rw.version: + @echo '$(call strip_quotes,$(CONFIG_SOC_INTEL_CSE_RW_VERSION))' > $@ +endif CSE_RW_VERSION = $(call strip_quotes,$(CONFIG_SOC_INTEL_CSE_RW_VERSION_CBFS_NAME)) regions-for-file-$(CSE_RW_VERSION) = FW_MAIN_A,FW_MAIN_B |