| ab35d7ad | 28-Apr-2015 |
Cedric Chaumont <cedric.chaumont@st.com> |
GP Internal Core API v1.1 : TEE configuration properties
Signed-off-by: Cedric Chaumont <cedric.chaumont@st.com> Reviewed-by: Jens Wiklander <jens.wiklander@linaro.org> Reviewed-by: Jerome Forissier
GP Internal Core API v1.1 : TEE configuration properties
Signed-off-by: Cedric Chaumont <cedric.chaumont@st.com> Reviewed-by: Jens Wiklander <jens.wiklander@linaro.org> Reviewed-by: Jerome Forissier <jerome.forissier@linaro.org> Reviewed-by: Pascal Brand <pascal.brand@linaro.org> Tested-by: Cedric Chaumont <cedric.chaumont@linaro.org> (STM boards) Tested-by: Cedric Chaumont <cedric.chaumont@linaro.org> (ARM Juno board)
show more ...
|
| fbecf4ee | 16-Apr-2015 |
Jens Wiklander <jens.wiklander@linaro.org> |
Add sparse support [C=1]
Adds support to check source files with sparse when C=1 on the command line. Only files that are recompiled are checked.
Note that sparse isn't very useful at this stage si
Add sparse support [C=1]
Adds support to check source files with sparse when C=1 on the command line. Only files that are recompiled are checked.
Note that sparse isn't very useful at this stage since the source code need changes to be more sparse friendly.
Signed-off-by: Jens Wiklander <jens.wiklander@linaro.org> Reviewed-by: Pascal Brand <pascal.brand@linaro.org> Reviewed-by: Jerome Forissier <jerome.forissier@linaro.org>
show more ...
|
| 62428631 | 29-Apr-2015 |
Jens Wiklander <jens.wiklander@linaro.org> |
build: add support for make -s
Adds support for make -s to get a really silent build. This is useful to get a shorter travis build log.
Signed-off-by: Jens Wiklander <jens.wiklander@linaro.org> Rev
build: add support for make -s
Adds support for make -s to get a really silent build. This is useful to get a shorter travis build log.
Signed-off-by: Jens Wiklander <jens.wiklander@linaro.org> Reviewed-by: Pascal Brand <pascal.brand@linaro.org> Reviewed-by: Jerome Forissier <jerome.forissier@linaro.org>
show more ...
|
| 31908aea | 28-Apr-2015 |
Pascal Brand <pascal.brand@st.com> |
s/CFG_TEE_FW_DEBUG/CFG_TEE_CORE_DEBUG
Reviewed-by: Jens Wiklander <jens.wiklander@linaro.org> Signed-off-by: Pascal Brand <pascal.brand@st.com> |
| 3354f9b2 | 15-Apr-2015 |
Jerome Forissier <jerome.forissier@linaro.org> |
mk/checkconf.mk: update generation of conf.mk
Make generation of conf.mk more consistent with what we do for conf.h, that is: - conf.mk shall not be touched if its content does not change, - write "
mk/checkconf.mk: update generation of conf.mk
Make generation of conf.mk more consistent with what we do for conf.h, that is: - conf.mk shall not be touched if its content does not change, - write "CHK" when checking the file, then "UPD" only if it needs updating.
Signed-off-by: Jerome Forissier <jerome.forissier@linaro.org> Reviewed-by: Jens Wiklander <jens.wiklander@linaro.org> Reviewed-by: Pascal Brand <pascal.brand@linaro.org>
show more ...
|
| 120c43ad | 24-Mar-2015 |
Jerome Forissier <jerome.forissier@linaro.org> |
Convert configuration variables to CFG_* name
- Rename configuration variables that do not follow the CFG_* convention - Delete useless -D<VAR> compiler flags - Slightly reformat mk/conf.mk, add com
Convert configuration variables to CFG_* name
- Rename configuration variables that do not follow the CFG_* convention - Delete useless -D<VAR> compiler flags - Slightly reformat mk/conf.mk, add comments
Signed-off-by: Jerome Forissier <jerome.forissier@linaro.org> Reviewed-by: Jens Wiklander <jens.wiklander@linaro.org>
show more ...
|
| 1b4eb4f5 | 02-Feb-2015 |
Jens Wiklander <jens.wiklander@linaro.org> |
Separate compiler for core and user TA
Enables compilation with different compilers for core and user TA.
Signed-off-by: Jens Wiklander <jens.wiklander@linaro.org> Tested-by: Jens Wiklander <jens.w
Separate compiler for core and user TA
Enables compilation with different compilers for core and user TA.
Signed-off-by: Jens Wiklander <jens.wiklander@linaro.org> Tested-by: Jens Wiklander <jens.wiklander@linaro.org> (QEMU, FVP) Reviewed-by: Pascal Brand <pascal.brand@linaro.org>
show more ...
|
| 7018ae01 | 04-Mar-2015 |
SY Chiu <sy.chiu@linaro.org> |
Added Abstract Layer for PRNG
- Extended crypto_ops with a new prng_ops which handles prng operations. - Replace calls to get_rng_array() with crypto_ops.prng.read(), this enforces PRNG operations
Added Abstract Layer for PRNG
- Extended crypto_ops with a new prng_ops which handles prng operations. - Replace calls to get_rng_array() with crypto_ops.prng.read(), this enforces PRNG operations go through PRNG HAL, instead of invoking platform-dependent PRNG implementation directly. - Create a new mpa_set_random_generator() interface for mpa user to register a callback to generate random number, instead of expecting the user to provide a get_rng_array(). This enables libmpa uses crypto_ops.prng.read(). - Added a new configuration CFG_WITH_PRNG_SOFTWARE to toggle SW/HW-dependent PRNG implementation. - The SW PRNG implementation is supplied by backed cryto library(libtomcrypt). - Added a new SW PRNG 'Fortuna' to libtomcrypt. - Added a new SW PRNG 'RC4' to libtomcrypt, when Fortuna is not available due to AES and SHA256 not available, fallback to RC4. - Get rid of bad implemented SW PRNG in plat_vexpress(rng_support.c). - If CFG_WITH_PRNG_SOFTWARE is not enabled, the platform needs to supply hw_get_random_byte().
Signed-off-by: SY Chiu <sy.chiu@linaro.org> Reviewed-by: Pascal Brand <pascal.brand@linaro.org> Reviewed-by: Joakim Bech <joakim.bech@linaro.org> Reviewed-by: Jerome Forissier <jerome.forissier@linaro.org> Tested-by: Pascal Brand <pascal.brand@linaro.org> (STM platform) Tested-by: SY Chiu <sy.chiu@linaro.org> (QEMU)
show more ...
|
| dde0e235 | 26-Feb-2015 |
etienne carriere <etienne.carriere@st.com> |
load/generate TEE Core build configuration file
At build time, conf.in file is generated at output root core directory.
At build entry, if CFG_OPTEE_CONFIG is defined, it specifies the path of the
load/generate TEE Core build configuration file
At build time, conf.in file is generated at output root core directory.
At build entry, if CFG_OPTEE_CONFIG is defined, it specifies the path of the target TEE Core build configuration to use.
Reviewed-by: Jerome Forissier <jerome.forissier@linaro.org> Reviewed-by: Jens Wiklander <jens.wiklander@linaro.org> Tested-by: Etienne CARRIERE <etienne.carriere@st.com> Reviewed-by: Pascal BRAND <pascal.brand@st.com> Reviewed-by: Etienne CARRIERE <etienne.carriere@st.com>
show more ...
|
| 7c876f12 | 02-Mar-2015 |
Pascal Brand <pascal.brand@st.com> |
CFG_TEE_CORE_TA_TRACE to disable TA traces
In order to disable TA traces, whatever the compilation options of the TAs, CFG_TEE_CORE_TA_TRACE can be defined to n
Reviewed-by: Jerome Forissier <jerom
CFG_TEE_CORE_TA_TRACE to disable TA traces
In order to disable TA traces, whatever the compilation options of the TAs, CFG_TEE_CORE_TA_TRACE can be defined to n
Reviewed-by: Jerome Forissier <jerome.forissier@linaro.org> Reviewed-by: Jens Wiklander <jens.wiklander@linaro.org> Tested-by: Pascal Brand <pascal.brand@linaro.org> (STM platform) Signed-off-by: Pascal Brand <pascal.brand@st.com>
show more ...
|
| 313ead47 | 22-Jan-2015 |
Jerome Forissier <jerome.forissier@linaro.org> |
mk/compile.mk: GNU make 4.0 compatibility
Fixes issue https://github.com/OP-TEE/optee_os/issues/179 (GNU make 4.0 rebuilds everything each time it is run).
GNU make 4.0 includes a fix for bug http:
mk/compile.mk: GNU make 4.0 compatibility
Fixes issue https://github.com/OP-TEE/optee_os/issues/179 (GNU make 4.0 rebuilds everything each time it is run).
GNU make 4.0 includes a fix for bug http://savannah.gnu.org/bugs/?16051 which breaks the C compilation rule in mk/compile.mk. Previous versions of make would not add the FORCE target to $?, whereas version 4.0 does. Therefore, one must explicitly exclude FORCE from $? to properly detect if dependencies have changed.
Signed-off-by: Jerome Forissier <jerome.forissier@linaro.org> Reviewed-by: Jens Wiklander <jens.wiklander@linaro.org> Reviewed-by: Pascal Brand <pascal.brand@linaro.org>
show more ...
|
| 6d6ea54c | 02-Dec-2014 |
Jens Wiklander <jens.wiklander@linaro.org> |
separate .rodata sections
Puts each .rodata in a file specific .rodata section
Signed-off-by: Jens Wiklander <jens.wiklander@linaro.org> Reviewed-by: Pascal Brand <pascal.brand@linaro.org> |
| d60c6803 | 03-Dec-2014 |
Pascal Brand <pascal.brand@st.com> |
Cosmetics fixes
Signed-off-by: Pascal Brand <pascal.brand@st.com> Reviewed-by: Jerome Forissier <jerome.forissier@linaro.org> Reviewed-by: Jens Wiklander <jens.wiklander@linaro.org> |
| 0a7f95b9 | 14-Nov-2014 |
Jerome Forissier <jerome.forissier@linaro.org> |
mk/checkconf.mk: add utility functions to test configuration variables
Signed-off-by: Jerome Forissier <jerome.forissier@linaro.org> |
| e0042c88 | 17-Nov-2014 |
Pascal Brand <pascal.brand@st.com> |
Fixes in trace refactoring
- Deprecates ATAMSG - trace_ext.c is arm32 specific - tee_kta_trace.h and trace_ta.h are generic - Default level is now 1 (was 2)
Signed-off-by: Pascal Brand <pascal.bran
Fixes in trace refactoring
- Deprecates ATAMSG - trace_ext.c is arm32 specific - tee_kta_trace.h and trace_ta.h are generic - Default level is now 1 (was 2)
Signed-off-by: Pascal Brand <pascal.brand@st.com> Reviewed-by: Jens Wiklander <jens.wiklander@linaro.org>
show more ...
|
| fe52b1f5 | 06-Nov-2014 |
Jerome Forissier <jerome.forissier@linaro.org> |
core: create conf.h from CFG_* Makefile variables
Simplify the use of makefile configuration variables from C code. With this patch, one can #include <generated/conf.h> instead of adding CPP flags d
core: create conf.h from CFG_* Makefile variables
Simplify the use of makefile configuration variables from C code. With this patch, one can #include <generated/conf.h> instead of adding CPP flags definitions to the .mk files.
- CFG_* variables that are set to 'y' are converted to: #define CFG_FOO 1 - Undefined variables, or variables set to 'n' remain undefined in conf.h - CFG_* variables with any other value are output unchanged
Signed-off-by: Jerome Forissier <jerome.forissier@linaro.org> Reviewed-by: Jens Wiklander <jens.wiklander@linaro.org> Reviewed-by: Pascal Brand <pascal.brand@linaro.org>
show more ...
|
| f8baf582 | 07-Nov-2014 |
Jerome Forissier <jerome.forissier@linaro.org> |
core/core.mk, mk/config.mk: delete unused definitions
Signed-off-by: Jerome Forissier <jerome.forissier@linaro.org> Reviewed-by: Pascal Brand <pascal.brand@linaro.org> |
| 76f59873 | 03-Nov-2014 |
Jerome Forissier <jerome.forissier@linaro.org> |
build: print 'AS' instead of 'CC' when input file is assembly
Signed-off-by: Jerome Forissier <jerome.forissier@linaro.org> Reviewed-by: Joakim Bech <joakim.bech@linaro.org> Reviewed-by: Jens Wiklan
build: print 'AS' instead of 'CC' when input file is assembly
Signed-off-by: Jerome Forissier <jerome.forissier@linaro.org> Reviewed-by: Joakim Bech <joakim.bech@linaro.org> Reviewed-by: Jens Wiklander <jens.wiklander@linaro.org> Reviewed-by: Pascal Brand <pascal.brand@linaro.org>
show more ...
|
| 3d34e125 | 30-Oct-2014 |
Jerome Forissier <jerome.forissier@linaro.org> |
Add support for $(cflags-lib-y)
Signed-off-by: Jerome Forissier <jerome.forissier@linaro.org> Reviewed-by: Jens Wiklander <jens.wiklander@linaro.org> Reviewed-by: Pascal Brand <pascal.brand@linaro.o
Add support for $(cflags-lib-y)
Signed-off-by: Jerome Forissier <jerome.forissier@linaro.org> Reviewed-by: Jens Wiklander <jens.wiklander@linaro.org> Reviewed-by: Pascal Brand <pascal.brand@linaro.org> Tested-by: Pascal Brand <pascal.brand@linaro.org> (STM platform)
show more ...
|
| 699f50a8 | 28-Oct-2014 |
Jerome Forissier <jerome.forissier@linaro.org> |
Add support for $(lib-use-ld) and $(lib-ldflags)
When building a static library, set lib-use-ld := y to use $(LD) instead of $(AR). Link flags may be passed in $(lib-ldflags).
Signed-off-by: Jerome
Add support for $(lib-use-ld) and $(lib-ldflags)
When building a static library, set lib-use-ld := y to use $(LD) instead of $(AR). Link flags may be passed in $(lib-ldflags).
Signed-off-by: Jerome Forissier <jerome.forissier@linaro.org> Reviewed-by: Jens Wiklander <jens.wiklander@linaro.org> Reviewed-by: Pascal Brand <pascal.brand@linaro.org> Tested-by: Pascal Brand <pascal.brand@linaro.org> (STM platform)
show more ...
|
| 73dc728d | 25-Sep-2014 |
Jerome Forissier <jerome.forissier@linaro.org> |
Add support for per-directory/per-library/per-file includes, and per-library CPP flags
The new variables that can be used in sub.mk are:
1) For includes: incdirs-y, incdirs-lib-y, incdirs-<filena
Add support for per-directory/per-library/per-file includes, and per-library CPP flags
The new variables that can be used in sub.mk are:
1) For includes: incdirs-y, incdirs-lib-y, incdirs-<filename>-y
For example, suppose core/lib/libfoo/sub.mk contains the following:
# All source files declared in $(srcs-y) in this sub.mk will # have -Icore/lib/libfoo/include incdirs-y := include
# All source files for the current library $(libname) will be built # with -Icore/lib/libfoo/include/baz (even files that are in other # directories) incdirs-lib-y := include/baz
# In addition to the above, bar.c will be compiled with # -Icore/lib/libfoo/include/bar incdirs-bar.c-y := include/bar
2) For CPP flags: cppflags-lib-y
For example, to add -DLIBFOO to all the source files that belong to the same library, add this to any of the sub.mk files:
cppflags-lib-y := -DLIBFOO
Signed-off-by: Jerome Forissier <jerome.forissier@linaro.org> Reviewed-by: Jens Wiklander <jens.wiklander@linaro.org> Reviewed-by: Pascal Brand <pascal.brand@linaro.org> Tested-by: Jens Wiklander <jens.wiklander@linaro.org> (QEMU virt platform)
show more ...
|
| 0e692b78 | 29-Aug-2014 |
Jens Wiklander <jens.wiklander@linaro.org> |
Fix strict-aliasing for DEBUG=0 |
| 4334e8d7 | 08-Sep-2014 |
Jerome Forissier <jerome.forissier@linaro.org> |
Makefile variables $(*-dir) should not have a trailing slash
As a general rule, Makefile variables that are directories should not have a trailing slash, and should be used as: $(some-dir)/some-file
Makefile variables $(*-dir) should not have a trailing slash
As a general rule, Makefile variables that are directories should not have a trailing slash, and should be used as: $(some-dir)/some-file rather than $(some-dir)some-file. This is more readable.
show more ...
|
| 0047cb63 | 01-Sep-2014 |
Jerome Forissier <jerome.forissier@linaro.org> |
Cosmetic fixes for build output
By default, the OP-TEE build shows abbreviated output similar to the Linux kernel. This commit fixes a number of deviations/inconsistencies.
- Always print a command
Cosmetic fixes for build output
By default, the OP-TEE build shows abbreviated output similar to the Linux kernel. This commit fixes a number of deviations/inconsistencies.
- Always print a command in uppercase, followed by the target file. - Make sure commands and file paths are nicely aligned, with two leading spaces to make command output/errors better stand out. - Remove some duplicate slashes in file paths. We use the following rule: variables that hold directory names such as $(arch-dir) or $(platform-dir) always have a trailing slash. The 'subdirs' and 'incdirs' variables used in sub-makefiles are an exception because doing otherwise would needlessly clutter the sub-makefiles.
show more ...
|
| aaac0982 | 18-Aug-2014 |
Jerome Forissier <jerome.forissier@linaro.org> |
mk/compile.mk: simplify dependency generation; better support ccache
This commit modifies the compilation flags that are used to generate dependency files (*.o.d). Rather than using the preprocessor
mk/compile.mk: simplify dependency generation; better support ccache
This commit modifies the compilation flags that are used to generate dependency files (*.o.d). Rather than using the preprocessor's -MD flag (-Wp,-MD,<depfile>), we now use the frontend's equivalent (-MD -MF <depfile> -MT <target>).
There are three reasons for doing so: 1. The GCC man page recommends against using -Wp, because "the preprocessor's direct interface is undocumented and subject to change". 2. The new flags generate the correct rule directly, including the subdirectory in front of the object name, so scripts/fixdep is not needed anymore. 3. ccache (3.1.9) would not handle -Wp,-MD as expected. It would preserve the directory prefix, so that we would end up with an invalid path after the fixdep phase, making the rules useless. With this patch, OP-TEE builds fine with ccache: make -j3 CROSS_COMPILE="ccache arm-linux-gnueabihf-"
show more ...
|