From 0f341dfdd3e6de3c0a137dae8bbe2223e817c901 Mon Sep 17 00:00:00 2001 From: Joel Challis Date: Fri, 8 Dec 2023 09:55:24 +0000 Subject: [PATCH] Fix TARGET when using converters (#22591) --- builddefs/converters.mk | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/builddefs/converters.mk b/builddefs/converters.mk index a3548afd60..96c8656b25 100644 --- a/builddefs/converters.mk +++ b/builddefs/converters.mk @@ -25,7 +25,9 @@ ifneq ($(CONVERT_TO),) -include $(CONVERTER)/pre_converter.mk PLATFORM_KEY = $(shell echo $(CONVERTER) | cut -d "/" -f2) - TARGET := $(TARGET)_$(CONVERT_TO) + + # force setting as value can be from environment + override TARGET := $(TARGET)_$(CONVERT_TO) # Configure any defaults OPT_DEFS += -DCONVERT_TO_$(shell echo $(CONVERT_TO) | tr '[:lower:]' '[:upper:]')