mirror of
https://github.com/motioneye-project/motioneyeos.git
synced 2025-07-31 15:07:43 +00:00
systemd: convert to pkg-meson infra
Signed-off-by: Eric Le Bihan <eric.le.bihan.dev@free.fr> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
This commit is contained in:
parent
2f0dbd1afb
commit
ebcf58ad07
@ -12,7 +12,6 @@ SYSTEMD_INSTALL_STAGING = YES
|
|||||||
SYSTEMD_DEPENDENCIES = \
|
SYSTEMD_DEPENDENCIES = \
|
||||||
host-gperf \
|
host-gperf \
|
||||||
host-intltool \
|
host-intltool \
|
||||||
host-meson \
|
|
||||||
kmod \
|
kmod \
|
||||||
libcap \
|
libcap \
|
||||||
util-linux
|
util-linux
|
||||||
@ -26,10 +25,6 @@ SYSTEMD_DEPENDENCIES += busybox
|
|||||||
endif
|
endif
|
||||||
|
|
||||||
SYSTEMD_CONF_OPTS += \
|
SYSTEMD_CONF_OPTS += \
|
||||||
--prefix=/usr \
|
|
||||||
--libdir='/usr/lib' \
|
|
||||||
--buildtype $(if $(BR2_ENABLE_DEBUG),debug,release) \
|
|
||||||
--cross-file $(HOST_DIR)/etc/meson/cross-compilation.conf \
|
|
||||||
-Drootlibdir='/usr/lib' \
|
-Drootlibdir='/usr/lib' \
|
||||||
-Dblkid=true \
|
-Dblkid=true \
|
||||||
-Dman=false \
|
-Dman=false \
|
||||||
@ -403,28 +398,7 @@ define SYSTEMD_INSTALL_INIT_SYSTEMD
|
|||||||
$(SYSTEMD_INSTALL_NETWORK_CONFS)
|
$(SYSTEMD_INSTALL_NETWORK_CONFS)
|
||||||
endef
|
endef
|
||||||
|
|
||||||
SYSTEMD_NINJA_OPTS = $(if $(VERBOSE),-v) -j$(PARALLEL_JOBS)
|
SYSTEMD_CONF_ENV = $(HOST_UTF8_LOCALE_ENV)
|
||||||
|
SYSTEMD_NINJA_ENV = $(HOST_UTF8_LOCALE_ENV)
|
||||||
|
|
||||||
SYSTEMD_ENV = $(TARGET_MAKE_ENV) $(HOST_UTF8_LOCALE_ENV)
|
$(eval $(meson-package))
|
||||||
|
|
||||||
define SYSTEMD_CONFIGURE_CMDS
|
|
||||||
rm -rf $(@D)/build
|
|
||||||
mkdir -p $(@D)/build
|
|
||||||
$(SYSTEMD_ENV) meson $(SYSTEMD_CONF_OPTS) $(@D) $(@D)/build
|
|
||||||
endef
|
|
||||||
|
|
||||||
define SYSTEMD_BUILD_CMDS
|
|
||||||
$(SYSTEMD_ENV) ninja $(SYSTEMD_NINJA_OPTS) -C $(@D)/build
|
|
||||||
endef
|
|
||||||
|
|
||||||
define SYSTEMD_INSTALL_TARGET_CMDS
|
|
||||||
$(SYSTEMD_ENV) DESTDIR=$(TARGET_DIR) ninja $(SYSTEMD_NINJA_OPTS) \
|
|
||||||
-C $(@D)/build install
|
|
||||||
endef
|
|
||||||
|
|
||||||
define SYSTEMD_INSTALL_STAGING_CMDS
|
|
||||||
$(SYSTEMD_ENV) DESTDIR=$(STAGING_DIR) ninja $(SYSTEMD_NINJA_OPTS) \
|
|
||||||
-C $(@D)/build install
|
|
||||||
endef
|
|
||||||
|
|
||||||
$(eval $(generic-package))
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user