The goal of this patch series is to auto generate the platform list and avoid 
platform maintaners to have to change
the configure.ac to add/remove platforms depending on the setup.

It will also work and make sense if odp-api is split from linux generic.
As autoconf requires all m4 to be included and does not have a simple way to 
include wildcard, 
bootstrap now generates a m4 files with the appropriate m4_include of the 
different platforms.

I also moved the linux-generic AM_CONDITIONAL definition to a specific file.
configure requires all AM_CONDITIONAL to be defined even if not used in the 
current setup (because all the Makefile for all the platforms are parsed)

So the idea is to include
platform/<platform>/m4/configure.m4 in the current if ${with_platform} == 
<platform> test 
and then always include platform/<platform>/m4/conditionals.m4 so it exists so 
the build system will keep working even if multiple platforms with different 
AM_CONDITIONAL are available.

Nicolas Morey-Chaisemartin (4):
  configure.ac: do not set linux-generic as default platform
  bootstrap: auto generate platform list
  bootstrap: auto-include platform specific conditional definitions
  configure.ac: move linux-generic conditionals to platform side

 bootstrap                                 | 34 +++++++++++++++++++++++++++++++
 configure.ac                              | 23 ++-------------------
 platform/linux-generic/m4/conditionals.m4 |  2 ++
 3 files changed, 38 insertions(+), 21 deletions(-)
 create mode 100644 platform/linux-generic/m4/conditionals.m4

_______________________________________________
lng-odp mailing list
lng-odp@lists.linaro.org
https://lists.linaro.org/mailman/listinfo/lng-odp

Reply via email to