source: debwrt/trunk/Makefile @ 65

Last change on this file since 65 was 65, checked in by amain, 8 years ago

Extend debian rootfs and prepare for second stage install using custom rcS

File size: 2.0 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
18# Debuging make file
19#OLD_SHELL := $(SHELL)
20#SHELL = $(warning [$@ ($^) ($?)])$(OLD_SHELL)
21#
22# make --debug=basic
23
24TOPDIR:=${CURDIR}
25
26all: world
27
28include rules/functions.mk
29include rules/scripts.mk
30include rules/debwrt.mk
31include rules/help.mk
32include config/config.mk
33include openwrt/openwrt.mk
34include openwrt/openwrt-deliver.mk
35include debian/debian.mk
36
37world: .config openwrt/build openwrt/deliver
38        @echo Make DebWrt completed
39        @echo REVISION=$$REVISION
40        @echo RELEASE=$$RELEASE
41        @echo DEBWRTVERSION=$$DEBWRTVERSION
42
43update-targets: openwrt/prepare
44        cat $(OPENWRT_BUILD_DIR)/tmp/.config-target.in \
45                |  awk 'BEGIN{ print "# note: this file has been generated" } \
46               /select HAS_SUB/ { print $0; next } \
47               /select[ \t]+[[:lower:]]+/ { print; next } \
48               /select/ {next} \
49               // { print $0 }' \
50        >${TOPDIR}/config/config-target.in
51        cat $(OPENWRT_BUILD_DIR)/target/Config.in | grep -v 'source "tmp/.config-target.in"' >$(TOPDIR)/config/archs.in
52
53board:
54        @echo "Board    :" ${BOARD}
55        @echo "Sub-Board:" ${SUB_BOARD}
56
57flash:
58        cd $(INSTALL_DIR) && $(SCRIPT_FLASH) "$(call qstrip,$(CONFIG_FLASH_IP))" "$(CONFIG_DEBWRT_TARGET_IMAGE_NAME_TRX)" || echo
59
60clean: config-clean openwrt/clean
61        @rm -f .config .config.old
62
63FORCE: ;
64.PHONY: FORCE
65.NOTPARALLEL:
66
67
Note: See TracBrowser for help on using the repository browser.