- Jan 13, 2020
-
-
Joakim Bech authored
The GitHub templates and actions are useful to the "build" git also, therefore recursively sync up (copy) the .github folder from optee_os. Note, that here we have also done some changes to the GitHub actions. In optee_os we have two different actions files, one for issues and one for pull requests. It seems like it is possible to combine them into a single action file as shown in the actions examples [1]. Another change is that we also exclude marking issues stale if they already have the label "bug". Note that we're only excluding issues, since PR's should not have the "bug" label to start with. Link: [1] https://github.com/actions/stale/blob/master/README.md Signed-off-by: Joakim Bech <joakim.bech@linaro.org> Acked-by: Jens Wiklander <jens.wiklander@linaro.org> Acked-by: Jerome Forissier <jerome@forissier.org>
-
- Jan 09, 2020
-
-
Albert Schwarzkopf authored
Adds /dev/urandom from the host as a source for random data so the guest does not block on calls to getentropy() etc. Signed-off-by: Albert Schwarzkopf <githubc@quitesimple.org> Reviewed-by: Joakim Bech <joakim.bech@linaro.org>
-
Albert Schwarzkopf authored
Adds CONFIG_HW_RANDOM_VIRTIO so the guest gets entropy from the host Signed-off-by: Albert Schwarzkopf <githubc@quitesimple.org> Reviewed-by: Joakim Bech <joakim.bech@linaro.org>
-
- Jan 08, 2020
-
-
Jerome Forissier authored
We currently do not copy any kernel module into our root FS, they are not needed. Therefore, drop the "modules" target when building the kernel to save compile time. Signed-off-by: Jerome Forissier <jerome.forissier@linaro.org> Acked-by: Jens Wiklander <jens.wiklander@linaro.org>
-
Jerome Forissier authored
Use the cc-option macro to deal with compilers that do not support the -Wno-error=stringop-truncation option. Fixes: 46f7be20 ("hikey960: fix EDK2 build with GCC 9.x") Signed-off-by: Jerome Forissier <jerome@forissier.org> Acked-by: Jens Wiklander <jens.wiklander@linaro.org>
-
Jerome Forissier authored
Use cc-option to support older as well as recent compilers. Signed-off-by: Jerome Forissier <jerome@forissier.org> Acked-by: Jens Wiklander <jens.wiklander@linaro.org>
-
Jerome Forissier authored
Adds the cc-option macro to be used to detect wether a C compiler supports a given option or not. It is similar to the macro added in optee_os [1] except that it takes the compiler as the first argument for flexibility. Link: [1] https://github.com/OP-TEE/optee_os/commit/989ac108b0ef Signed-off-by: Jerome Forissier <jerome@forissier.org> Acked-by: Jens Wiklander <jens.wiklander@linaro.org>
-
- Jan 07, 2020
-
-
Jerome Forissier authored
Actually fix the build error mentioned in the below commit. The variable BUILD_CC is set at the wrong place (I think I had it set as an environment variable when I tested this, which is why it would work anyways). Fixes: 1e8d0b5a ("hikey960: fix EDK2 build with GCC 9.x") Signed-off-by: Jerome Forissier <jerome@forissier.org> Acked-by: Jens Wiklander <jens.wiklander@linaro.org>
-
Pipat Methavanitpong authored
This commit adds building SCP firmware for the DeveloperBox. It defines a new baremetal toolchain "aarch32-none" using GNU Embedded Toolchain for Arm 9-2019-q4-major to build. SCP firmware uses SCMI to provide power and performance management. This commit also enables SCMI driver in TF-A to communicate with SCP. Acked-by: Jerome Forissier <jerome@forissier.org> Signed-off-by: Pipat Methavanitpong <pipat.methavanitpong@linaro.org>
-
- Dec 17, 2019
-
-
Jerome Forissier authored
The current EDK2 code fails to build with GCC 9.x: make[3]: Entering directory '/home/jerome/work/optee_repo_hikey960/edk2/BaseTools/Source/C/GenVtf' gcc -c -MD -fshort-wchar -fno-strict-aliasing -Wall -Werror -Wno-deprecated-declarations -Wno-unused-result -nostdlib -c -g -I .. -I ../Include/Common -I ../Include/ -I ../Include/IndustryStandard -I ../Common/ -I .. -I . -I ../Include/X64/ -O2 GenVtf.c -o GenVtf.o In file included from /usr/include/string.h:494, from ../Common/FvLib.h:21, from GenVtf.c:19: In function ‘strncpy’, inlined from ‘ConvertVersionInfo’ at GenVtf.c:132:7: /usr/include/x86_64-linux-gnu/bits/string_fortified.h:106:10: error: ‘__builtin_strncpy’ output truncated before terminating nul copying as many bytes from a string as its length [-Werror=stringop-truncation] 106 | return __builtin___strncpy_chk (__dest, __src, __len, __bos (__dest)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ GenVtf.c: In function ‘ConvertVersionInfo’: GenVtf.c:130:14: note: length computed here 130 | Length = strlen(Str); | ^~~~~~~~~~~ In file included from /usr/include/string.h:494, from ../Common/FvLib.h:21, from GenVtf.c:19: In function ‘strncpy’, inlined from ‘CreateFitTableAndInitialize’ at GenVtf.c:1532:3: /usr/include/x86_64-linux-gnu/bits/string_fortified.h:106:10: error: ‘__builtin_strncpy’ output truncated before terminating nul copying 8 bytes from a string of the same length [-Werror=stringop-truncation] 106 | return __builtin___strncpy_chk (__dest, __src, __len, __bos (__dest)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ cc1: all warnings being treated as errors make[3]: *** [../Makefiles/footer.makefile:27: GenVtf.o] Error 1 This error was found with Ubuntu 19.10 (comes with GCC 9.2.1). The HiKey960 EDK2 repository [1] has not received any update in the past year, I am not sure it is still maintained. There is apparently some support for HiKey960 in the upstream EDK2 repositories [2] and [3], but I could not get my board to boot with upstream code. So, a quick fix seems in order. [1] https://github.com/96boards-hikey/edk2.git [2] https://github.com/tianocore/edk2.git [3] https://github.com/tianocore/edk2-platforms.git Signed-off-by: Jerome Forissier <jerome@forissier.org> Acked-by: Victor Chong <victor.chong@linaro.org>
-
- Nov 22, 2019
-
-
Jerome Forissier authored
The kernel image for QEMUv8 is Image, not zImage (there is no compressed image support in Linux for arm64). Fix the makefile. Fixes: c54f4f51 ("qemu, qemu_v8: do not build Linux modules") Signed-off-by: Jerome Forissier <jerome@forissier.org> Reviewed-by: Jens Wiklander <jens.wiklander@linaro.org>
-
Jerome Forissier authored
The QEMU and QEMUv8 builds do not need any kernel module to boot and run xtest etc. so we can save build time by only building the kernel image by default. Signed-off-by: Jerome Forissier <jerome@forissier.org> Reviewed-by: Joakim Bech <joakim.bech@linaro.org> Reviewed-by: Jens Wiklander <jens.wiklander@linaro.org>
-
- Nov 08, 2019
-
-
Victor Chong authored
Introduce EDK2_TOOLCHAIN and EDK2_ARCH and fvp, qemu_v8 and synquacer builds to better control some build variables. Signed-off-by: Victor Chong <victor.chong@linaro.org> Reviewed-by: Joakim Bech <joakim.bech@linaro.org>
-
Victor Chong authored
Make TF-A and EDK2 builds for fvp and qemu_v8 configurable using the DEBUG flag instead of hardcoding. Signed-off-by: Victor Chong <victor.chong@linaro.org> Reviewed-by: Joakim Bech <joakim.bech@linaro.org>
-
Victor Chong authored
Allow control of DEBUG flag from a single common location (common.mk) rather than all over platform specific makefiles. Signed-off-by: Victor Chong <victor.chong@linaro.org> Reviewed-by: Joakim Bech <joakim.bech@linaro.org>
-
- Oct 11, 2019
-
-
Jerome Forissier authored
Updates qemu_v8.mk and qemu-check.exp so that "make check" and "make check-only" are supported for QEMUv8, as they are for QEMU. Signed-off-by: Jerome Forissier <jerome@forissier.org>
-
- Oct 10, 2019
-
-
Michael Grand authored
This commit adds support for Ultra96 board. It relies on ultra96 flavor added to OP-TEE ZynqMP platform. zynqmp makefile is modified in the following way: - Default BSP rootfs is replaced by a minimal rootfs which supports zcu10x and Ultra96 boards. - New petalinux-package target available to generate BOOT.BIN file. Signed-off-by: Michael Grand <michael.grand@gmail.com> Acked-by: Joakim Bech <joakim.bech@linaro.org>
-
Markus S. Wamser authored
Depending on the size of the string in the variable TARGET_CONFIGURE_OPTS and number of examples, the size of the string in OPTEE_EXAMPLES_BUILD_TAS produced by evaluation of the $(foreach...) statement may exceed the maximum length for execvp() calls from make (128KiB). Delaying the enumeration of targets by passing a loop-statement for the shell expands the variables only once and keep the length of the string independent of the number of examples. Signed-off-by: Markus S. Wamser <markus.wamser@mixed-mode.de> Acked-by: Jerome Forissier <jerome@forissier.org>
-
Markus S. Wamser authored
Depending on the size of the string in the variable TARGET_CONFIGURE_OPTS and number of tests, the size of the string in OPTEE_TEST_BUILD_TAS produced by evaluation of the $(foreach...) statement may exceed the maximum length for execvp() calls from make (128KiB). Delaying the enumeration of targets by passing a loop-statement for the shell expands the variables only once and keep the length of the string independent of the number of tests. Signed-off-by: Markus S. Wamser <markus.wamser@mixed-mode.de> Acked-by: Jerome Forissier <jerome@forissier.org>
-
- Oct 09, 2019
-
-
Igor Opaniuk authored
Provide TF-A path for l-loader Signed-off-by: Igor Opaniuk <igor.opaniuk@gmail.com> Reviewed-by: Jerome Forissier <jerome@forissier.org>
-
- Oct 08, 2019
-
-
Joakim Bech authored
In commit (7fbd6ce2) "common.mk: buildroot: append BR2_ variables to config automatically", flags were refactored and the old BUILDROOT_GETTY_PORT got replaced with BR2_TARGET_GENERIC_GETTY_PORT. TI platforms (am43xx, am57xx and dra7xx) were'nt updated hence the wrong ttyAMA0 were used instead of ttyS0 (am43xx and dra7xx) and ttyS2 (am57xx). By setting BR2_TARGET_GENERIC_GETTY_PORT properly, this issue gets resolved. Signed-off-by: Joakim Bech <joakim.bech@linaro.org> Reviewed-by: Jerome Forissier <jerome@forissier.org> Acked-by: Andrew F. Davis <afd@ti.com>
-
Joakim Bech authored
In commit (7fbd6ce2) "common.mk: buildroot: append BR2_ variables to config automatically", flags were refactored and the old BUILDROOT_GETTY_PORT got replaced with BR2_TARGET_GENERIC_GETTY_PORT. Because of that Rpi3 didn't spawn a console when booting up. By setting BR2_TARGET_GENERIC_GETTY_PORT to ttyS0 things will work again. Signed-off-by: Joakim Bech <joakim.bech@linaro.org> Tested-by: Joakim Bech <joakim.bech@linaro.org> (Rpi3) Reviewed-by: Jerome Forissier <jerome@forissier.org>
-
- Oct 07, 2019
-
-
Jerome Forissier authored
STRACE_PATH is a leftover from before buildroot and is not used anymore so remove it. Signed-off-by: Jerome Forissier <jerome@forissier.org> Reviewed-by: Etienne Carriere <etienne.carriere@linaro.org>
-
Jerome Forissier authored
Adds the required flags and configuration files to enable Wi-Fi on the HiKey960 board. The network name and password have to be set in br-ext/board/hikey960/overlay/etc/wpa_supplicant.conf before building. Then Wi-Fi can be enabled on the board by running 'ifup wlan0' as root. Signed-off-by: Jerome Forissier <jerome@forissier.org> Acked-by: Joakim Bech <joakim.bech@linaro.org>
-
- Sep 10, 2019
-
-
Jerome Forissier authored
Currently, when ccache is available, it is used to build OP-TEE but due to some wrong settings the user space libraries use the compiler directly without ccache. Fix that. Signed-off-by: Jerome Forissier <jerome@forissier.org> Reviewed-by: Jens Wiklander <jens.wiklander@linaro.org>
-
- Sep 04, 2019
-
-
Jerome Forissier authored
To set additional BR2_ variables, the user currently needs to edit common.mk and modify the buildroot recipe. It is inconvenient, especially since a line with a cumbersome syntax has to be added. One would expect to be able to specify the desired value on the make command line or directly in the Makefile. For instance, to enable debug mode: make BR2_ENABLE_DEBUG=y. This patch updates the buildroot recipe to enumerate all the Makefile variables that start with BR2_, and each such variable is automatically added to ../out-br/extra.conf. As a result the existing BR2_ variables can be set in a simpler way. Tested on QEMU, results in the same ../out-br/.config except for the line order. Signed-off-by: Jerome Forissier <jerome@forissier.org> Suggested-by: Heino Madsen <heino.madsen@huawei.com> Reviewed-by: Jens Wiklander <jens.wiklander@linaro.org>
-
- Aug 13, 2019
-
-
Victor Chong authored
Transition to the new trusted firmware repo location at http://git.trustedfirmware.org . NOTE: The 'arm-trusted-firmware' instances under zynqmp* have not been changed. Signed-off-by: Victor Chong <victor.chong@linaro.org> Reviewed-by: Etienne Carriere <etienne.carriere@linaro.org> Reviewed-by: Joakim Bech <joakim.bech@linaro.org>
-
Victor Chong authored
To reflect the new trusted firmware repo at http://git.trustedfirmware.org . Signed-off-by: Victor Chong <victor.chong@linaro.org> Reviewed-by: Etienne Carriere <etienne.carriere@linaro.org> Reviewed-by: Joakim Bech <joakim.bech@linaro.org>
-
Victor Chong authored
Signed-off-by: Victor Chong <victor.chong@linaro.org> Acked-by: Jens Wiklander <jens.wiklander@linaro.org> Acked-by: Etienne Carriere <etienne.carriere@linaro.org>
-
- Aug 07, 2019
-
-
Victor Chong authored
Fix typo for setting CFG_TEE_BENCHMARK in OPTEE_CLIENT_CONF_OPTS. Fixes: 93758cc1 ("buildroot: provide CFG_TEE_BENCHMARK in optee_client") Signed-off-by: Victor Chong <victor.chong@linaro.org> Acked-by: Jerome Forissier <jerome.forissier@linaro.org>
-
- Jun 28, 2019
-
-
Philby John authored
Copy both RPi3 B and RPi3 B Plus dtb files to enable booting both the targets. This will avoid adding a seperate rpi3-bplus makefile. Signed-off-by: Philby John <philby.j@hcl.com> Signed-off-by: Vv Ramya <ramyavv@hcl.com> Reviewed-by: Joakim Bech <joakim.bech@linaro.org> Tested-by: Joakim Bech <joakim.bech@linaro.org> # (rpi3b)
-
- Jun 11, 2019
-
-
Victor Chong authored
This makes it a bit more convenient for 4G board users who are flashing manually in that they don't have to change the makefile to get the required ptable image. Signed-off-by: Victor Chong <victor.chong@linaro.org> Reviewed-by: Joakim Bech <joakim.bech@linaro.org> Acked-by: Etienne Carriere <etienne.carriere@linaro.org>
-
Victor Chong authored
This is useful for debugging or testing eMMC and RPMB issues. Signed-off-by: Victor Chong <victor.chong@linaro.org> Reviewed-by: Joakim Bech <joakim.bech@linaro.org> Acked-by: Etienne Carriere <etienne.carriere@linaro.org>
-
Victor Chong authored
Signed-off-by: Victor Chong <victor.chong@linaro.org> Reviewed-by: Joakim Bech <joakim.bech@linaro.org> Acked-by: Etienne Carriere <etienne.carriere@linaro.org>
-
- Jun 03, 2019
-
-
Pipat Methavanitpong authored
This commit add supports to build flash binaries for DeveloperBox. It builds an OPTEE binary, a FIP package containing the OPTEE, a flash image containing the FIP package and EDK2, and its corresponding update capsule. Signed-off-by: Pipat Methavanitpong <pipat.methavanitpong@linaro.org> Acked-by: Sumit Garg <sumit.garg@linaro.org> Acked-by: Etienne Carriere <etienne.carriere@linaro.org> Reviewed-by: Joakim Bech <joakim.bech@linaro.org>
-
- May 23, 2019
-
-
Joakim Bech authored
The BR2_KERNEL_HEADERS_4_10 has been depracted, so when trying to build with GDBSERVER=y we got this warning: Makefile.legacy:9: *** "You have legacy configuration in your .config! Please check your configuration.". Stop. To better match recent toolchain updates in this git (gcc updates and kernel header updates, commit e0298161), we also update buildroot to use and provide a GCC8.x based toolchain as well as 4.19 kernel headers. Signed-off-by: Joakim Bech <joakim.bech@linaro.org> Tested-by: Joakim Bech <joakim.bech@linaro.org> (QEMU v7) Acked-by: Jerome Forissier <jerome@forissier.org>
-
- May 18, 2019
-
-
Joakim Bech authored
In the GCC v8.2-2018.08 toolchain (previous default in OP-TEE) the GDB/TUI mode was disabled, which made debugging using GDB slightly more complicated. However, in more recent versions of GCC like the one introduced here, i.e., GCC8.3-2019.03, Arm have re-enabled the TUI mode. But to be able to upgrade the toolchain, one must also step up kernel headers so that the toolchain matches the kernel headers used by Buildroot. This means that we are stepping up from 4.18 kernel headers to 4.19 kernel headers, which seems to be compatible with the version of GCC that is being introduced in this patch. Note that after this commit, older GCC versions will not work any longer when building full OP-TEE developer setups using OP-TEE's manifest.git and build.git, i.e., trying to run GCC8.2 for example will give a kernel header mismatch error. Fixes #334. Signed-off-by: Joakim Bech <joakim.bech@linaro.org> Tested-by: Joakim Bech <joakim.bech@linaro.org> (QEMU v7, v8) Acked-by: Jerome Forissier <jerome.forissier@linaro.org>
-
- May 13, 2019
-
-
Jerome Forissier authored
Now that our HiKey960 build uses our common Linux branch [1], we no longer need to force CFG_SECURE_DATA_PATH=n in the main Makefile (the platform branch we were using previously was lacking the ION unmapped heap code, which is why SDP had to be disabled). Let OP-TEE build with the default value for CFG_SECURE_DATA_PATH, which is 'y' for HiKey960, and configure the Linux kernel accordingly. [1] https://github.com/linaro-swg/linux branch optee. This branch has been used for the HiKey960 build since OP-TEE 3.4.0, the branch was based on upstream kernel v4.19. Signed-off-by: Jerome Forissier <jerome.forissier@linaro.org> Reviewed-by: Joakim Bech <joakim.bech@linaro.org> Acked-by: Etienne Carriere <etienne.carriere@linaro.org>
-
Jerome Forissier authored
ION_DUMMY is an old, deprecated configuration flag in the ION driver that is now useless. Therefore, remove the useless CONFIG_ION_DUMMY=y. Signed-off-by: Jerome Forissier <jerome.forissier@linaro.org> Suggested-by: Etienne Carriere <etienne.carriere@linaro.org> Acked-by: Etienne Carriere <etienne.carriere@linaro.org>
-
Jerome Forissier authored
Similar fix to commit 106b53a2 ("buildroot: always declare BR2_PACKAGE_OPTEE_BENCHMARK_SITE"). Signed-off-by: Jerome Forissier <jerome.forissier@linaro.org> Reviewed-by: Joakim Bech <joakim.bech@linaro.org> Acked-by: Etienne Carriere <etienne.carriere@linaro.org>
-