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
16 TARGETS-
$(CONFIG_SDK
) += sdk
18 linux-install
: $(BIN_DIR
)
19 image_install
: linux-install
21 IMAGE_DIR
:=linux
/$(BOARD
)-$(KERNEL
)/image
24 download
: $(patsubst %,%-download
,$(TARGETS-y
))
25 prepare
: linux-prepare
26 compile
: linux-compile image_compile
27 install: image_clean
$(patsubst %,%-install,$(TARGETS-y
)) image_install
28 clean: $(patsubst %,%-clean,$(TARGETS-y
)) image_clean
31 $(MAKE
) -C linux
/$(BOARD
)-$(KERNEL
) prereq
32 $(MAKE
) -C
$(IMAGE_DIR
) prereq
35 $(MAKE
) -C
$(IMAGE_DIR
) clean
36 rm -f
$(BIN_DIR
)/openwrt-
*
39 $(MAKE
) -C
$(IMAGE_DIR
) compile
41 image_install
: image_compile
42 $(MAKE
) -C
$(IMAGE_DIR
) install
45 $(MAKE
) -C
$(patsubst %-clean,%,$@
) clean
47 $(MAKE
) -C
$(patsubst %-download
,%,$@
) download
49 $(MAKE
) -C
$(patsubst %-prepare
,%,$@
) prepare
51 $(MAKE
) -C
$(patsubst %-compile
,%,$@
) compile
53 $(MAKE
) -C
$(patsubst %-install,%,$@
) install