3 include $(TOPDIR
)/rules.mk
5 PKG_OS
:=$(shell uname
-s
)
6 PKG_CPU
:=$(shell uname
-m
)
9 PKG_NAME
:=OpenWrt-SDK-
$(PKG_OS
)-$(PKG_CPU
)-$(PKG_RELEASE
)
11 PKG_BUILD_DIR
:=$(BUILD_DIR
)/$(PKG_NAME
)
15 $(BIN_DIR
)/$(PKG_NAME
).
tar.bz2
:
17 rm -rf
info man share
; \
19 rm -rf doc
info man share
; \
21 rm -rf
$(PKG_BUILD_DIR
)
22 mkdir
-p
$(PKG_BUILD_DIR
)/dl
$(PKG_BUILD_DIR
)/examples
$(PKG_BUILD_DIR
)/package
23 cp
-a
$(STAGING_DIR
) $(SCRIPT_DIR
) $(TOPDIR
)/docs
$(PKG_BUILD_DIR
)/
24 cp
-a
$(TOPDIR
)/package
/strace
$(TOPDIR
)/package
/iproute2
$(PKG_BUILD_DIR
)/examples
25 cp
$(TOPDIR
)/rules.mk
$(PKG_BUILD_DIR
)/
26 cp .
/files
/Makefile.sdk
$(PKG_BUILD_DIR
)/Makefile
27 cp .
/files
/README.SDK
$(PKG_BUILD_DIR
)/
28 cp .
/files
/depend.mk
$(PKG_BUILD_DIR
)/package
/
29 egrep
'^BR2_(ARCH|WGET|STAGING|JLEVEL|LARGEFILE|TARGET_OPT)' $(TOPDIR
)/.config
> $(PKG_BUILD_DIR
)/.config
30 find
$(PKG_BUILD_DIR
) -name CVS | xargs
rm -rf
32 tar cfj
$@
$(PKG_NAME
); \
37 compile
: $(BIN_DIR
)/$(PKG_NAME
).
tar.bz2
41 rm -rf
$(PKG_BUILD_DIR
)
This page took 0.036536 seconds and 5 git commands to generate.