3 ifneq ($(strip ${IPKG_RULES_INC}),)
4 include $(IPKG_RULES_INC
)
9 PKG_VERSION
:= $(shell cat .
/ipkg
/version
)
10 CURRENT_DIR
:= $(shell pwd
)
11 INSTALL_DIR ?
= $(CURRENT_DIR
)/ipkg-install
15 I_KMOD_SHFS
:= ipkg
/kmod-shfs
16 I_SHFS_UTILS
:= ipkg
/shfs-utils
25 .stamp-configured
: $(BUILD_DEPS
)
27 touch .stamp-configured
30 .stamp-built
: .stamp-configured
33 OFLAGS
="$(TARGET_CFLAGS)" \
35 LINKER
="$(TARGET_CC)" \
36 KERNEL
="$(LINUX_VERSION)" \
37 KERNEL_SOURCES
="$(LINUX_DIR)" \
43 $(INSTALL_DIR
)/lib
/modules
/$(LINUX_VERSION
)/shfs.o
: .stamp-built
45 mkdir
-p
$(INSTALL_DIR
)
48 ROOT
="$(INSTALL_DIR)" \
49 KERNEL
="$(LINUX_VERSION)" \
50 KERNEL_SOURCES
="$(LINUX_DIR)" \
54 configure
: .stamp-configured
60 install: $(INSTALL_DIR
)/lib
/modules
/$(LINUX_VERSION
)/shfs.o
63 package
: $(INSTALL_DIR
)/lib
/modules
/$(LINUX_VERSION
)/shfs.o
65 mkdir
-p
$(I_KMOD_SHFS
)/lib
/modules
/$(LINUX_VERSION
)
66 cp
-fpR
$(INSTALL_DIR
)/lib
/modules
/$(LINUX_VERSION
)/kernel
/fs
/shfs
/shfs.o \
67 $(I_KMOD_SHFS
)/lib
/modules
/$(LINUX_VERSION
)/
68 $(TARGET_CROSS
)strip --remove-section
=.comment
--remove-section
=.note \
69 $(I_KMOD_SHFS
)/lib
/modules
/$(LINUX_VERSION
)/*.o
71 mkdir
-p
$(I_SHFS_UTILS
)/usr
/sbin
72 cp
-fpR
$(INSTALL_DIR
)/usr
/sbin
/shfs
{,u
}mount
$(I_SHFS_UTILS
)/usr
/sbin
/
73 cp
-fpR
$(INSTALL_DIR
)/usr
/sbin
/mount.shfs
$(I_SHFS_UTILS
)/usr
/sbin
/
74 $(STRIP
) $(I_SHFS_UTILS
)/usr
/sbin
/shfs
*
76 chmod
0755 ipkg
/*/CONTROL
/
77 chmod
0644 ipkg
/*/CONTROL
/control
79 perl
-pi
-e
"s/^Arch.*:.*/Architecture: $(ARCH)/g" ipkg
/*/CONTROL
/control
80 ifneq ($(strip $(PKG_VERSION
)),)
81 perl
-pi
-e
"s/^Vers.*:.*/Version: $(PKG_VERSION)/g" ipkg
/*/CONTROL
/control
82 perl
-pi
-e
"s/^Vers.*:.*/Version: $(LINUX_VERSION)+$(PKG_VERSION)/g" $(I_KMOD_SHFS
)/CONTROL
/control
85 $(IPKG_BUILD
) $(I_KMOD_SHFS
) $(IPKG_TARGET_DIR
)
86 $(IPKG_BUILD
) $(I_SHFS_UTILS
) $(IPKG_TARGET_DIR
)
92 ROOT
="$(INSTALL_DIR)" \
93 KERNEL
="$(LINUX_VERSION)" \
94 KERNEL_SOURCES
="$(LINUX_DIR)" \
100 $(I_SHFS_UTILS
)/usr \
105 @cat
$(I_KMOD_SHFS
)/CONTROL
/control
107 @cat
$(I_SHFS_UTILS
)/CONTROL
/control
111 .PHONY
: configure build
install package
clean control
This page took 0.042451 seconds and 5 git commands to generate.