2 # Copyright (C) 2006 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
7 include $(TOPDIR
)/rules.mk
8 include $(INCLUDE_DIR
)/target.mk
15 linux-install
: $(BIN_DIR
)
16 image_install
: linux-install
18 IMAGE_DIR
:=linux
/$(BOARD
)-$(KERNEL
)/image
20 download
: $(patsubst %,%-download
,$(TARGETS-y
))
21 prepare
: linux-prepare
22 compile
: linux-compile image_compile
23 install: image_clean linux-install sdk_install image_install imagebuilder_install
24 clean: linux-clean sdk-clean imagebuilder-clean image_clean
27 $(MAKE
) -C linux
/$(BOARD
)-$(KERNEL
) prereq
28 $(MAKE
) -C
$(IMAGE_DIR
) prereq
31 $(MAKE
) -C sdk
install
34 $(MAKE
) -C
$(IMAGE_DIR
) clean
35 rm -f
$(BIN_DIR
)/openwrt-
*
38 $(MAKE
) -C
$(IMAGE_DIR
) compile
40 image_install
: image_compile
41 $(MAKE
) -C
$(IMAGE_DIR
) install
43 imagebuilder_install
: image_install
44 $(MAKE
) -C imagebuilder
install
47 $(MAKE
) -C
$(patsubst %-clean,%,$@
) clean
49 $(MAKE
) -C
$(patsubst %-download
,%,$@
) download
51 $(MAKE
) -C
$(patsubst %-prepare
,%,$@
) prepare
53 $(MAKE
) -C
$(patsubst %-compile
,%,$@
) compile
55 $(MAKE
) -C
$(patsubst %-install,%,$@
) install