fix and enable the sdk
[openwrt.git] / target / sdk / Makefile
1 # $Id$
2
3 include $(TOPDIR)/rules.mk
4 include $(INCLUDE_DIR)/kernel.mk
5
6 PKG_OS:=$(shell uname -s)
7 PKG_CPU:=$(shell uname -m)
8
9 SDK_NAME:=OpenWrt-SDK-$(BOARD)-$(KERNEL)-for-$(PKG_OS)-$(PKG_CPU)
10 SDK_BUILD_DIR:=$(BUILD_DIR)/$(SDK_NAME)
11
12 all: compile
13
14 $(BIN_DIR)/$(SDK_NAME).tar.bz2:
15 (cd $(STAGING_DIR); \
16 rm -rf info man share stampfiles; \
17 cd usr; \
18 rm -rf doc info man share; \
19 )
20 rm -rf $(SDK_BUILD_DIR)
21 mkdir -p $(SDK_BUILD_DIR)/dl $(SDK_BUILD_DIR)/package
22 $(CP) $(STAGING_DIR) $(INCLUDE_DIR) $(SCRIPT_DIR) $(TOPDIR)/docs $(SDK_BUILD_DIR)/
23 $(CP) $(TOPDIR)/rules.mk $(TOPDIR)/.config $(SDK_BUILD_DIR)/
24 $(CP) $(TOPDIR)/package/Makefile $(SDK_BUILD_DIR)/package/
25 $(CP) ./files/Makefile.sdk $(SDK_BUILD_DIR)/Makefile
26 $(CP) ./files/README.SDK $(SDK_BUILD_DIR)/
27 echo OPENWRTVERSION:=$(OPENWRTVERSION) > $(SDK_BUILD_DIR)/.version.mk
28 find $(SDK_BUILD_DIR) -name .svn | xargs rm -rf
29 find $(SDK_BUILD_DIR) -name CVS | xargs rm -rf
30 (cd $(BUILD_DIR); \
31 tar cfj $@ $(SDK_NAME); \
32 )
33
34 source:
35 prepare:
36 compile: $(BIN_DIR)/$(SDK_NAME).tar.bz2
37 install:
38
39 clean:
40 rm -rf $(SDK_BUILD_DIR) $(BIN_DIR)/$(SDK_NAME).tar.bz2
This page took 0.042802 seconds and 5 git commands to generate.