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.
9 include $(TOPDIR
)/rules.mk
10 include $(INCLUDE_DIR
)/kernel.mk
11 include $(INCLUDE_DIR
)/host.mk
13 PKG_OS
:=$(shell uname
-s
)
14 PKG_CPU
:=$(shell uname
-m
)
16 SDK_NAME
:=OpenWrt-SDK-
$(BOARD
)-$(KERNEL
)-for-
$(PKG_OS
)-$(PKG_CPU
)
17 SDK_BUILD_DIR
:=$(BUILD_DIR
)/$(SDK_NAME
)
21 $(BIN_DIR
)/$(SDK_NAME
).
tar.bz2
: clean
22 mkdir
-p
$(SDK_BUILD_DIR
)/dl
$(SDK_BUILD_DIR
)/package
23 $(CP
) $(INCLUDE_DIR
) $(SCRIPT_DIR
) $(TOPDIR
)/docs
$(SDK_BUILD_DIR
)/
24 $(TAR
) -cf
- -C
$(TOPDIR
) --exclude
=ccache
/ staging_dir_
$(ARCH
) | \
25 $(TAR
) -xf
- -C
$(SDK_BUILD_DIR
)
26 (cd
$(SDK_BUILD_DIR
)/staging_dir_
$(ARCH
); \
27 rm -rf
info man share stampfiles
; \
29 rm -rf doc
info man share
; \
31 $(CP
) $(TOPDIR
)/rules.mk
$(TOPDIR
)/.config
$(SDK_BUILD_DIR
)/
32 $(CP
) $(TOPDIR
)/package
/Makefile
$(SDK_BUILD_DIR
)/package
/
33 $(CP
) .
/files
/Makefile
$(SDK_BUILD_DIR
)/
34 $(CP
) .
/files
/README.SDK
$(SDK_BUILD_DIR
)/
35 $(CP
) .
/files
/package
/rules.mk
$(SDK_BUILD_DIR
)/package
/
36 echo OPENWRTVERSION
:="$(OPENWRTVERSION)" > $(SDK_BUILD_DIR
)/.version.mk
37 rm -rf
$(SDK_BUILD_DIR
)/staging_dir
*/ccache
38 find
$(SDK_BUILD_DIR
) -name .svn |
$(XARGS
) rm -rf
39 find
$(SDK_BUILD_DIR
) -name CVS |
$(XARGS
) rm -rf
41 tar cfj
$@
$(SDK_NAME
); \
46 compile
: $(BIN_DIR
)/$(SDK_NAME
).
tar.bz2
50 rm -rf
$(SDK_BUILD_DIR
) $(BIN_DIR
)/$(SDK_NAME
).
tar.bz2
This page took 0.044439 seconds and 5 git commands to generate.