From 3ed8d22327f7403a041ebdb40def6b762955619b Mon Sep 17 00:00:00 2001 From: Antonio Aloisio Date: Fri, 15 Mar 2024 08:36:04 +0100 Subject: [PATCH] fix --- .../u-boot-2019.07/drivers/net/bcmbca/rtk/Makefile | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/release/src-rt-5.04axhnd.675x/bootloaders/u-boot-2019.07/drivers/net/bcmbca/rtk/Makefile b/release/src-rt-5.04axhnd.675x/bootloaders/u-boot-2019.07/drivers/net/bcmbca/rtk/Makefile index ed301481f46..43553c75c73 100644 --- a/release/src-rt-5.04axhnd.675x/bootloaders/u-boot-2019.07/drivers/net/bcmbca/rtk/Makefile +++ b/release/src-rt-5.04axhnd.675x/bootloaders/u-boot-2019.07/drivers/net/bcmbca/rtk/Makefile @@ -1,15 +1,7 @@ obj-y += RTK_OBJS.o -# HACK: BUILD_NAME and MODEL are lacks of '-'. -# Check if BUILD_NAME contains RTAX58U_V2 -ifeq ($(findstring RTAX58U_V2,$(BUILD_NAME)),RTAX58U_V2) - MODEL_X = rt-ax58u_v2 - $(info "Selected $(MODEL_X)") -else - # Otherwise, exit with an error message - $(error Build name not defined) -endif +BUILD_NAME_LC := $(shell echo $(BUILD_NAME) | tr '[:upper:]' '[:lower:]') RTK_OBJS-objs += RTK_OBJS_preb.o $(obj)/RTK_OBJS_preb.o: - cp $(srctree)/../obj.$(MODEL_X)/uboot/drivers/net/bcmbca/rtk/RTK_OBJS.o $(obj)/RTK_OBJS_preb.o + cp $(srctree)/../obj.$(BUILD_NAME_LC)/uboot/drivers/net/bcmbca/rtk/RTK_OBJS.o $(obj)/RTK_OBJS_preb.o