Skip to content

Commit

Permalink
ci: set FORCE_UNSAFE_CONFIGURE=1
Browse files Browse the repository at this point in the history
The newer version of Buildroot recently selected in the OP-TEE manifest
[1] does not allow building as root by default (apparently this is not
a Buildroot policy but rather defined in some packages included in
Buildroot). While this makes sense in general, we could not care less in
a CI container. Therefore set the appropriate environment variable to
bypass this check. We could as well change the Docker image to build as
a non-root user but let's just pick the easiest way for now.

Link: OP-TEE/manifest#281 [1]
Signed-off-by: Jerome Forissier <[email protected]>
Acked-by: Jens Wiklander <[email protected]>
  • Loading branch information
jforissier committed Jun 13, 2024
1 parent c5e3e79 commit 030b357
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ jobs:
set -e -v
export LC_ALL=C
export PATH=/usr/local/bin:$PATH # clang
export FORCE_UNSAFE_CONFIGURE=1 # Prevent Buildroot error when building as root
export CFG_DEBUG_INFO=n
export CFG_WERROR=y
Expand Down Expand Up @@ -296,6 +297,7 @@ jobs:
set -e -v
export LC_ALL=C
export BR2_CCACHE_DIR=/github/home/.cache/ccache
export FORCE_UNSAFE_CONFIGURE=1 # Prevent Buildroot error when building as root
export CFG_TEE_CORE_LOG_LEVEL=0
WD=$(pwd)
cd ..
Expand Down Expand Up @@ -331,6 +333,7 @@ jobs:
set -e -v
export LC_ALL=C
export BR2_CCACHE_DIR=/github/home/.cache/ccache
export FORCE_UNSAFE_CONFIGURE=1 # Prevent Buildroot error when building as root
export CFG_TEE_CORE_LOG_LEVEL=0
export CFG_ATTESTATION_PTA=y
export CFG_ATTESTATION_PTA_KEY_SIZE=1024
Expand Down Expand Up @@ -374,6 +377,7 @@ jobs:
export LC_ALL=C
export CFG_TEE_CORE_LOG_LEVEL=0
export BR2_CCACHE_DIR=/github/home/.cache/ccache
export FORCE_UNSAFE_CONFIGURE=1 # Prevent Buildroot error when building as root
OPTEE_OS_TO_TEST=$(pwd)
cd ..
TOP=$(pwd)/optee_repo_qemu_v8
Expand Down Expand Up @@ -409,6 +413,7 @@ jobs:
export LC_ALL=C
export CFG_TEE_CORE_LOG_LEVEL=0
export BR2_CCACHE_DIR=/github/home/.cache/ccache
export FORCE_UNSAFE_CONFIGURE=1 # Prevent Buildroot error when building as root
OPTEE_OS_TO_TEST=$(pwd)
cd ..
TOP=$(pwd)/optee_repo_qemu_v8
Expand Down Expand Up @@ -444,6 +449,7 @@ jobs:
export LC_ALL=C
export CFG_TEE_CORE_LOG_LEVEL=0
export BR2_CCACHE_DIR=/github/home/.cache/ccache
export FORCE_UNSAFE_CONFIGURE=1 # Prevent Buildroot error when building as root
OPTEE_OS_TO_TEST=$(pwd)
cd ..
TOP=$(pwd)/optee_repo_qemu_v8
Expand Down Expand Up @@ -481,6 +487,7 @@ jobs:
export PATH=/usr/local/bin:$PATH
export AARCH64_CROSS_COMPILE=aarch64-unknown-linux-uclibc-
export BR2_CCACHE_DIR=/github/home/.cache/ccache
export FORCE_UNSAFE_CONFIGURE=1 # Prevent Buildroot error when building as root
export CFG_TEE_CORE_LOG_LEVEL=0
export CFG_USER_TA_TARGETS=ta_arm64
OPTEE_OS_TO_TEST=$(pwd)
Expand Down

0 comments on commit 030b357

Please sign in to comment.