From: jon@ringle.org To: ptxdist@pengutronix.com Cc: Jon Ringle <jringle@gridpoint.com> Subject: [ptxdist] [PATCH] host-systemd: Add option to install dev files Date: Tue, 22 Jun 2021 16:35:04 +0000 [thread overview] Message-ID: <20210622163504.11158-1-jon@ringle.org> (raw) From: Jon Ringle <jringle@gridpoint.com> Doing a full install that include dev files is helpful if a project needs this support. I created a host-sdbus-cpp project that depends on libsystemd. The -Drootprefix=/ was required to have cmake pkg-config work properly. Signed-off-by: Jon Ringle <jringle@gridpoint.com> --- rules/host-systemd.in | 7 +++++++ rules/host-systemd.make | 7 +++++++ 2 files changed, 14 insertions(+) diff --git a/rules/host-systemd.in b/rules/host-systemd.in index f80d9de10..828694f80 100644 --- a/rules/host-systemd.in +++ b/rules/host-systemd.in @@ -7,3 +7,10 @@ config HOST_SYSTEMD select HOST_GPERF select HOST_UTIL_LINUX_NG select HOST_LIBCAP + +config HOST_SYSTEMD_INSTALL_DEV + bool + default n + help + Install host systemd development headers/libs + diff --git a/rules/host-systemd.make b/rules/host-systemd.make index 42409d7b5..58b44a683 100644 --- a/rules/host-systemd.make +++ b/rules/host-systemd.make @@ -20,6 +20,7 @@ HOST_SYSTEMD_CONF_TOOL := meson HOST_SYSTEMD_CONF_OPT := \ $(HOST_MESON_OPT) \ -Dprefix=/usr \ + -Drootprefix=/ \ -Dacl=false \ -Dadm-group=true \ -Danalyze=false \ @@ -157,7 +158,9 @@ HOST_SYSTEMD_CONF_OPT := \ -Dzlib=false \ -Dzstd=false +ifndef PTXCONF_HOST_SYSTEMD_INSTALL_DEV HOST_SYSTEMD_MAKE_OPT := systemd-hwdb +endif # ---------------------------------------------------------------------------- # Install @@ -165,11 +168,15 @@ HOST_SYSTEMD_MAKE_OPT := systemd-hwdb $(STATEDIR)/host-systemd.install: @$(call targetinfo) +ifdef PTXCONF_HOST_SYSTEMD_INSTALL_DEV + @$(call world/install, HOST_SYSTEMD) +else @rm -rf $(HOST_SYSTEMD_PKGDIR) @install -vD -m755 $(HOST_SYSTEMD_DIR)-build/systemd-hwdb \ $(HOST_SYSTEMD_PKGDIR)/bin/systemd-hwdb @install -vD -m755 $(HOST_SYSTEMD_DIR)-build/src/shared/libsystemd-shared-$(SYSTEMD_VERSION_MAJOR).so \ $(HOST_SYSTEMD_PKGDIR)/lib/libsystemd-shared-$(SYSTEMD_VERSION_MAJOR).so @$(call touch) +endif # vim: syntax=make -- 2.25.1 _______________________________________________ ptxdist mailing list ptxdist@pengutronix.de To unsubscribe, send a mail with subject "unsubscribe" to ptxdist-request@pengutronix.de
next reply other threads:[~2021-06-22 16:35 UTC|newest] Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top 2021-06-22 16:35 jon [this message] 2021-06-25 9:40 ` Michael Olbrich [not found] ` <CAMwGMjzr_sOSJRwd+544XJYxQ_sD+oLXQmK-sxi7seu9AR_QwA@mail.gmail.com> 2021-07-08 4:59 ` Michael Olbrich [not found] ` <CAMwGMjw8rXn5vfJp+UNvyWaD4x4d_PSPz9Ucr4HLK2Mh1niSYQ@mail.gmail.com> 2021-07-09 14:02 ` Michael Olbrich
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20210622163504.11158-1-jon@ringle.org \ --to=jon@ringle.org \ --cc=jringle@gridpoint.com \ --cc=ptxdist@pengutronix.com \ --cc=ptxdist@pengutronix.de \ --subject='Re: [ptxdist] [PATCH] host-systemd: Add option to install dev files' \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: link
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox