![Carlos Santos](/assets/img/avatar_default.png)
Disable SSP if the toolchain does not support it. This must be done explicitly because configure.ac passes -fstack-protector-all to the compiler but doesn't contain a link test, so it doesn't detect when libssp is missing. Fixes: http://autobuild.buildroot.net/results/83ad1f33f523321f841e70d2d8cf5ce861dee217 http://autobuild.buildroot.net/results/cef047751534fef23d1022e9a276424bc84bf461 http://autobuild.buildroot.net/results/6048355337804f7841dffa1655f44b9f6db56314 http://autobuild.buildroot.net/results/d934a2ea90e7bf1c7b93dbb367998abab536daf4 http://autobuild.buildroot.net/results/c0daaf37b8d1515d62d2441ba6aa57125437e191 http://autobuild.buildroot.net/results/9482ea5554938865e0061dcbdcf3c2c918b96954 http://autobuild.buildroot.net/results/282a8b6769f19f0a40089207bc54e7302663751f Signed-off-by: Carlos Santos <casantos@datacom.ind.br> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
37 lines
1.3 KiB
Makefile
37 lines
1.3 KiB
Makefile
################################################################################
|
|
#
|
|
# tpm2-abrmd
|
|
#
|
|
################################################################################
|
|
|
|
TPM2_ABRMD_VERSION = 1.3.0
|
|
TPM2_ABRMD_SITE = https://github.com/tpm2-software/tpm2-abrmd/releases/download/$(TPM2_ABRMD_VERSION)
|
|
TPM2_ABRMD_LICENSE = BSD-2-Clause
|
|
TPM2_ABRMD_LICENSE_FILES = LICENSE
|
|
TPM2_ABRMD_INSTALL_STAGING = YES
|
|
TPM2_ABRMD_DEPENDENCIES = dbus libglib2 tpm2-tss host-pkgconf
|
|
|
|
# configure.ac doesn't contain a link test, so it doesn't detect when
|
|
# libssp is missing.
|
|
TPM2_ABRMD_CONF_ENV = ax_cv_check_cflags___fstack_protector_all=$(if $(BR2_TOOLCHAIN_HAS_SSP),yes,no)
|
|
|
|
TPM2_ABRMD_CONF_OPTS += \
|
|
--with-systemdsystemunitdir=$(if $(BR2_INIT_SYSTEMD),/usr/lib/systemd/system,no) \
|
|
--with-udevrulesdir=$(if $(BR2_PACKAGE_HAS_UDEV),/usr/lib/udev/rules.d,no)
|
|
|
|
define TPM2_ABRMD_INSTALL_INIT_SYSTEMD
|
|
$(TARGET_MAKE_ENV) $(MAKE1) -C $(@D) DESTDIR=$(TARGET_DIR) \
|
|
install-systemdpresetDATA install-systemdsystemunitDATA
|
|
endef
|
|
|
|
define TPM2_ABRMD_INSTALL_INIT_SYSV
|
|
$(INSTALL) -D -m 0755 $(TPM2_ABRMD_PKGDIR)/S80tpm2-abrmd \
|
|
$(TARGET_DIR)/etc/init.d/S80tpm2-abrmd
|
|
endef
|
|
|
|
define TPM2_ABRMD_USERS
|
|
tss -1 tss -1 * - - - TPM2 Access Broker & Resource Management daemon
|
|
endef
|
|
|
|
$(eval $(autotools-package))
|