@@ -303,36 +303,36 @@ endef
303303# Setup the toolchain variables
304304define SetupToolchain
305305 ifeq ($$($1_TARGET_TYPE), BUILD)
306- $$(call SetIfEmpty, $1_CC, $(BUILD_CC))
307- $$(call SetIfEmpty, $1_CXX, $(BUILD_CXX))
308- $$(call SetIfEmpty, $1_AR, $(BUILD_AR))
309- $$(call SetIfEmpty, $1_LIB, $(BUILD_LIB))
310- $$(call SetIfEmpty, $1_AS, $(BUILD_AS))
311- $$(call SetIfEmpty, $1_OBJCOPY, $(BUILD_OBJCOPY))
312- $$(call SetIfEmpty, $1_STRIP, $(BUILD_STRIP))
313- $$(call SetIfEmpty, $1_SYSROOT_CFLAGS, $(BUILD_SYSROOT_CFLAGS))
314- $$(call SetIfEmpty, $1_SYSROOT_LDFLAGS, $(BUILD_SYSROOT_LDFLAGS))
306+ $$(call SetIfEmpty, $1_CC, $$ (BUILD_CC))
307+ $$(call SetIfEmpty, $1_CXX, $$ (BUILD_CXX))
308+ $$(call SetIfEmpty, $1_AR, $$ (BUILD_AR))
309+ $$(call SetIfEmpty, $1_LIB, $$ (BUILD_LIB))
310+ $$(call SetIfEmpty, $1_AS, $$ (BUILD_AS))
311+ $$(call SetIfEmpty, $1_OBJCOPY, $$ (BUILD_OBJCOPY))
312+ $$(call SetIfEmpty, $1_STRIP, $$ (BUILD_STRIP))
313+ $$(call SetIfEmpty, $1_SYSROOT_CFLAGS, $$ (BUILD_SYSROOT_CFLAGS))
314+ $$(call SetIfEmpty, $1_SYSROOT_LDFLAGS, $$ (BUILD_SYSROOT_LDFLAGS))
315315 ifeq ($$($1_LINK_TYPE), C++)
316- $$(call SetIfEmpty, $1_LD, $(BUILD_LDCXX))
316+ $$(call SetIfEmpty, $1_LD, $$ (BUILD_LDCXX))
317317 else
318- $$(call SetIfEmpty, $1_LD, $(BUILD_LD))
318+ $$(call SetIfEmpty, $1_LD, $$ (BUILD_LD))
319319 endif
320320 else
321- $$(call SetIfEmpty, $1_CC, $(CC))
322- $$(call SetIfEmpty, $1_CXX, $(CXX))
323- $$(call SetIfEmpty, $1_AR, $(AR))
324- $$(call SetIfEmpty, $1_LIB, $(LIB))
325- $$(call SetIfEmpty, $1_AS, $(AS))
326- $$(call SetIfEmpty, $1_MT, $(MT))
327- $$(call SetIfEmpty, $1_RC, $(RC))
328- $$(call SetIfEmpty, $1_OBJCOPY, $(OBJCOPY))
329- $$(call SetIfEmpty, $1_STRIP, $(STRIP))
330- $$(call SetIfEmpty, $1_SYSROOT_CFLAGS, $(SYSROOT_CFLAGS))
331- $$(call SetIfEmpty, $1_SYSROOT_LDFLAGS, $(SYSROOT_LDFLAGS))
321+ $$(call SetIfEmpty, $1_CC, $$ (CC))
322+ $$(call SetIfEmpty, $1_CXX, $$ (CXX))
323+ $$(call SetIfEmpty, $1_AR, $$ (AR))
324+ $$(call SetIfEmpty, $1_LIB, $$ (LIB))
325+ $$(call SetIfEmpty, $1_AS, $$ (AS))
326+ $$(call SetIfEmpty, $1_MT, $$ (MT))
327+ $$(call SetIfEmpty, $1_RC, $$ (RC))
328+ $$(call SetIfEmpty, $1_OBJCOPY, $$ (OBJCOPY))
329+ $$(call SetIfEmpty, $1_STRIP, $$ (STRIP))
330+ $$(call SetIfEmpty, $1_SYSROOT_CFLAGS, $$ (SYSROOT_CFLAGS))
331+ $$(call SetIfEmpty, $1_SYSROOT_LDFLAGS, $$ (SYSROOT_LDFLAGS))
332332 ifeq ($$($1_LINK_TYPE), C++)
333- $$(call SetIfEmpty, $1_LD, $(LDCXX))
333+ $$(call SetIfEmpty, $1_LD, $$ (LDCXX))
334334 else
335- $$(call SetIfEmpty, $1_LD, $(LD))
335+ $$(call SetIfEmpty, $1_LD, $$ (LD))
336336 endif
337337 endif
338338endef
0 commit comments