From: aduskett at gmail.com <aduskett@gmail.com>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH/next 2/3] package/openrc: add libselinux support
Date: Sat, 29 Feb 2020 15:28:27 -0800 [thread overview]
Message-ID: <20200229232829.4177324-2-aduskett@gmail.com> (raw)
In-Reply-To: <20200229232829.4177324-1-aduskett@gmail.com>
From: Adam Duskett <Aduskett@gmail.com>
If the libselinux package is selected, add the package to the dependency list
and explicitly set OPENRC_MAKE_OPTS += MKSELINUX=yes
Signed-off-by: Adam Duskett <Aduskett@gmail.com>
---
package/openrc/openrc.mk | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
diff --git a/package/openrc/openrc.mk b/package/openrc/openrc.mk
index b1b3ed2c56..57d156807c 100644
--- a/package/openrc/openrc.mk
+++ b/package/openrc/openrc.mk
@@ -18,7 +18,6 @@ OPENRC_MAKE_OPTS = \
LIBNAME=lib \
LIBEXECDIR=/usr/libexec/rc \
MKPKGCONFIG=no \
- MKSELINUX=no \
MKSYSVINIT=yes \
BRANDING="Buildroot $(BR2_VERSION_FULL)" \
CC=$(TARGET_CC)
@@ -29,6 +28,13 @@ else
OPENRC_MAKE_OPTS += MKSTATICLIBS=yes
endif
+ifeq ($(BR2_PACKAGE_LIBSELINUX),y)
+OPENRC_MAKE_OPTS += MKSELINUX=yes
+OPENRC_DEPENDENCIES += libselinux
+else
+OPENRC_MAKE_OPTS += MKSELINUX=no
+endif
+
define OPENRC_BUILD_CMDS
$(MAKE) $(OPENRC_MAKE_OPTS) -C $(@D)
endef
--
2.24.1
next prev parent reply other threads:[~2020-02-29 23:28 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-02-29 23:28 [Buildroot] [PATCH/next 1/3] package/openrc: bump to version 0.42.1 aduskett at gmail.com
2020-02-29 23:28 ` aduskett at gmail.com [this message]
2020-02-29 23:28 ` [Buildroot] [PATCH/next 3/3] support/testing: add openrc tests aduskett at gmail.com
2020-03-01 12:18 ` [Buildroot] [PATCH/next 1/3] package/openrc: bump to version 0.42.1 Carlos Santos
2020-03-01 13:18 ` Yann E. MORIN
2020-03-01 15:19 ` Carlos Santos
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=20200229232829.4177324-2-aduskett@gmail.com \
--to=aduskett@gmail.com \
--cc=buildroot@busybox.net \
/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
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox