trousers/tpm-tools: enable on ARC
With the latest ARC toolchain arc-2018.03 builds of "trousers" and
"tpm-tools" packages perform without errors.
Lets enable these packages for ARC.
With the exception, building tpm-tools for ARC770/750 requires to pass
"-mno-compact-casesi" as it was made for trousers before:
see patch f4cd8ceb9c
"trousers: Pass "-mno-compact-casesi" when
building for ARCv1".
This change is a temporary workaround and the feature is going to be
fixed in the next ARC toolchain release version.
Signed-off-by: Evgeniy Didin <didin@synopsys.com>
Cc: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
Cc: arc-buildroot@synopsys.com
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
This commit is contained in:
parent
c667a10fc3
commit
a65194b3fe
|
@ -2,7 +2,6 @@ config BR2_PACKAGE_TPM_TOOLS
|
||||||
bool "tpm-tools"
|
bool "tpm-tools"
|
||||||
depends on BR2_TOOLCHAIN_HAS_THREADS # trousers
|
depends on BR2_TOOLCHAIN_HAS_THREADS # trousers
|
||||||
depends on !BR2_STATIC_LIBS # trousers
|
depends on !BR2_STATIC_LIBS # trousers
|
||||||
depends on !BR2_arc # trousers
|
|
||||||
select BR2_PACKAGE_TROUSERS
|
select BR2_PACKAGE_TROUSERS
|
||||||
select BR2_PACKAGE_OPENSSL
|
select BR2_PACKAGE_OPENSSL
|
||||||
help
|
help
|
||||||
|
@ -12,4 +11,3 @@ config BR2_PACKAGE_TPM_TOOLS
|
||||||
|
|
||||||
comment "tpm-tools needs a toolchain w/ threads, dynamic library"
|
comment "tpm-tools needs a toolchain w/ threads, dynamic library"
|
||||||
depends on !BR2_TOOLCHAIN_HAS_THREADS || BR2_STATIC_LIBS
|
depends on !BR2_TOOLCHAIN_HAS_THREADS || BR2_STATIC_LIBS
|
||||||
depends on !BR2_arc
|
|
||||||
|
|
|
@ -16,4 +16,8 @@ ifeq ($(BR2_PACKAGE_LIBICONV),y)
|
||||||
TPM_TOOLS_CONF_ENV += LIBS='-liconv'
|
TPM_TOOLS_CONF_ENV += LIBS='-liconv'
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
ifeq ($(BR2_arc770d)$(BR2_arc750d),y)
|
||||||
|
TPM_TOOLS_CONF_ENV += CFLAGS="$(TARGET_CFLAGS) -mno-compact-casesi"
|
||||||
|
endif
|
||||||
|
|
||||||
$(eval $(autotools-package))
|
$(eval $(autotools-package))
|
||||||
|
|
|
@ -3,8 +3,6 @@ config BR2_PACKAGE_TROUSERS
|
||||||
depends on BR2_TOOLCHAIN_HAS_THREADS
|
depends on BR2_TOOLCHAIN_HAS_THREADS
|
||||||
# doesn't build properly in static only configurations
|
# doesn't build properly in static only configurations
|
||||||
depends on !BR2_STATIC_LIBS
|
depends on !BR2_STATIC_LIBS
|
||||||
# ARC toolchain issue
|
|
||||||
depends on !BR2_arc
|
|
||||||
select BR2_PACKAGE_OPENSSL
|
select BR2_PACKAGE_OPENSSL
|
||||||
select BR2_PACKAGE_LIBICONV if !BR2_ENABLE_LOCALE
|
select BR2_PACKAGE_LIBICONV if !BR2_ENABLE_LOCALE
|
||||||
help
|
help
|
||||||
|
@ -18,4 +16,3 @@ config BR2_PACKAGE_TROUSERS
|
||||||
|
|
||||||
comment "trousers needs a toolchain w/ threads, dynamic library"
|
comment "trousers needs a toolchain w/ threads, dynamic library"
|
||||||
depends on !BR2_TOOLCHAIN_HAS_THREADS || BR2_STATIC_LIBS
|
depends on !BR2_TOOLCHAIN_HAS_THREADS || BR2_STATIC_LIBS
|
||||||
depends on !BR2_arc
|
|
||||||
|
|
Loading…
Reference in a new issue