-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathMakefile
More file actions
77 lines (63 loc) · 2.34 KB
/
Makefile
File metadata and controls
77 lines (63 loc) · 2.34 KB
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
# DebWrt - Debian on Embedded devices
#
# Copyright (C) 2010 Johan van Zoomeren <amain@debwrt.net>
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
# Debuging make file
#OLD_SHELL := $(SHELL)
#SHELL = $(warning [$@ ($^) ($?)])$(OLD_SHELL)
#
# make --debug=basic
TOPDIR:=$(CURDIR)
LC_ALL:=C
all: world
include rules/functions.mk
include rules/scripts.mk
include rules/debwrt.mk
include rules/users.mk
include rules/help.mk
include config/config.mk
include openwrt/openwrt.mk
include openwrt/openwrt-deliver.mk
include debian/debian.mk
include plugins/plugins.mk
world: .config openwrt/all debian/rootfs
@echo Make DebWrt completed
@echo
@echo "DEBWRTVERSION : $$DEBWRTVERSION"
@echo "TARGET_ARCH : $$TARGET_ARCH"
@echo "BOARD : $$BOARD"
@echo "SUB_BOARD : $$SUB_BOARD"
@echo "LINUX_VERSION : $$OPENWRT_LINUX_VERSION ($$LINUX_VERSION)"
update-targets: openwrt/prepare
cat $(OPENWRT_BUILD_DIR)/tmp/.config-target.in \
| awk 'BEGIN{ print "# note: this file has been generated" } \
/select HAS_SUB/ { print $0; next } \
/select[ \t]+[[:lower:]]+/ { print; next } \
/select/ {next} \
// { print $0 }' \
>$(TOPDIR)/config/target.in
cat $(OPENWRT_BUILD_DIR)/target/Config.in | grep -v 'source "tmp/.config-target.in"' >$(TOPDIR)/config/archs.in
board:
@echo "Board :" $(BOARD)
@echo "Sub-Board:" $(SUB_BOARD)
flash:
cd $(INSTALL_DIR) && $(SCRIPT_FLASH) "$(call qstrip,$(CONFIG_FLASH_IP))" "$(CONFIG_DEBWRT_TARGET_IMAGE_NAME_TRX)" || echo
@echo "Note: wait a couple of minutes before rebooting your device. It takes time to write the firmware to the flash."
clean: openwrt/clean debian/clean config/clean plugins/clean
@rm -f .config .config.old
.PHONY: clean
FORCE: ;
.PHONY: FORCE
.NOTPARALLEL: