3 include $(TOPDIR
)/rules.mk
8 PKG_MD5SUM
:= 016f49d71bc32eee2b5d11fc1600cfbe
10 PKG_SOURCE_URL
:= @SF
/shfs
11 PKG_SOURCE
:= $(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
15 PKG_BUILD_DIR
:= $(BUILD_DIR
)/$(PKG_NAME
)-$(PKG_VERSION
)
16 PKG_INSTALL_DIR
:=$(PKG_BUILD_DIR
)/ipkg-install
18 include $(TOPDIR
)/package
/rules.mk
20 $(eval
$(call PKG_template
,KMOD_SHFS
,kmod-shfs
,$(LINUX_VERSION
)+$(PKG_VERSION
)-$(PKG_RELEASE
),$(ARCH
)))
21 $(eval
$(call PKG_template
,SHFS_UTILS
,shfs-utils
,$(PKG_VERSION
)-$(PKG_RELEASE
),$(ARCH
)))
23 $(PKG_BUILD_DIR
)/.configured
:
26 $(PKG_BUILD_DIR
)/.built
:
27 rm -rf
$(PKG_INSTALL_DIR
)
28 mkdir
-p
$(PKG_INSTALL_DIR
)
29 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
30 OFLAGS
="$(TARGET_CFLAGS)" \
32 LINKER
="$(TARGET_CC)" \
33 KERNEL
="$(LINUX_VERSION)" \
34 KERNEL_SOURCES
="$(LINUX_DIR)" \
39 install -m0755
-d
$(IDIR_KMOD_SHFS
)/lib
/modules
/$(LINUX_VERSION
)
40 cp
-fpR
$(PKG_INSTALL_DIR
)/lib
/modules
/$(LINUX_VERSION
)/kernel
/fs
/shfs
/shfs.o \
41 $(IDIR_KMOD_SHFS
)/lib
/modules
/$(LINUX_VERSION
)/
42 $(RSTRIP_KMOD
) $(IDIR_KMOD_SHFS
)
43 $(IPKG_BUILD
) $(IDIR_KMOD_SHFS
) $(PACKAGE_DIR
)
46 install -m0755
-d
$(IDIR_SHFS_UTILS
)/usr
/sbin
47 cp
-fpR
$(PKG_INSTALL_DIR
)/usr
/sbin
/shfs
{,u
}mount
$(IDIR_SHFS_UTILS
)/usr
/sbin
/
48 cp
-fpR
$(PKG_INSTALL_DIR
)/usr
/sbin
/mount.shfs
$(IDIR_SHFS_UTILS
)/usr
/sbin
/
49 $(RSTRIP
) $(IDIR_SHFS_UTILS
)
50 $(IPKG_BUILD
) $(IDIR_SHFS_UTILS
) $(PACKAGE_DIR
)