Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
gnuton committed Mar 15, 2024
1 parent 0fe7855 commit 2774f2d
Showing 1 changed file with 2 additions and 10 deletions.
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 2774f2d

Please sign in to comment.