From mboxrd@z Thu Jan 1 00:00:00 1970 Delivery-date: Tue, 22 Jun 2021 18:35:32 +0200 Received: from metis.ext.pengutronix.de ([2001:67c:670:201:290:27ff:fe1d:cc33]) by lore.white.stw.pengutronix.de with esmtp (Exim 4.92) (envelope-from ) id 1lvjN6-0007EK-PQ for lore@lore.pengutronix.de; Tue, 22 Jun 2021 18:35:32 +0200 Received: from localhost ([127.0.0.1] helo=metis.ext.pengutronix.de) by metis.ext.pengutronix.de with esmtp (Exim 4.92) (envelope-from ) id 1lvjN6-0007N8-Bd; Tue, 22 Jun 2021 18:35:32 +0200 Received: from mail-qv1-xf2c.google.com ([2607:f8b0:4864:20::f2c]) by metis.ext.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1lvjMm-0007Md-85 for ptxdist@pengutronix.com; Tue, 22 Jun 2021 18:35:13 +0200 Received: by mail-qv1-xf2c.google.com with SMTP id u2so3104035qvp.13 for ; Tue, 22 Jun 2021 09:35:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=TjZ17z1iqlBq/5sBUpp6d+LxNslX4JepOcMwKLfK1C8=; b=rBHJhkwIu1N7ZBavw7c317FdzvkhmXMTGRTB5RDeLNnIhm53Wux2E1Z90yiGJ/FhPA M3iEXS5OaxYOtY01cGCKurb/fRMpqwL/7nQ46SALopYNNp2IxbKsDEsPqmRYVHx5/cGX fU045UG1j37uINfkB796nmC53qGxEIFXoDFxlw2ccxYMnTmuC3jO/Vc3246ieimFk+r5 VLi477xyrfLOXRZo3j8pZxIRWcE9SYOTIXNrRNR5Wm8u0e1rydugU9Bkvbv0uR/Wc58f ujaCuUV3/UOQvVIQVScaJ8vOs0fNcKJBHf+pPhI+VzttgQz+koQGAWrW6ayB1DNp96di k+Wg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :mime-version:content-transfer-encoding; bh=TjZ17z1iqlBq/5sBUpp6d+LxNslX4JepOcMwKLfK1C8=; b=WUHxa/GAsHm5DCDQeAKvlO6A+P2OyQ4mGJf80ukFkXo5/dtDAN43fiTCERIKgzQaze ZWAKkRkg0Y3MTXwdDqFAs3ccWRxDNh4pM2U/I7wHvoni9bmuKrTr/mI28/fPg1jkHofL A9AfXPQkKVHhLyxUOWgUcgG9YaynmEHSpIaMg3eY31x4qWXsQ0s1jyb9d0+VCNqnWJzO /SVfSQ3KHsJ9BXSWJKsk6bs4X6pgMWUf7wNO+ZKifwH68oxJaFNdgpjGJx+QmWM7x/pn JM7NO7JVZY7Z25/7LpZEuPieMTEFrPFSGCstXBIAsPp+nq0TgSuYIYGT5sXxdMxBy/EX 7FHA== X-Gm-Message-State: AOAM532rJdnElWmrLt4dsfgW/R+nzt8zypmXclztYCmYnk+ZLLi5irLn sn/D6+KOB/TdRUKwXXg9nKR1MIAsLak= X-Google-Smtp-Source: ABdhPJwGHS7xRyJ8DrR0Dtl7EyG4KtZwyNuQXi4ZqU8iAV2kwYC00OklK7sizIz4XOcInuUYAKUY8A== X-Received: by 2002:a05:6214:a0f:: with SMTP id dw15mr26488402qvb.10.1624379710318; Tue, 22 Jun 2021 09:35:10 -0700 (PDT) Received: from fw-tools01.tools.gridpoint.ops (ec2-54-204-95-23.compute-1.amazonaws.com. [54.204.95.23]) by smtp.gmail.com with ESMTPSA id e3sm1964743qts.34.2021.06.22.09.35.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 22 Jun 2021 09:35:09 -0700 (PDT) From: jon@ringle.org To: ptxdist@pengutronix.com Date: Tue, 22 Jun 2021 16:35:04 +0000 Message-Id: <20210622163504.11158-1-jon@ringle.org> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on metis.ext.pengutronix.de X-Spam-Level: X-Spam-Status: No, score=-1.5 required=4.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_EF,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE, SPF_PASS,URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.2 Subject: [ptxdist] [PATCH] host-systemd: Add option to install dev files X-BeenThere: ptxdist@pengutronix.de X-Mailman-Version: 2.1.29 Precedence: list List-Id: PTXdist Development Mailing List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: ptxdist@pengutronix.de Cc: Jon Ringle Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "ptxdist" X-SA-Exim-Connect-IP: 127.0.0.1 X-SA-Exim-Mail-From: ptxdist-bounces@pengutronix.de X-SA-Exim-Scanned: No (on metis.ext.pengutronix.de); SAEximRunCond expanded to false From: Jon Ringle 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 --- 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