package/apparmor: add option to install binutils

Signed-off-by: Angelo Compagnucci <angelo@amarulasolutions.com>
[yann.morin.1998@free.fr: split off to its own patch]
Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
Tested-by: Angelo Compagnucci <angelo@amarulasolutions.com>
This commit is contained in:
Angelo Compagnucci 2020-03-27 22:13:14 +01:00 committed by Yann E. MORIN
parent 007ee0765e
commit fa9466f5a4
2 changed files with 14 additions and 0 deletions

View File

@ -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

View File

@ -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) \