[adm5120] disable unsupported boards in the LED driver by default
[openwrt.git] / target / sdk / 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 # $Id$
8
9 include $(TOPDIR)/rules.mk
10 include $(INCLUDE_DIR)/kernel.mk
11 include $(INCLUDE_DIR)/host.mk
12
13 PKG_OS:=$(shell uname -s)
14 PKG_CPU:=$(shell uname -m)
15
16 SDK_NAME:=OpenWrt-SDK-$(BOARD)-$(KERNEL)-for-$(PKG_OS)-$(PKG_CPU)
17 SDK_BUILD_DIR:=$(BUILD_DIR)/$(SDK_NAME)
18 EXCLUDE_DIRS:=ccache stamp
19
20 all: compile
21
22 $(BIN_DIR)/$(SDK_NAME).tar.bz2: clean
23 mkdir -p $(SDK_BUILD_DIR)/dl $(SDK_BUILD_DIR)/package
24 $(CP) $(INCLUDE_DIR) $(SCRIPT_DIR) $(TOPDIR)/docs $(SDK_BUILD_DIR)/
25 $(TAR) -cf - -C $(TOPDIR) --exclude="$(EXCLUDE_DIRS)" staging_dir/$(ARCH) | \
26 $(TAR) -xf - -C $(SDK_BUILD_DIR)
27 (cd $(SDK_BUILD_DIR)/staging_dir/$(ARCH); \
28 rm -rf info man share stampfiles; \
29 cd usr; \
30 rm -rf doc info man share; \
31 )
32 $(CP) $(TOPDIR)/rules.mk $(TOPDIR)/.config $(SDK_BUILD_DIR)/
33 $(CP) $(TOPDIR)/package/Makefile $(SDK_BUILD_DIR)/package/
34 $(CP) ./files/Makefile $(SDK_BUILD_DIR)/
35 $(CP) ./files/README.SDK $(SDK_BUILD_DIR)/
36 $(CP) ./files/package/rules.mk $(SDK_BUILD_DIR)/package/
37 echo OPENWRTVERSION:="$(OPENWRTVERSION)" > $(SDK_BUILD_DIR)/.version.mk
38 rm -rf $(SDK_BUILD_DIR)/staging_dir/$(ARCH)/{ccache,stamp}
39 find $(SDK_BUILD_DIR) -name .svn | $(XARGS) rm -rf
40 find $(SDK_BUILD_DIR) -name CVS | $(XARGS) rm -rf
41 (cd $(BUILD_DIR); \
42 tar cfj $@ $(SDK_NAME); \
43 )
44
45 download:
46 prepare:
47 compile: $(BIN_DIR)/$(SDK_NAME).tar.bz2
48 install: compile
49
50 clean:
51 rm -rf $(SDK_BUILD_DIR) $(BIN_DIR)/$(SDK_NAME).tar.bz2
This page took 0.045246 seconds and 5 git commands to generate.