commit | ae45fbf9c85715651feed43caec4350d759ecd0a | [log] [tgz] |
---|---|---|
author | Jerome Forissier <jerome.forissier@linaro.org> | Fri Sep 04 09:40:17 2015 +0200 |
committer | Pascal Brand <pascal.brand@st.com> | Tue Sep 08 15:21:22 2015 +0200 |
tree | cf49502e95f31067c3a8c57552573a74955e00ba | |
parent | 070d95595e1d132469adacf438a60cdc19b8d05f [diff] |
Rework common.mk The code added by commits d6536da64deb ("Commonlize xtest compilation among all platforms") and 070d95595e1d1 ("common build: optee components") introduces race conditions that break parallel build (make -jX). This is due to manually launching a make sub-process to run the -common targets, and can be fixed by just declaring a dependency instead. Specific flags are appended to common flags, rather than passed as arguments to a new "make" sub-process. So, basically: foo-common: $(MAKE) -C foo_dir [A=a B=B] foo: $(MAKE) foo-common [C=c] is turned into: FOO_COMMON_FLAGS ?= A=a B=b foo-common: $(MAKE) -C foo_dir $(FOO_COMMON_FLAGS) FOO_COMMON_FLAGS += C=c foo: foo-common At the same time this allows foo: to override flags, for instance set A=aa in the above example (prior to this, A=a would have had a higher priority). Signed-off-by: Jerome Forissier <jerome.forissier@linaro.org> Signed-off-by: Pascal Brand <pascal.brand@st.com> Reviewed-by: Jerome Forissier <jerome.forissier@linaro.org>
Contains the necessary build files to handle OP-TEE for various setups, for now, please see manifest/README.md and OP-TEE/README.md for instructions.