Skip to content
Snippets Groups Projects
  1. Mar 22, 2016
  2. Mar 16, 2016
  3. Jan 25, 2016
  4. Dec 03, 2015
  5. Nov 26, 2015
  6. Nov 20, 2015
  7. Nov 19, 2015
  8. Nov 04, 2015
  9. Nov 02, 2015
  10. Oct 27, 2015
  11. Oct 07, 2015
  12. Sep 16, 2015
  13. Sep 09, 2015
  14. Sep 08, 2015
    • Jerome Forissier's avatar
      Rework common.mk · ae45fbf9
      Jerome Forissier authored
      
      The code added by commits d6536da6 ("Commonlize xtest compilation
      among all platforms") and 070d9559 ("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: default avatarJerome Forissier <jerome.forissier@linaro.org>
      Signed-off-by: default avatarPascal Brand <pascal.brand@st.com>
      Reviewed-by: default avatarJerome Forissier <jerome.forissier@linaro.org>
      ae45fbf9
  15. Sep 03, 2015
  16. Sep 01, 2015
  17. Jul 10, 2015
  18. Jul 09, 2015
Loading