@@ -14,6 +14,9 @@ POLKIT_INSTALL_STAGING = YES
POLKIT_DEPENDENCIES = \
libglib2 host-intltool expat spidermonkey $(TARGET_NLS_DEPENDENCIES)
+HOST_POLKIT_DEPENDENCIES = \
+ host-libglib2 host-intltool host-expat host-spidermonkey
+
# spidermonkey needs C++11
POLKIT_CONF_ENV = \
CXXFLAGS="$(TARGET_CXXFLAGS) -std=c++11" \
@@ -26,6 +29,17 @@ POLKIT_CONF_OPTS = \
--disable-libelogind \
--disable-libsystemd-login
+# The only reason for building the host polkit is to build udisks.
+# As such, only the bare minimum is enabled.
+HOST_POLKIT_CONF_OPTS = \
+ --with-os-type=unknown \
+ --disable-man-pages \
+ --disable-examples \
+ --disable-libelogind \
+ --disable-libsystemd-login \
+ --disable-introspection \
+ --with-authfw=shadow
+
ifeq ($(BR2_PACKAGE_GOBJECT_INTROSPECTION),y)
POLKIT_CONF_OPTS += --enable-introspection
POLKIT_DEPENDENCIES += gobject-introspection
@@ -57,3 +71,4 @@ define POLKIT_INSTALL_INIT_SYSTEMD
endef
$(eval $(autotools-package))
+$(eval $(host-autotools-package))