summaryrefslogtreecommitdiff
path: root/package/boost
diff options
context:
space:
mode:
authorRomain Naour <romain.naour@gmail.com>2016-08-02 19:01:04 +0200
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>2016-08-02 22:49:01 +0200
commit778ab4da4f9e9bf52c719cb6f17cf7df5693bf01 (patch)
tree85d0b8f24f2e4e100a62dd6122a8e429351a2130 /package/boost
parentf1df4bd353d217530cc639ce58b3c5232d6933bd (diff)
package/boost: context module needs ARM instructions on ARM
The boost-context module contains ARM assembly code, which uses ARM instructions. Therefore, on Thumb-2 only platforms (such as Cortex-M), the following build error occurs: libs/context/src/asm/make_arm_aapcs_elf_gas.S: Assembler messages: libs/context/src/asm/make_arm_aapcs_elf_gas.S:33: Error: unshifted register required -- `bic a1,a1,#15' libs/context/src/asm/make_arm_aapcs_elf_gas.S:42: Error: immediate value out of range To avoid this error, we make the boost-context module depend on BR2_ARM_CPU_HAS_ARM. Fixes: http://autobuild.buildroot.net/results/8f6770b59a343b9f710e9363b43227ee9f026660 Signed-off-by: Romain Naour <romain.naour@gmail.com> [Thomas: use BR2_ARM_CPU_HAS_ARM instead of a dependency on !BR2_ARM_CPU_ARMV7M.] Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Diffstat (limited to 'package/boost')
-rw-r--r--package/boost/Config.in4
1 files changed, 2 insertions, 2 deletions
diff --git a/package/boost/Config.in b/package/boost/Config.in
index 3a27ae25f..403bbf310 100644
--- a/package/boost/Config.in
+++ b/package/boost/Config.in
@@ -65,8 +65,8 @@ config BR2_PACKAGE_BOOST_CONTAINER
# supported, but it doesn't build.
config BR2_PACKAGE_BOOST_CONTEXT
bool "boost-context"
- depends on (BR2_arm || BR2_armeb || BR2_i386 || BR2_mips || BR2_mipsel \
- || BR2_powerpc || BR2_x86_64)
+ depends on ((BR2_arm || BR2_armeb) && BR2_ARM_CPU_HAS_ARM) || \
+ BR2_i386 || BR2_mips || BR2_mipsel || BR2_powerpc || BR2_x86_64
config BR2_PACKAGE_BOOST_COROUTINE
bool "boost-coroutine"