2015-01-07 18:10:36 +01:00
|
|
|
################################################################################
|
|
|
|
#
|
|
|
|
# checkpolicy
|
|
|
|
#
|
|
|
|
################################################################################
|
|
|
|
|
2020-07-15 15:07:36 +02:00
|
|
|
CHECKPOLICY_VERSION = 3.1
|
|
|
|
CHECKPOLICY_SITE = https://github.com/SELinuxProject/selinux/releases/download/20200710
|
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
|
|
|
|
|
2017-11-30 00:08:39 +01:00
|
|
|
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
|
2017-11-30 00:08:39 +01:00
|
|
|
$(TARGET_MAKE_ENV) $(MAKE) -C $(@D) $(CHECKPOLICY_MAKE_OPTS) DESTDIR=$(STAGING_DIR)
|
2017-02-02 23:45:03 +01:00
|
|
|
endef
|
|
|
|
|
|
|
|
define CHECKPOLICY_STAGING_CMDS
|
2017-11-30 00:08:39 +01:00
|
|
|
$(TARGET_MAKE_ENV) $(MAKE) -C $(@D) $(CHECKPOLICY_MAKE_OPTS) DESTDIR=$(STAGING_DIR) install
|
2017-02-02 23:45:03 +01:00
|
|
|
|
|
|
|
endef
|
|
|
|
|
|
|
|
define CHECKPOLICY_INSTALL_TARGET_CMDS
|
2017-11-30 00:08:39 +01:00
|
|
|
$(TARGET_MAKE_ENV) $(MAKE) -C $(@D) $(CHECKPOLICY_MAKE_OPTS) DESTDIR=$(TARGET_DIR) install
|
2017-02-02 23:45:03 +01:00
|
|
|
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))
|