From db49a6b31a046c233d5c37ec5e07eb286ec9fc2e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89milie=20Feral?= Date: Thu, 2 May 2019 17:12:16 +0200 Subject: [PATCH] Build: error if building bench_files without the right flags --- scripts/targets.device.mak | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/scripts/targets.device.mak b/scripts/targets.device.mak index 7f4717507..9d67ec46a 100644 --- a/scripts/targets.device.mak +++ b/scripts/targets.device.mak @@ -88,7 +88,12 @@ endif .PRECIOUS: $(BUILD_DIR)/benchFlash.bin $(BUILD_DIR)/benchRAM.bin $(BUILD_DIR)/epsilon.internal.bin $(BUILD_DIR)/epsilon.external.bin .PHONY: $(BUILD_DIR)/bench_files +ifeq ($(EPSILON_USB_DFU_XIP)$(EPSILON_DEVICE_BENCH),11) $(BUILD_DIR)/bench_files: $(BUILD_DIR)/epsilon_two_binaries $(BUILD_DIR)/benchRAM.bin $(BUILD_DIR)/benchFlash.bin @echo "Building epsilon.internal.bin, epsilon.external.bin, benchRAM.bin and benchFlash.bin" +else +$(BUILD_DIR)/bench_files: + @echo "Error: bench_files require EPSILON_DEVICE_BENCH=1 EPSILON_USB_DFU_XIP=1" +endif include scripts/targets.device.$(MODEL).mak