fix partition issue with x86, leveraging the default size on the second partition...
[openwrt/openwrt.git] / target / Makefile
1 #
2 # Copyright (C) 2006 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7 include $(TOPDIR)/rules.mk
8 include $(INCLUDE_DIR)/target.mk
9
10 all: install
11
12 $(BIN_DIR):
13 mkdir -p $(BIN_DIR)
14
15 TARGETS-y := linux utils
16 TARGETS-$(CONFIG_SDK) += sdk
17
18 linux-compile: utils-install
19 linux-install: $(BIN_DIR)
20 image_install: linux-install
21
22 download: $(patsubst %,%-download,$(TARGETS-y))
23 prepare: linux-prepare
24 compile: linux-compile image_compile
25 install: image_clean $(patsubst %,%-install,$(TARGETS-y)) image_install
26 clean: $(patsubst %,%-clean,$(TARGETS-y)) image_clean
27
28 image_clean: FORCE
29 $(MAKE) -C image/$(BOARD) clean
30 rm -f $(BIN_DIR)/openwrt-*
31
32 image_compile: FORCE
33 $(MAKE) -C image/$(BOARD) compile
34
35 image_install: image_compile
36 $(MAKE) -C image/$(BOARD) install
37
38 %-clean: FORCE
39 $(MAKE) -C $(patsubst %-clean,%,$@) clean
40 %-download: FORCE
41 $(MAKE) -C $(patsubst %-download,%,$@) download
42 %-prepare: FORCE
43 $(MAKE) -C $(patsubst %-prepare,%,$@) prepare
44 %-compile: %-prepare
45 $(MAKE) -C $(patsubst %-compile,%,$@) compile
46 %-install: %-compile
47 $(MAKE) -C $(patsubst %-install,%,$@) install
48