forked from yubo/mt7688_mips_ecos
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
executable file
·63 lines (50 loc) · 1.69 KB
/
Makefile
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
#define the ecos packages
ECOS_REPOSITORY := $(shell pwd)/packages
#define the ecos tool path for ecosconfig
ECOS_TOOL_PATH := $(shell pwd)/tools/bin:$(PATH)
#define cross compiler path
ECOS_MIPSTOOL_PATH := $(shell pwd)/tools/mipsisa32-elf/bin
BRANCH = ADV
#Configuration file selection
PRJ_NAME = ap_router
#CHIPSET - 5350, 7620, mt7628
CHIPSET = mt7628
WIFI_MODE = AP
# -----------------------------
# Second wifi device
# -----------------------------
#iNIC WIFI CHIPSET - NONE, 7610E, 7603E
INIC_WIFI = NONE
#iNIC Flash Type - flash, efuse
INIC_FLASH = flash
TARGET = ECOS
#Web Language - English or TChinese
WEB_LANG = English
TFTP_DIR = /var/lib/tftpboot
#Flash Layout - SMALL_UBOOT_PARTITION, NORMAL_UBOOT_PARTITION, see document in detail
FLASH_LAYOUT = NORMAL_UBOOT_PARTITION
#Output image file: <IMAGE_NAME>.img
IMAGE_NAME = eCos
PATH :=$(ECOS_TOOL_PATH):$(ECOS_MIPSTOOL_PATH):$(PATH)
#export PATH ECOS_REPOSITORY BRANCH BOOT_CODE PRJ_NAME CHIPSET WIFI_MODE TARGET TFTP_DIR IMAGE_NAME CONFIG_CROSS_COMPILER_PATH WEB_LANG FLASH_LAYOUT
export PATH ECOS_REPOSITORY BRANCH BOOT_CODE PRJ_NAME CHIPSET WIFI_MODE TARGET TFTP_DIR IMAGE_NAME CONFIG_CROSS_COMPILER_PATH WEB_LANG FLASH_LAYOUT INIC_WIFI INIC_FLASH
all: kernel module
kernel: compiler
chmod -Rf 777 tools/bin/*
make -C ra305x_ap_adv kernel
module: compiler
chmod -Rf 777 tools/bin/*
make -C ra305x_ap_adv module
compiler:
@if [ ! -d $(ECOS_MIPSTOOL_PATH) ]; \
then tar zxvf tools/mipsisa32-elf.tgz -C tools; \
fi
clean: module_clean kernel_clean
kernel_clean:
make -C ra305x_ap_adv kernel_clean
module_clean:
make -C ra305x_ap_adv module_clean
release:
make -C ra305x_ap_adv/ra305x_router release
menuconfig:
make -C ra305x_ap_adv menuconfig