Skip to content

Commit

Permalink
Allow for B variant
Browse files Browse the repository at this point in the history
  • Loading branch information
ntadmin committed May 23, 2017
1 parent 3102ae6 commit 47e6d0c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
4 changes: 3 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ all:
@echo 'make <kernel/root/rootweb/extrabin/source/image>';

image: kernel root source
@cp $(NETGEAR_BASE_DIR)/Source/image/$(PROJECT).img .
@cp $(NETGEAR_BASE_DIR)/Source/image/$(PROJECT).img $(VARIANT).img

openwrt: openwrt-source
@cp $(NETGEAR_BASE_DIR)/Source/image/$(PROJECT).img $(PROJECT)-ow.img
Expand Down Expand Up @@ -46,6 +46,8 @@ packages:
kernel: $(KERNEL_FILE)

source: $(NETGEAR_BASE_DIR)/Makefile
@cp variants/$(VARIANT)/$(VARIANT).mak $(NETGEAR_BASE_DIR)/Source/Builds/$(PROJECT).mak
@cp $(NETGEAR_BASE_DIR)/Source/image/DGND3700Bv2_128M.par $(NETGEAR_BASE_DIR)/Source/image/DGND3700Bv2.par
@sed -i '/SUB_VER=/c\SUB_VER=$(CUSTOM_VERSION)' $(NETGEAR_BASE_DIR)/Source/Builds/$(PROJECT).mak
@$(foreach package, $(netgear_packages_not_needed), sed -i '/$(package)/c\# CUSTOM MOD: $(package) not needed for custom build' $(NETGEAR_APPS)/Makefile; )
make -C $(NETGEAR_BASE_DIR) source SHELL=/bin/bash
Expand Down
7 changes: 5 additions & 2 deletions Rules.mak
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,11 @@
# but the CUSTOM_VERSION should be set appropriately, as well as
# where this file is in CUSTOM_BASE_DIR
#
# Change VARIANT to DGND3700Bv2 for that router.
#
PROJECT=DGND3700v2
CUSTOM_VERSION=NEWT16A8
VARIANT=DGND3700v2
CUSTOM_VERSION=NEWT17X1
CUSTOM_BASE_DIR=/usr/src/DGND3700v2/DGND3700v2

#
Expand Down Expand Up @@ -54,7 +57,7 @@ FULL_FULL_VERSION=$(ANNEX)$(FULL_VERSION)
export ROOT=$(NETGEAR_BASE_DIR)/Source/
export CROSS=$(CROSS_TOOLS_ROOT)/usr/bin/mips-linux-

-include $(ROOT)/Builds/$(PROJECT).mak
-include $(ROOT)/Builds/$(VARIANT).mak
-include $(ROOT)/env.mak

#
Expand Down

0 comments on commit 47e6d0c

Please sign in to comment.