2015-01-07 18:10:36 +01:00
|
|
|
################################################################################
|
|
|
|
#
|
|
|
|
# checkpolicy
|
|
|
|
#
|
|
|
|
################################################################################
|
|
|
|
|
2017-01-09 17:15:19 +01:00
|
|
|
CHECKPOLICY_VERSION = 2.6
|
|
|
|
CHECKPOLICY_SITE = https://raw.githubusercontent.com/wiki/SELinuxProject/selinux/files/releases/20161014
|
2017-03-30 15:43:32 +02:00
|
|
|
CHECKPOLICY_LICENSE = GPL-2.0
|
2015-01-07 18:10:36 +01:00
|
|
|
CHECKPOLICY_LICENSE_FILES = COPYING
|
|
|
|
|
2017-02-02 23:45:03 +01:00
|
|
|
CHECKPOLICY_DEPENDENCIES = libselinux flex host-flex host-bison
|
|
|
|
|
|
|
|
TARGET_CHECKPOLICY_MAKE_OPTS = $(TARGET_CONFIGURE_OPTS) \
|
2017-07-05 13:14:19 +02:00
|
|
|
LEX="$(HOST_DIR)/bin/flex" \
|
|
|
|
YACC="$(HOST_DIR)/bin/bison -y"
|
2017-02-02 23:45:03 +01:00
|
|
|
|
|
|
|
# DESTDIR is used at build time to find libselinux
|
|
|
|
define CHECKPOLICY_BUILD_CMDS
|
|
|
|
$(TARGET_MAKE_ENV) $(MAKE) -C $(@D) $(TARGET_CHECKPOLICY_MAKE_OPTS) DESTDIR=$(STAGING_DIR)
|
|
|
|
endef
|
|
|
|
|
|
|
|
define CHECKPOLICY_STAGING_CMDS
|
|
|
|
$(TARGET_MAKE_ENV) $(MAKE) -C $(@D) $(TARGET_CHECKPOLICY_MAKE_OPTS) DESTDIR=$(STAGING_DIR) install
|
|
|
|
|
|
|
|
endef
|
|
|
|
|
|
|
|
define CHECKPOLICY_INSTALL_TARGET_CMDS
|
|
|
|
$(TARGET_MAKE_ENV) $(MAKE) -C $(@D) $(TARGET_CHECKPOLICY_MAKE_OPTS) DESTDIR=$(TARGET_DIR) install
|
|
|
|
endef
|
|
|
|
|
2015-01-07 18:10:36 +01:00
|
|
|
HOST_CHECKPOLICY_DEPENDENCIES = host-libselinux host-flex host-bison
|
|
|
|
|
2017-07-05 13:14:51 +02:00
|
|
|
# PREFIX is used at build time to find host-libselinux
|
|
|
|
HOST_CHECKPOLICY_MAKE_OPTS = \
|
|
|
|
$(HOST_CONFIGURE_OPTS) \
|
|
|
|
PREFIX=$(HOST_DIR) \
|
2017-07-05 13:14:19 +02:00
|
|
|
LEX="$(HOST_DIR)/bin/flex" \
|
|
|
|
YACC="$(HOST_DIR)/bin/bison -y"
|
2015-01-07 18:10:36 +01:00
|
|
|
|
|
|
|
define HOST_CHECKPOLICY_BUILD_CMDS
|
2017-07-05 13:14:51 +02:00
|
|
|
$(HOST_MAKE_ENV) $(MAKE) -C $(@D) $(HOST_CHECKPOLICY_MAKE_OPTS)
|
2015-01-07 18:10:36 +01:00
|
|
|
endef
|
|
|
|
|
|
|
|
define HOST_CHECKPOLICY_INSTALL_CMDS
|
2017-07-05 13:14:51 +02:00
|
|
|
$(HOST_MAKE_ENV) $(MAKE) -C $(@D) $(HOST_CHECKPOLICY_MAKE_OPTS) install
|
2015-01-07 18:10:36 +01:00
|
|
|
endef
|
|
|
|
|
2017-02-02 23:45:03 +01:00
|
|
|
$(eval $(generic-package))
|
2015-01-07 18:10:36 +01:00
|
|
|
$(eval $(host-generic-package))
|