-
Notifications
You must be signed in to change notification settings - Fork 85
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
2 additions
and
10 deletions.
There are no files selected for viewing
12 changes: 2 additions & 10 deletions
12
release/src-rt-5.04axhnd.675x/bootloaders/u-boot-2019.07/drivers/net/bcmbca/rtk/Makefile
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |