summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhil Sutter <phil.sutter@viprinet.com>2011-01-07 18:21:35 +0100
committerWaldemar Brodkorb <wbx@openadk.org>2011-01-10 10:46:25 +0100
commitf4a09e5bcfae0ef53f3a97a5a37545f57dc0ccbb (patch)
treef591e0bf4326f82fba63f81d40bbe4d05dd8fc1b
parentd7e0c1a45998a1617b295f76e0a075337c57c6f4 (diff)
add a subpackage for the static e2fsck build
Signed-off-by: Phil Sutter <phil.sutter@viprinet.com>
-rw-r--r--package/e2fsprogs/Makefile13
1 files changed, 12 insertions, 1 deletions
diff --git a/package/e2fsprogs/Makefile b/package/e2fsprogs/Makefile
index d2a46c800..616979b29 100644
--- a/package/e2fsprogs/Makefile
+++ b/package/e2fsprogs/Makefile
@@ -15,7 +15,7 @@ PKG_SITES:= ${MASTER_SITE_SOURCEFORGE:=e2fsprogs/}
PKG_CFLINE_E2FSPROGS:= default y if ADK_TARGET_ROOTFS_CF
-PKG_SUBPKGS:= E2FSPROGS LIBUUID LIBCOM_ERR LIBSS LIBBLKID
+PKG_SUBPKGS:= E2FSPROGS LIBUUID LIBCOM_ERR LIBSS LIBBLKID E2FSCK_STATIC
PKGSD_LIBUUID:= UUID library
PKGSC_LIBUUID:= libs
PKGSD_LIBCOM_ERR:= Common error library
@@ -24,6 +24,8 @@ PKGSD_LIBSS:= Subsystem command parsing library
PKGSC_LIBSS:= libs
PKGSD_LIBBLKID:= Libblkid
PKGSC_LIBBLKID:= libs
+PKGSD_E2FSCK_STATIC:= Static build of e2fsck
+PKGSC_E2FSCK_STATIC:= fs
include ${TOPDIR}/mk/package.mk
@@ -32,6 +34,7 @@ $(eval $(call PKG_template,LIBUUID,libuuid,${PKG_VERSION}-${PKG_RELEASE},,${PKGS
$(eval $(call PKG_template,LIBCOM_ERR,libcom-err,${PKG_VERSION}-${PKG_RELEASE},,${PKGSD_LIBCOM_ERR},${PKGSC_LIBCOM_ERR}))
$(eval $(call PKG_template,LIBSS,libss,${PKG_VERSION}-${PKG_RELEASE},,${PKGSD_LIBSS},${PKGSC_LIBSS}))
$(eval $(call PKG_template,LIBBLKID,libblkid,${PKG_VERSION}-${PKG_RELEASE},,${PKGSD_LIBBLKID},${PKGSC_LIBBLKID}))
+$(eval $(call PKG_template,E2FSCK_STATIC,e2fsck-static,${PKG_VERSION}-${PKG_RELEASE},,${PKGSD_E2FSCK_STATIC},${PKGSC_E2FSCK_STATIC}))
CONFIGURE_ARGS+= --enable-elf-shlibs --disable-tls
INSTALL_TARGET+= install-libs
@@ -44,6 +47,11 @@ pre-build:
CPPFLAGS="" \
subst
+post-build:
+ ${MAKE} -C ${WRKBUILD}/e2fsck e2fsck.static
+ ${INSTALL_DIR} ${WRKINST}/usr/sbin
+ ${INSTALL_BIN} ${WRKBUILD}/e2fsck/e2fsck.static ${WRKINST}/usr/sbin/
+
post-install:
${INSTALL_DIR} ${IDIR_E2FSPROGS}/etc
${INSTALL_DATA} ${WRKINST}/etc/mke2fs.conf ${IDIR_E2FSPROGS}/etc/
@@ -75,5 +83,8 @@ post-install:
${CP} ${WRKBUILD}/lib/uuid/uuid.h \
${STAGING_TARGET_DIR}/usr/include/uuid
${CP} ${WRKINST}/usr/bin/compile_et ${STAGING_HOST_DIR}/bin
+ ${INSTALL_DIR} ${IDIR_E2FSCK_STATIC}/usr/sbin
+ ${INSTALL_BIN} ${WRKINST}/usr/sbin/e2fsck.static \
+ ${IDIR_E2FSCK_STATIC}/usr/sbin/e2fsck
include ${TOPDIR}/mk/pkg-bottom.mk