ecb123872db947519dec8069de633384a6b2916c
[openwrt.git] / openwrt / 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 ifeq ($(KERNEL_DIR),)
19 KERNEL_DIR:=$(LINUX_DIR)
20 endif
21
22 include $(TOPDIR)/package/rules.mk
23
24 $(eval $(call PKG_template,KMOD_SHFS,kmod-shfs,$(LINUX_VERSION)$(BOARD)+$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH),kernel ($(LINUX_VERSION)-$(BOARD)-$(KERNEL_RELEASE))))
25
26 $(PKG_BUILD_DIR)/.configured:
27 touch $@
28
29 $(PKG_BUILD_DIR)/.built:
30 rm -rf $(PKG_INSTALL_DIR)
31 mkdir -p $(PKG_INSTALL_DIR)
32 $(MAKE) -C $(PKG_BUILD_DIR) \
33 ARCH="$(LINUX_KARCH)" \
34 PATH="$(TARGET_PATH)" \
35 OFLAGS="$(TARGET_CFLAGS)" \
36 CC="$(TARGET_CC)" \
37 LINKER="$(TARGET_CC)" \
38 KERNEL="$(LINUX_VERSION)" \
39 KERNEL_SOURCES="$(KERNEL_DIR)" \
40 ROOT="$(PKG_INSTALL_DIR)" \
41 module module-install
42 touch $@
43
44 $(IPKG_KMOD_SHFS):
45 install -m0755 -d $(IDIR_KMOD_SHFS)/lib/modules/$(LINUX_VERSION)
46 cp -fpR $(PKG_INSTALL_DIR)/lib/modules/$(LINUX_VERSION)/kernel/fs/shfs/shfs.$(LINUX_KMOD_SUFFIX) \
47 $(IDIR_KMOD_SHFS)/lib/modules/$(LINUX_VERSION)/
48 $(RSTRIP_KMOD) $(IDIR_KMOD_SHFS)
49 $(IPKG_BUILD) $(IDIR_KMOD_SHFS) $(PACKAGE_DIR)
50
This page took 0.041077 seconds and 3 git commands to generate.