summaryrefslogtreecommitdiffstats
path: root/remote/modules/systemd
diff options
context:
space:
mode:
Diffstat (limited to 'remote/modules/systemd')
-rw-r--r--remote/modules/systemd/systemd.build20
-rw-r--r--remote/modules/systemd/systemd.conf2
2 files changed, 20 insertions, 2 deletions
diff --git a/remote/modules/systemd/systemd.build b/remote/modules/systemd/systemd.build
index 3a5baf07..b1228f17 100644
--- a/remote/modules/systemd/systemd.build
+++ b/remote/modules/systemd/systemd.build
@@ -15,16 +15,29 @@ build () {
cd "${MODULE_DIR}/src/$REQUIRED_LIBKMOD_VERSION"
./configure || perror "./configure kmod failed."
make || perror "kmod make failed."
- make install || perror "kmod make install failed."
+ DESTDIR="${MODULE_BUILD_DIR}" make install || perror "kmod make install failed."
cd - &> /dev/null
#build systemd
pinfo "Building systemd"
cd "${MODULE_DIR}/src/$REQUIRED_VERSION"
pinfo "calling configure"
+
+ # Save potentially pre-used paths/flages
+ OLDLDFLAGS="$LDFLAGS"
+ OLDCPPFLAGS="$CPPFLAGS"
+ OLDPKG_CONFIG_PATH="PKG_CONFIG_PATH"
+
+
+ LDFLAGS="$LDFLAGS -L${MODULE_BUILD_DIR}/usr/$LIB64" \
+ CPPFLAGS="-I${MODULE_BUILD_DIR}/usr/include"
+ PKG_CONFIG_PATH="${MODULE_BUILD_DIR}/usr/$LIB64/pkgconfig"
+
+ pinfo "-------- $KMOD_LIBS ----------"
./configure --disable-manpages --enable-split-usr --sysconfdir="/etc" --enable-gtk-doc-html=no --disable-nls \
--disable-microhttpd --disable-bootchart --disable-quotacheck --disable-hostnamed --disable-timedated \
--disable-localed --disable-coredump --disable-keymap --without-python --enable-blkid --enable-acl --enable-pam \
+ --enable-kmod \
|| perror "configure failed."
pinfo "calling make"
make || perror "make failed."
@@ -32,6 +45,11 @@ build () {
DESTDIR="${MODULE_BUILD_DIR}" make install || perror "make install failed."
cd - &> /dev/null
+ # Restore used flags/paths:
+ LDFLAGS="$OLDLDFLAGS"
+ CPPFLAGS="$OLDCPPFLAGS"
+ PKG_CONFIG_PATH="$OLDPKG_CONFIG_PATH"
+
# Delete unneeded services
pinfo "Deleting unneeded services"
local SERVICE=
diff --git a/remote/modules/systemd/systemd.conf b/remote/modules/systemd/systemd.conf
index ea042020..3cb6196a 100644
--- a/remote/modules/systemd/systemd.conf
+++ b/remote/modules/systemd/systemd.conf
@@ -1,6 +1,6 @@
REQUIRED_VERSION="systemd-204"
REQUIRED_URL="http://www.freedesktop.org/software/systemd/${REQUIRED_VERSION}.tar.xz"
-REQUIRED_LIBKMOD_VERSION="kmod-12"
+REQUIRED_LIBKMOD_VERSION="kmod-14"
REQUIRED_LIBKMOD_URL="http://www.kernel.org/pub/linux/utils/kernel/kmod/${REQUIRED_LIBKMOD_VERSION}.tar.gz"
REQUIRED_DISABLED_SERVICES="
tmp.mount