-
Notifications
You must be signed in to change notification settings - Fork 17
/
Settings.mak
114 lines (99 loc) · 3.8 KB
/
Settings.mak
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
ifdef LOCAL
export LOCAL
endif
ifdef DEBUG
export DEBUG
export DBG ?= -debug
endif
ifdef BUILD
override undefine LOCAL
export BUILD
endif
PROJECT_NAME ?= ancistrus
PROJECT_TARGET ?= D7000
PROJECT_FOUNDER ?= negan07
PROJECT_PLOT ?= "Netgear's $(PROJECT_TARGET) (V1) Nighthawk Router Experience Distributed Project"
LICENSE_NAME ?= GPLv2
PROJECT_LICENSE ?= "License: $(LICENSE_NAME)"
GITHUB_DIR ?= https://github.com/$(PROJECT_FOUNDER)/$(PROJECT_NAME)
PROJECT_HOMEPAGE ?= https://$(PROJECT_FOUNDER).github.io/$(PROJECT_NAME)
PROJECT_REP_ROOT ?= https://raw.githubusercontent.com/$(PROJECT_FOUNDER)/$(PROJECT_NAME)/gh-pages
LOCAL_REP_ROOT ?= https://192.168.0.7
FWVER ?= V1.0.1.84
CPU_ARCH_NAME ?= ARM
PROJ_TAG ?= $(shell echo $(PROJECT_NAME) | head -c 3)
RCBOOT_NAME ?= rcS
RCAPPSNAME ?= rc_apps
RCNVRAMSO ?= libscnvram.so
RCDSLCMD ?= xdslctl
RCDSLCMDBIN ?= $(RCDSLCMD).bin
RCOPTCRT ?= ca-bundle-mega.crt
RCCRT ?= ca-bundle.crt
RCDSLKO ?= adsldd.ko pktrunner.ko pktflow.ko bcmxtmcfg.ko bcmxtmrtdrv.ko
RCDSLDRV ?= adsl_phy.bin
RCDSLSO ?= libbcm_crc.so libseltctl.so libbcm_flashutil.so libxdslctl.so
RCDSLBINS ?= $(RCDSLCMDBIN)
RCMAINWEB ?= top.js linux.js top.html index.htm adv_index.htm GPL_rev1.htm logout.htm
RCHTTPDWEB ?= currentsetting.htm
RCMAINCSS ?= top.css
RCTMPDIR ?= /tmp
RCLDLIB ?= /lib
RCUSRDIR ?= /usr
RCRAMBOOTDIR ?= /etc
RCSBINDIR ?= /sbin
RCOPTCRTDIR ?= /opt/xagent/certs
RCWWWDIR ?= /www.eng
RCWWWCSSDIR ?= $(RCWWWDIR)/style
RCLDLIBMOD ?= $(RCLDLIB)/modules
RCBOOTDIR ?= $(RCUSRDIR)$(RCRAMBOOTDIR)
RCBINDIR ?= $(RCUSRDIR)$(RCSBINDIR)
RCAPPDIR ?= $(RCBINDIR)/rc_app
RCADSLDIR ?= $(RCBOOTDIR)/adsl
RCBOOT ?= $(RCBOOTDIR)/$(RCBOOT_NAME)
RCINITD ?= init.d
RCINITDIR ?= $(RCBOOTDIR)/$(RCINITD)
RCRUNLEVDIR ?= $(RCBOOT).d
OPKG_INFO_STATUS_DIR ?= $(RCUSRDIR)$(RCLDLIB)/opkg
OPKG_PKG_DIR ?= build$(DBG)
DIFFS_DIR ?= diffs
LBIN_DIR ?= localbin
SCRIPTS_DIR ?= scripts
WORK_SRC_DIR ?= work
DEBUG_DIR ?= /home/ftp
RECEIVE_DIR ?= $(RCTMPDIR)$(RCRAMBOOTDIR)/$(PROJ_TAG)dbg
SRC_DIR ?= $(PROJECT_TARGET)_$(FWVER)_WW_src
SRC_REL_DIR ?= ../$(SRC_DIR)
SRC_ROOT_REL_DIR ?= Source
SRC_APPS_ROOT_REL_DIR ?= $(SRC_ROOT_REL_DIR)/apps
SRC_APPS_REL_DIR ?= $(SRC_REL_DIR)/$(SRC_APPS_ROOT_REL_DIR)
SRC_BUILDS_REL_DIR ?= $(SRC_ROOT_REL_DIR)/Builds
SRC_IMAGE_REL_DIR ?= $(SRC_ROOT_REL_DIR)/image
SRC_SHARED_REL_DIR ?= $(SRC_ROOT_REL_DIR)/shared
SRC_TARGET_REL_DIR ?= $(SRC_ROOT_REL_DIR)/target
SRC_ROOT_DIR ?= $(SRC_DIR)/$(SRC_ROOT_REL_DIR)
SRC_APPS_DIR ?= $(SRC_DIR)/$(SRC_APPS_ROOT_REL_DIR)
SRC_BUILDS_DIR ?= $(SRC_DIR)/$(SRC_BUILDS_REL_DIR)
SRC_IMAGE_DIR ?= $(SRC_DIR)/$(SRC_IMAGE_REL_DIR)
SRC_SHARED_DIR ?= $(SRC_DIR)/$(SRC_SHARED_REL_DIR)
SRC_TARGET_DIR ?= $(SRC_DIR)/$(SRC_TARGET_REL_DIR)
SRC_URL ?= https://www.downloads.netgear.com/files/GPL
SRC_FILE ?= $(PROJECT_TARGET)_$(FWVER)_1.0.1_GPL.tgz
TCHAIN_SRC_DIR ?= crosstools-gcc-4.6-linux-3.4-uclibc-0.9.32-binutils-2.21-sources
TCHAIN_TAR ?= $(SRC_DIR)/Source/$(TCHAIN_SRC_DIR).tar.bz2
TCHAIN_BROOT_DL_DIR ?= src/buildroot-2011.11/dl
TCHAIN_INST_DIR ?= /opt/toolchains
TCHAIN_MIPS_DIR ?= $(TCHAIN_INST_DIR)/crosstools-mips-gcc-4.6-linux-3.4-uclibc-0.9.32-binutils-2.21/usr/bin
TCHAIN_ARM_DIR ?= $(TCHAIN_INST_DIR)/crosstools-arm-gcc-4.6-linux-3.4-uclibc-0.9.32-binutils-2.21-NPTL/usr/bin
TCHAIN_MIPSEL_DIR ?= $(TCHAIN_INST_DIR)/crosstools-mipsel-gcc-4.6-linux-3.4-uclibc-0.9.32-binutils-2.21/usr/bin
TCHAIN_I386_DIR ?= $(RCUSRDIR)/bin/
TARGET_MIPS ?= mips-unknown-linux-uclibc
TARGET_ARM ?= arm-unknown-linux-uclibcgnueabi
TARGET_MIPSEL ?= mipsel-unknown-linux-uclibc
TARGET_I386 ?=
PREFIX_MIPS ?= $(TARGET_MIPS)-
PREFIX_ARM ?= $(TARGET_ARM)-
PREFIX_MIPSEL ?= $(TARGET_MIPSEL)-
PREFIX_I386 ?= $(TARGET_I386)
TCHAIN_DIR ?= $(TCHAIN_$(CPU_ARCH_NAME)_DIR)
TCHAIN_PREFIX ?= $(PREFIX_$(CPU_ARCH_NAME))
TCHAIN_PATH ?= $(TCHAIN_DIR)/$(TCHAIN_PREFIX)