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: linux-install image_install
25 ifeq ($(CONFIG_SDK
),y
)
29 install: imagebuilder_install
32 clean: linux-clean sdk-clean imagebuilder-clean image_clean
35 $(MAKE
) -C linux
/$(BOARD
)-$(KERNEL
) prereq
36 $(MAKE
) -C
$(IMAGE_DIR
) prereq
39 $(MAKE
) -C sdk
install
42 $(MAKE
) -C
$(IMAGE_DIR
) clean
43 rm -f
$(BIN_DIR
)/openwrt-
*
46 $(MAKE
) -C
$(IMAGE_DIR
) compile
48 image_install
: image_compile
49 $(MAKE
) -C
$(IMAGE_DIR
) install
51 imagebuilder_install
: image_install
52 $(MAKE
) -C imagebuilder
install
54 $(eval
$(call default_subtargets
,))