source: debwrt/trunk/Makefile @ 17

Last change on this file since 17 was 17, checked in by amain, 9 years ago

Fixed config merge problem and imported all current OpenWrt supported targets and sub_targets.

File size: 1.8 KB
Line 
1# DebWrt - Debian on Embedded devices
2#
3# Copyright (C) 2010 Johan van Zoomeren <amain@debwrt.net>
4#
5# This program is free software: you can redistribute it and/or modify
6# it under the terms of the GNU General Public License as published by
7# the Free Software Foundation, either version 3 of the License, or
8# (at your option) any later version.
9#
10# This program is distributed in the hope that it will be useful,
11# but WITHOUT ANY WARRANTY; without even the implied warranty of
12# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13# GNU General Public License for more details.
14#
15# You should have received a copy of the GNU General Public License
16# along with this program.  If not, see <http://www.gnu.org/licenses/>.
17
18TOPDIR:=${CURDIR}
19
20all: world
21
22include rules/functions.mk
23include rules/scripts.mk
24include rules/debwrt.mk
25include rules/help.mk
26include config/config.mk
27include openwrt/openwrt.mk
28include openwrt/openwrt-deliver.mk
29include debian/debian.mk
30
31world: .config openwrt/build
32        @echo REVISION=$$REVISION
33        @echo RELEASE=$$RELEASE
34        @echo DEBWRTVERSION=$$DEBWRTVERSION
35        @echo Make DebWrt
36
37update-targets: openwrt/prepare
38        cat $(OPENWRT_BUILD_DIR)/tmp/.config-target.in \
39                |  awk 'BEGIN{ print "# note: this file has been generated" } \
40               /select HAS_SUB/ { print $0; next } \
41               /select[ \t]+[[:lower:]]+/ { print; next } \
42               /select/ {next} \
43               // { print $0 }' \
44        >${TOPDIR}/config/config-target.in
45        cat $(OPENWRT_BUILD_DIR)/target/Config.in | grep -v 'source "tmp/.config-target.in"' >$(TOPDIR)/config/archs.in
46
47board:
48        echo "Board " ${SUB_BOARD}
49
50flash:
51        cd $(INSTALL_DIR) && $(SCRIPT_FLASH) "$(call qstrip,$(CONFIG_FLASH_IP))" "$(TARGET_IMAGE_NAME)" || echo
52
53clean: config-clean openwrt/clean
54        @rm -f .config .config.old
55
56FORCE: ;
57.PHONY: FORCE
58.NOTPARALLEL:
59
60
Note: See TracBrowser for help on using the repository browser.