fix trx alignment
[openwrt.git] / openwrt / target / linux / package / shfs / Makefile
1 # $Id$
2
3 include $(TOPDIR)/rules.mk
4
5 PKG_NAME := shfs
6 PKG_VERSION := 0.35
7 PKG_RELEASE := 2
8 PKG_MD5SUM := 016f49d71bc32eee2b5d11fc1600cfbe
9
10 PKG_SOURCE_URL := @SF/shfs
11 PKG_SOURCE := $(PKG_NAME)-$(PKG_VERSION).tar.gz
12 PKG_CAT := zcat
13
14 PKG_BUILD_DIR := $(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
15 PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
16
17 ifeq ($(KERNEL_DIR),)
18 KERNEL_DIR:=$(LINUX_DIR)
19 endif
20
21 include $(TOPDIR)/package/rules.mk
22
23 $(eval $(call PKG_template,KMOD_SHFS,kmod-shfs,$(LINUX_VERSION)$(BOARD)+$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH),kernel ($(LINUX_VERSION)-$(BOARD)-$(KERNEL_RELEASE))))
24
25 $(PKG_BUILD_DIR)/.configured:
26 touch $@
27
28 $(PKG_BUILD_DIR)/.built:
29 rm -rf $(PKG_INSTALL_DIR)
30 mkdir -p $(PKG_INSTALL_DIR)
31 $(MAKE) -C $(PKG_BUILD_DIR) \
32 OFLAGS="$(TARGET_CFLAGS)" \
33 CC="$(TARGET_CC)" \
34 LINKER="$(TARGET_CC)" \
35 KERNEL="$(LINUX_VERSION)" \
36 KERNEL_SOURCES="$(KERNEL_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 -fpR $(PKG_INSTALL_DIR)/lib/modules/$(LINUX_VERSION)/kernel/fs/shfs/shfs.o \
44 $(IDIR_KMOD_SHFS)/lib/modules/$(LINUX_VERSION)/
45 $(RSTRIP_KMOD) $(IDIR_KMOD_SHFS)
46 $(IPKG_BUILD) $(IDIR_KMOD_SHFS) $(PACKAGE_DIR)
47
This page took 0.052592 seconds and 5 git commands to generate.