From 754158b7a35fc5163f0290132278d6bfeaafe03c Mon Sep 17 00:00:00 2001 From: mikee47 Date: Sun, 23 Jun 2024 15:18:40 +0100 Subject: [PATCH] Fix linkage --- Sming/Arch/Esp8266/Components/esp8266/component.mk | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Sming/Arch/Esp8266/Components/esp8266/component.mk b/Sming/Arch/Esp8266/Components/esp8266/component.mk index cb733c3006..a977b3e0a8 100644 --- a/Sming/Arch/Esp8266/Components/esp8266/component.mk +++ b/Sming/Arch/Esp8266/Components/esp8266/component.mk @@ -14,11 +14,11 @@ COMPONENT_DEPENDS += esp-lwip endif -COMPONENT_VARS += ENABLE_CUSTOM_PHY +COMPONENT_RELINK_VARS += ENABLE_CUSTOM_PHY ENABLE_CUSTOM_PHY ?= 0 ifeq ($(ENABLE_CUSTOM_PHY),1) - CFLAGS += -DENABLE_CUSTOM_PHY=1 - LDFLAGS += -Wl,-wrap,register_chipv6_phy -u custom_register_chipv6_phy -u get_adc_mode + COMPONENT_CXXFLAGS += -DENABLE_CUSTOM_PHY=1 + LDFLAGS += $(call Wrap,register_chipv6_phy) endif