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 58cb704 commit 0fe7855
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,13 @@ 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 = rt-ax58u_v2
MODEL_X = rt-ax58u_v2
$(info "Selected $(MODEL_X)")
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)/uboot/drivers/net/bcmbca/rtk/RTK_OBJS.o $(obj)/RTK_OBJS_preb.o
cp $(srctree)/../obj.$(MODEL_X)/uboot/drivers/net/bcmbca/rtk/RTK_OBJS.o $(obj)/RTK_OBJS_preb.o

0 comments on commit 0fe7855

Please sign in to comment.