From 45eda81ccc32dc856fd8b76b286055899d19ac89 Mon Sep 17 00:00:00 2001 From: Piotr Kubik Date: Mon, 4 Dec 2023 16:35:12 +0100 Subject: [PATCH] libdsl: remove CONFIG_BCM_CHIP_ID Use CONFIG_TARGET_SUBTARGET variable that already contains CHIP_ID. This change will have no effect until following workaround is not fixed: 69f40124fa40 ("libdsl: define CONFIG_VDSL_SUPPORTED explicitly") --- libdsl/Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libdsl/Makefile b/libdsl/Makefile index 5c8a3cedc..f5b5abefc 100644 --- a/libdsl/Makefile +++ b/libdsl/Makefile @@ -24,8 +24,8 @@ include $(INCLUDE_DIR)/package.mk ifeq ($(CONFIG_TARGET_brcmbca),y) TARGET_PLATFORM=BROADCOM - CHIP_ID=$(patsubst "%",%,$(CONFIG_BCM_CHIP_ID)) - TARGET_CFLAGS +=-DIOPSYS_BROADCOM -DCHIP_$(CHIP_ID) -DCONFIG_BCM9$(CHIP_ID) \ + CHIP_ID=$(subst BCM,,$(call toupper,$(patsubst "%",%,$(CONFIG_TARGET_SUBTARGET)))) + TARGET_CFLAGS +=-DIOPSYS_BROADCOM -DCHIP_$(CHIP_ID) -DCONFIG_BCM$(CHIP_ID) \ -I$(STAGING_DIR)/usr/include/bcm963xx/bcmdrivers/opensource/include/bcm963xx \ -I$(STAGING_DIR)/usr/include/bcm963xx/userspace/public/include else ifeq ($(CONFIG_TARGET_x86),y)