From: Angelo Compagnucci Date: Fri, 27 Mar 2020 21:13:14 +0000 (+0100) Subject: package/apparmor: add option to install binutils X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=fa9466f5a47dd7248ec13f369336c0aca0f53d12;p=buildroot.git package/apparmor: add option to install binutils Signed-off-by: Angelo Compagnucci [yann.morin.1998@free.fr: split off to its own patch] Signed-off-by: Yann E. MORIN Tested-by: Angelo Compagnucci --- diff --git a/package/apparmor/Config.in b/package/apparmor/Config.in index e219507803..edc837366d 100644 --- a/package/apparmor/Config.in +++ b/package/apparmor/Config.in @@ -18,6 +18,16 @@ config BR2_PACKAGE_APPARMOR http://wiki.apparmor.net +if BR2_PACKAGE_APPARMOR + +config BR2_PACKAGE_APPARMOR_BINUTILS + bool "binutils" + help + A set of utilities (written in C): + aa-enabled aa-exec + +endif # BR2_PACKAGE_APPARMOR + comment "apparmor needs a toolchain w/ headers >= 3.16, threads, C++" depends on BR2_USE_MMU depends on BR2_TOOLCHAIN_HAS_SYNC_4 diff --git a/package/apparmor/apparmor.mk b/package/apparmor/apparmor.mk index cab37d06a6..9ee5304a16 100644 --- a/package/apparmor/apparmor.mk +++ b/package/apparmor/apparmor.mk @@ -17,6 +17,10 @@ APPARMOR_DEPENDENCIES = libapparmor APPARMOR_TOOLS = parser APPARMOR_MAKE_OPTS = USE_SYSTEM=1 +ifeq ($(BR2_PACKAGE_APPARMOR_BINUTILS),y) +APPARMOR_TOOLS += binutils +endif + define APPARMOR_BUILD_CMDS $(foreach tool,$(APPARMOR_TOOLS),\ $(TARGET_MAKE_ENV) $(TARGET_CONFIGURE_OPTS) \