package/systemd: add support for apparmor
authorAdam Duskett <Aduskett@gmail.com>
Fri, 8 May 2020 01:59:56 +0000 (18:59 -0700)
committerThomas Petazzoni <thomas.petazzoni@bootlin.com>
Sat, 9 May 2020 11:42:42 +0000 (13:42 +0200)
If libapparmor is selected, depend on libapparmor and set -Dapparmor=true

Signed-off-by: Adam Duskett <Aduskett@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
package/systemd/systemd.mk

index 9f5429fd191a31969771e1cebe44965276f5b10e..50398e747e57c10b20a61a066d267df4a935eea4 100644 (file)
@@ -49,6 +49,13 @@ else
 SYSTEMD_CONF_OPTS += -Dacl=false
 endif
 
+ifeq ($(BR2_PACKAGE_LIBAPPARMOR),y)
+SYSTEMD_DEPENDENCIES += libapparmor
+SYSTEMD_CONF_OPTS += -Dapparmor=true
+else
+SYSTEMD_CONF_OPTS += -Dapparmor=false
+endif
+
 ifeq ($(BR2_PACKAGE_AUDIT),y)
 SYSTEMD_DEPENDENCIES += audit
 SYSTEMD_CONF_OPTS += -Daudit=true