change cp to $(CP)
[openwrt.git] / target / linux / package / shfs / Makefile
1 # $Id$
2
3 include $(TOPDIR)/rules.mk
4 include ../../rules.mk
5
6 PKG_NAME:=shfs
7 PKG_VERSION:=0.35
8 PKG_RELEASE:=2
9 PKG_MD5SUM:=016f49d71bc32eee2b5d11fc1600cfbe
10
11 PKG_SOURCE_URL:=@SF/shfs
12 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
13 PKG_CAT:=zcat
14
15 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
16 PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
17
18 include $(TOPDIR)/package/rules.mk
19
20 $(eval $(call PKG_template,KMOD_SHFS,kmod-shfs,$(LINUX_VERSION)+$(PKG_VERSION)-$(BOARD)-$(PKG_RELEASE),$(ARCH),kernel ($(LINUX_VERSION)-$(BOARD)-$(LINUX_RELEASE))))
21
22 $(PKG_BUILD_DIR)/.configured:
23 touch $@
24
25 $(PKG_BUILD_DIR)/.built:
26 rm -rf $(PKG_INSTALL_DIR)
27 mkdir -p $(PKG_INSTALL_DIR)
28 $(MAKE) -C $(PKG_BUILD_DIR) \
29 ARCH="$(LINUX_KARCH)" \
30 CROSS_COMPILE="$(TARGET_CROSS)" \
31 PATH="$(TARGET_PATH)" \
32 OFLAGS="$(TARGET_CFLAGS)" \
33 CC="$(TARGET_CC)" \
34 LINKER="$(TARGET_CC)" \
35 KERNEL="$(LINUX_VERSION)" \
36 KERNEL_SOURCES="$(LINUX_DIR)" \
37 ROOT="$(PKG_INSTALL_DIR)" \
38 module module-install
39 touch $@
40
41 $(IPKG_KMOD_SHFS):
42 install -m0755 -d $(IDIR_KMOD_SHFS)/lib/modules/$(LINUX_VERSION)
43 $(CP) $(PKG_INSTALL_DIR)/lib/modules/$(LINUX_VERSION)/kernel/fs/shfs/shfs.$(LINUX_KMOD_SUFFIX) \
44 $(IDIR_KMOD_SHFS)/lib/modules/$(LINUX_VERSION)/
45 $(IPKG_BUILD) $(IDIR_KMOD_SHFS) $(PACKAGE_DIR)
46
This page took 0.039333 seconds and 5 git commands to generate.