3 include $(TOPDIR
)/rules.mk
9 PKG_MD5SUM
:=016f49d71bc32eee2b5d11fc1600cfbe
11 PKG_SOURCE_URL
:=@SF
/shfs
12 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
19 KERNEL_DIR
:=$(LINUX_DIR
)
22 include $(TOPDIR
)/package
/rules.mk
24 $(eval
$(call PKG_template
,KMOD_SHFS
,kmod-shfs
,$(LINUX_VERSION
)$(BOARD
)+$(PKG_VERSION
)-$(PKG_RELEASE
),$(ARCH
),kernel
($(LINUX_VERSION
)-$(BOARD
)-$(KERNEL_RELEASE
))))
26 $(PKG_BUILD_DIR
)/.configured
:
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 CROSS_COMPILE
="$(TARGET_CROSS)" \
35 PATH
="$(TARGET_PATH)" \
36 OFLAGS
="$(TARGET_CFLAGS)" \
38 LINKER
="$(TARGET_CC)" \
39 KERNEL
="$(LINUX_VERSION)" \
40 KERNEL_SOURCES
="$(KERNEL_DIR)" \
41 ROOT
="$(PKG_INSTALL_DIR)" \
46 install -m0755
-d
$(IDIR_KMOD_SHFS
)/lib
/modules
/$(LINUX_VERSION
)
47 cp
-fpR
$(PKG_INSTALL_DIR
)/lib
/modules
/$(LINUX_VERSION
)/kernel
/fs
/shfs
/shfs.
$(LINUX_KMOD_SUFFIX
) \
48 $(IDIR_KMOD_SHFS
)/lib
/modules
/$(LINUX_VERSION
)/
49 $(RSTRIP_KMOD
) $(IDIR_KMOD_SHFS
)
50 $(IPKG_BUILD
) $(IDIR_KMOD_SHFS
) $(PACKAGE_DIR
)