1 # This file is part of the OpenADK project. OpenADK is copyrighted
2 # material, please see the LICENCE file in the top-level directory.
4 include $(ADK_TOPDIR
)/rules.mk
9 PKG_HASH
:= ddba23e44e06cbe32c7b1026bc92f9487b9cb08c89e961d007cb2a5e87c4ef5e
10 PKG_DESCR
:= ext2
/3/4 filesystem utilities
12 PKG_BUILDDEP
:= util-linux
14 PKG_URL
:= http
://e2fsprogs.sourceforge.net
/
15 PKG_SITES
:= https
://www.kernel.org
/pub
/linux
/kernel
/people
/tytso
/e2fsprogs
/v
$(PKG_VERSION
)/
19 PKG_CFLINE_E2FSPROGS
:= select BUSYBOX_FSCK
21 PKG_SUBPKGS
:= LIBE2FS LIBCOM_ERR LIBSS
22 PKG_SUBPKGS
+= RESIZE2FS TUNE2FS E2FSCK MKE2FS
23 PKG_SUBPKGS
+= E2FSCK_STATIC TUNE2FS_STATIC
24 PKGSD_LIBE2FS
:= e2fsprogs library
25 PKGSC_LIBE2FS
:= libs
/misc
26 PKGSD_LIBCOM_ERR
:= common error library
27 PKGSC_LIBCOM_ERR
:= libs
/misc
28 PKGSD_LIBSS
:= subsystem command parsing library
29 PKGSC_LIBSS
:= libs
/misc
30 PKGSD_E2FSCK_STATIC
:= Static build of e2fsck
31 PKGSC_E2FSCK_STATIC
:= sys
/fs
32 PKGSD_TUNE2FS_STATIC
:= Static build of tune2fs
33 PKGSC_TUNE2FS_STATIC
:= sys
/fs
34 PKGSD_RESIZE2FS
:= ext2
/3/4 resize utility
35 PKGSC_RESIZE2FS
:= sys
/fs
36 PKGSS_RESIZE2FS
:= libe2fs libcom-err libblkid
37 PKGSD_TUNE2FS
:= ext2
/3/4 tune utility
38 PKGSC_TUNE2FS
:= sys
/fs
39 PKGSS_TUNE2FS
:= libe2fs libcom-err libblkid libuuid
40 PKGSD_E2FSCK
:= ext2
/3/4 filesystem
check utility
42 PKGSS_E2FSCK
:= libe2fs libcom-err libblkid libuuid
43 PKGSD_MKE2FS
:= ext2
/3/4 filesystem creation utility
45 PKGSS_MKE2FS
:= libe2fs libcom-err libblkid libuuid libncurses
47 include $(ADK_TOPDIR
)/mk
/host.mk
48 include $(ADK_TOPDIR
)/mk
/package.mk
50 $(eval
$(call HOST_template
,E2FSPROGS
,e2fsprogs
,$(PKG_VERSION
)-$(PKG_RELEASE
)))
51 $(eval
$(call PKG_template
,LIBE2FS
,libe2fs
,$(PKG_VERSION
)-$(PKG_RELEASE
),,$(PKGSD_LIBE2FS
),$(PKGSC_LIBE2FS
),$(PKG_OPTS
)))
52 $(eval
$(call PKG_template
,LIBCOM_ERR
,libcom-err
,$(PKG_VERSION
)-$(PKG_RELEASE
),,$(PKGSD_LIBCOM_ERR
),$(PKGSC_LIBCOM_ERR
),$(PKG_OPTS
)))
53 $(eval
$(call PKG_template
,LIBSS
,libss
,$(PKG_VERSION
)-$(PKG_RELEASE
),,$(PKGSD_LIBSS
),$(PKGSC_LIBSS
),$(PKG_OPTS
)))
54 $(eval
$(call PKG_template
,TUNE2FS
,tune2fs
,$(PKG_VERSION
)-$(PKG_RELEASE
),$(PKGSS_TUNE2FS
),$(PKGSD_TUNE2FS
),$(PKGSC_TUNE2FS
)))
55 $(eval
$(call PKG_template
,RESIZE2FS
,resize2fs
,$(PKG_VERSION
)-$(PKG_RELEASE
),$(PKGSS_RESIZE2FS
),$(PKGSD_RESIZE2FS
),$(PKGSC_RESIZE2FS
)))
56 $(eval
$(call PKG_template
,MKE2FS
,mke2fs
,$(PKG_VERSION
)-$(PKG_RELEASE
),$(PKGSS_MKE2FS
),$(PKGSD_MKE2FS
),$(PKGSC_MKE2FS
)))
57 $(eval
$(call PKG_template
,E2FSCK
,e2fsck
,$(PKG_VERSION
)-$(PKG_RELEASE
),$(PKGSS_E2FSCK
),$(PKGSD_E2FSCK
),$(PKGSC_E2FSCK
)))
58 $(eval
$(call PKG_template
,E2FSCK_STATIC
,e2fsck-static
,${PKG_VERSION}-${PKG_RELEASE},,${PKGSD_E2FSCK_STATIC},${PKGSC_E2FSCK_STATIC}))
59 $(eval
$(call PKG_template
,TUNE2FS_STATIC
,tune2fs-static
,${PKG_VERSION}-${PKG_RELEASE},,${PKGSD_E2FSCK_STATIC},${PKGSC_E2FSCK_STATIC}))
61 HOST_CONFIGURE_ARGS
+= --disable-rpath \
67 ifeq ($(ADK_TARGET_USE_STATIC_LIBS
),y
)
68 CONFIGURE_ARGS
+= --disable-elf-shlibs
70 CONFIGURE_ARGS
+= --enable-elf-shlibs
73 CONFIGURE_ARGS
+= --disable-rpath \
75 --disable-testio-debug \
78 --enable-verbose-makecmds \
81 TARGET_CFLAGS
+= $(TARGET_CPPFLAGS
) -I
$(STAGING_TARGET_DIR
)/usr
/include
82 MAKE_FLAGS
+= BUILD_CC
="$(HOST_CC)" \
83 BUILD_CFLAGS
="$(HOST_CFLAGS) $(HOST_CPPFLAGS) -I$(WRKSRC)/lib -I." \
84 BUILD_LDFLAGS
="$(HOST_LDFLAGS)"
87 $(INSTALL_DIR
) $(IDIR_LIBE2FS
)/etc
88 $(INSTALL_DATA
) $(WRKBUILD
)/misc
/mke2fs.conf
$(IDIR_LIBE2FS
)/etc
89 $(INSTALL_DIR
) $(IDIR_LIBE2FS
)/usr
/lib
90 $(CP
) $(WRKINST
)/usr
/lib
/lib
{e2p
,ext2fs
}.so.
* \
91 $(IDIR_LIBE2FS
)/usr
/lib
94 $(INSTALL_DIR
) $(IDIR_E2FSCK
)/usr
/sbin
95 $(INSTALL_BIN
) $(WRKINST
)/usr
/sbin
/e2fsck
$(IDIR_E2FSCK
)/usr
/sbin
96 cd
$(IDIR_E2FSCK
)/usr
/sbin
&& ln
-sf e2fsck fsck.ext2
97 cd
$(IDIR_E2FSCK
)/usr
/sbin
&& ln
-sf e2fsck fsck.ext3
98 cd
$(IDIR_E2FSCK
)/usr
/sbin
&& ln
-sf e2fsck fsck.ext4
101 $(INSTALL_DIR
) $(IDIR_MKE2FS
)/usr
/sbin
102 $(INSTALL_BIN
) $(WRKINST
)/usr
/sbin
/mke2fs
$(IDIR_MKE2FS
)/usr
/sbin
103 cd
$(IDIR_MKE2FS
)/usr
/sbin
&& ln
-sf mke2fs mkfs.ext2
104 cd
$(IDIR_MKE2FS
)/usr
/sbin
&& ln
-sf mke2fs mkfs.ext3
105 cd
$(IDIR_MKE2FS
)/usr
/sbin
&& ln
-sf mke2fs mkfs.ext4
108 $(INSTALL_DIR
) $(IDIR_TUNE2FS
)/usr
/sbin
109 $(INSTALL_BIN
) $(WRKINST
)/usr
/sbin
/tune2fs
$(IDIR_TUNE2FS
)/usr
/sbin
112 $(INSTALL_DIR
) $(IDIR_RESIZE2FS
)/usr
/sbin
113 $(INSTALL_BIN
) $(WRKINST
)/usr
/sbin
/resize2fs
$(IDIR_RESIZE2FS
)/usr
/sbin
116 $(INSTALL_DIR
) $(IDIR_LIBCOM_ERR
)/usr
/lib
117 $(CP
) $(WRKINST
)/usr
/lib
/libcom_err.so
* \
118 $(IDIR_LIBCOM_ERR
)/usr
/lib
121 $(INSTALL_DIR
) $(IDIR_LIBSS
)/usr
/lib
122 $(CP
) $(WRKINST
)/usr
/lib
/libss.so
* \
123 $(IDIR_LIBSS
)/usr
/lib
125 e2fsck-static-install
:
126 ${MAKE} -C
${WRKBUILD}/e2fsck e2fsck.static
127 ${INSTALL_DIR} ${IDIR_E2FSCK_STATIC}/usr
/sbin
128 ${INSTALL_BIN} ${WRKBUILD}/e2fsck
/e2fsck.static \
129 ${IDIR_E2FSCK_STATIC}/usr
/sbin
/e2fsck
131 tune2fs-static-install
:
132 ${MAKE} -C
${WRKBUILD}/misc tune2fs.static
133 ${INSTALL_DIR} ${IDIR_TUNE2FS_STATIC}/usr
/sbin
134 ${INSTALL_BIN} ${WRKBUILD}/misc
/tune2fs.static \
135 ${IDIR_TUNE2FS_STATIC}/usr
/sbin
/tune2fs
137 include $(ADK_TOPDIR
)/mk
/host-bottom.mk
138 include $(ADK_TOPDIR
)/mk
/pkg-bottom.mk