Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
gnuton committed Mar 14, 2024
1 parent 2fe1cb8 commit 58cb704
Showing 1 changed file with 10 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -1,8 +1,14 @@
obj-y += RTK_OBJS.o

# MODEL_B = $(subst -,,$(BUILD_NAME))
# MODEL_LC = $(shell echo $(MODEL_B) | tr '[:upper:]' '[:lower:]')
MODEL_E = $(subst -,,$(MODEL))
# HACK: BUILD_NAME and MODEL are lacks of '-'.
# Check if BUILD_NAME contains RTAX58U_V2
ifeq ($(findstring RTAX58U_V2,$(BUILD_NAME)),RTAX58U_V2)
MODEL = rt-ax58u_v2
else
# Otherwise, exit with an error message
$(error Build name not defined)
endif

RTK_OBJS-objs += RTK_OBJS_preb.o
$(obj)/RTK_OBJS_preb.o:
cp $(srctree)/../obj.$(MODEL_E)/uboot/drivers/net/bcmbca/rtk/RTK_OBJS.o $(obj)/RTK_OBJS_preb.o
cp $(srctree)/../obj.$(MODEL)/uboot/drivers/net/bcmbca/rtk/RTK_OBJS.o $(obj)/RTK_OBJS_preb.o

0 comments on commit 58cb704

Please sign in to comment.