3 include $(TOPDIR
)/rules.mk
8 PKG_MD5SUM
:= 016f49d71bc32eee2b5d11fc1600cfbe
12 http
://nthill.free.fr
/openwrt
/sources
/$(PKG_NAME
)/
13 PKG_SOURCE
:= $(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
17 PKG_BUILD_DIR
:= $(BUILD_DIR
)/$(PKG_NAME
)-$(PKG_VERSION
)
18 PKG_INSTALL_DIR
:=$(PKG_BUILD_DIR
)/ipkg-install
20 include $(TOPDIR
)/package
/templates.mk
22 $(eval
$(call PKG_template
,KMOD_SHFS
,kmod-shfs
,$(LINUX_VERSION
)+$(PKG_VERSION
)-$(PKG_RELEASE
),$(ARCH
)))
23 $(eval
$(call PKG_template
,SHFS_UTILS
,shfs-utils
,$(PKG_VERSION
)-$(PKG_RELEASE
),$(ARCH
)))
25 include $(TOPDIR
)/package
/rules.mk
27 $(PKG_BUILD_DIR
)/.built
: $(PKG_BUILD_DIR
)/.prepared
28 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
29 OFLAGS
="$(TARGET_CFLAGS)" \
31 LINKER
="$(TARGET_CC)" \
32 KERNEL
="$(LINUX_VERSION)" \
33 KERNEL_SOURCES
="$(LINUX_DIR)" \
35 touch
$(PKG_BUILD_DIR
)/.built
37 $(PKG_BUILD_DIR
)/.installed
: $(PKG_BUILD_DIR
)/.built
38 mkdir
-p
$(PKG_INSTALL_DIR
)
39 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
40 ROOT
="$(PKG_INSTALL_DIR)" \
41 KERNEL
="$(LINUX_VERSION)" \
42 KERNEL_SOURCES
="$(LINUX_DIR)" \
44 touch
$(PKG_BUILD_DIR
)/.installed
46 $(IPKG_KMOD_SHFS
): $(IDIR_KMOD_SHFS
)/CONTROL
/control
$(PKG_BUILD_DIR
)/.installed
47 install -m0755
-d
$(IDIR_KMOD_SHFS
)/lib
/modules
/$(LINUX_VERSION
)
48 cp
-fpR
$(PKG_INSTALL_DIR
)/lib
/modules
/$(LINUX_VERSION
)/kernel
/fs
/shfs
/shfs.o \
49 $(IDIR_KMOD_SHFS
)/lib
/modules
/$(LINUX_VERSION
)/
50 $(RSTRIP_KMOD
) $(IDIR_KMOD_SHFS
)
51 mkdir
-p
$(PACKAGE_DIR
)
52 $(IPKG_BUILD
) $(IDIR_KMOD_SHFS
) $(PACKAGE_DIR
)
54 $(IPKG_SHFS_UTILS
): $(IDIR_SHFS_UTILS
)/CONTROL
/control
$(PKG_BUILD_DIR
)/.installed
55 install -m0755
-d
$(IDIR_SHFS_UTILS
)/usr
/sbin
56 cp
-fpR
$(PKG_INSTALL_DIR
)/usr
/sbin
/shfs
{,u
}mount
$(IDIR_SHFS_UTILS
)/usr
/sbin
/
57 cp
-fpR
$(PKG_INSTALL_DIR
)/usr
/sbin
/mount.shfs
$(IDIR_SHFS_UTILS
)/usr
/sbin
/
58 $(RSTRIP
) $(IDIR_SHFS_UTILS
)
59 mkdir
-p
$(PACKAGE_DIR
)
60 $(IPKG_BUILD
) $(IDIR_SHFS_UTILS
) $(PACKAGE_DIR
)