3 include $(TOPDIR
)/rules.mk
4 include $(INCLUDE_DIR
)/kernel.mk
6 PKG_OS
:=$(shell uname
-s
)
7 PKG_CPU
:=$(shell uname
-m
)
9 SDK_NAME
:=OpenWrt-SDK-
$(BOARD
)-$(KERNEL
)-for-
$(PKG_OS
)-$(PKG_CPU
)
10 SDK_BUILD_DIR
:=$(BUILD_DIR
)/$(SDK_NAME
)
14 $(BIN_DIR
)/$(SDK_NAME
).
tar.bz2
:
16 rm -rf
info man share stampfiles
; \
18 rm -rf doc
info man share
; \
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
31 tar cfj
$@
$(SDK_NAME
); \
36 compile
: $(BIN_DIR
)/$(SDK_NAME
).
tar.bz2
40 rm -rf
$(SDK_BUILD_DIR
) $(BIN_DIR
)/$(SDK_NAME
).
tar.bz2
This page took 0.053077 seconds and 5 git commands to generate.