Makefile: Avoid FORCE with ESL

We don't need to force building of the ESL dtsi or capsule file if they
already exist. Drop the FORCE dependencies.

Signed-off-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
Simon Glass
2025-09-09 06:10:53 -06:00
parent 6247067f46
commit 7738c4c2d7

View File

@@ -409,7 +409,7 @@ capsule_esl_dtsi=.capsule_esl.dtsi
quiet_cmd_capsule_esl_gen = ESL $@
cmd_capsule_esl_gen = cert-to-efi-sig-list $< $@
$(obj)/capsule_esl_file: $(capsule_crt_file) FORCE
$(obj)/capsule_esl_file: $(capsule_crt_file)
ifeq ($(CONFIG_EFI_CAPSULE_CRT_FILE),"")
$(error "CONFIG_EFI_CAPSULE_CRT_FILE is empty, EFI capsule authentication \
public key must be specified when CONFIG_EFI_CAPSULE_AUTHENTICATE is enabled")
@@ -421,7 +421,7 @@ quiet_cmd_capsule_dtsi_gen = CAPSULE $@
cmd_capsule_dtsi_gen = \
$(shell sed "s:ESL_BIN_FILE:$(abspath $<):" $(capsule_esl_input_file) > $@)
$(obj)/$(capsule_esl_dtsi): $(obj)/capsule_esl_file FORCE
$(obj)/$(capsule_esl_dtsi): $(obj)/capsule_esl_file
$(call cmd,capsule_dtsi_gen)
dtsi_include_list_deps := $(addprefix $(u_boot_dtsi_loc),$(subst $(quote),,$(dtsi_include_list)))