Skip to content

Commit d100a8d

Browse files
committed
build: explanation about disable CFG_TA_FLOAT_SUPPORT
1 parent af90de0 commit d100a8d

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

build_optee_libraries.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,9 @@ export CROSS_COMPILE64="aarch64-linux-gnu-"
4141

4242
# build optee_os and optee_client for qemu_v8
4343
git clone https://github.com/OP-TEE/optee_os.git -b $OPTEE_VERSION $OPTEE_DIR/optee_os
44+
# set CFG_TA_FLOAT_SUPPORT=n as workaround to fix the building error of 32bit tls TAs:
45+
# multiple definition of `__aeabi_fcmple' (`__aeabi_fcmpeq' and others)
46+
# This means the __aeabi functions are defined both in Rustc compiler_builtins and optee libutils.
4447
(cd $OPTEE_DIR/optee_os && make PLATFORM=vexpress-qemu_armv8a CFG_TA_FLOAT_SUPPORT=n)
4548

4649
git clone https://github.com/OP-TEE/optee_client.git -b $OPTEE_VERSION $OPTEE_DIR/optee_client

scripts/setup/build_optee_libraries.sh

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,10 @@ export CROSS_COMPILE64="${CROSS_COMPILE64:-aarch64-linux-gnu-}"
3232

3333
# build optee_os and optee_client for qemu_v8
3434
git clone https://github.com/OP-TEE/optee_os.git -b $OPTEE_VERSION $OPTEE_DIR/optee_os
35-
(cd $OPTEE_DIR/optee_os && make PLATFORM=vexpress-qemu_armv8a -j$(nproc))
35+
# set CFG_TA_FLOAT_SUPPORT=n as workaround to fix the building error of 32bit tls TAs:
36+
# multiple definition of `__aeabi_fcmple' (`__aeabi_fcmpeq' and others)
37+
# This means the __aeabi functions are defined both in Rustc compiler_builtins and optee libutils.
38+
(cd $OPTEE_DIR/optee_os && make PLATFORM=vexpress-qemu_armv8a CFG_TA_FLOAT_SUPPORT=n -j$(nproc))
3639

3740
git clone https://github.com/OP-TEE/optee_client.git -b $OPTEE_VERSION $OPTEE_DIR/optee_client
3841
(cd $OPTEE_DIR/optee_client && make -j$(nproc) WITH_TEEACL=0 DESTDIR=$PWD/export_arm32 CROSS_COMPILE=$CROSS_COMPILE32)

0 commit comments

Comments
 (0)