All of lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH v2 0/4] Introducing CMAKETARGETS infrastructure
@ 2011-01-15 20:53 Bjørn Forsman
  2011-01-15 20:53 ` [Buildroot] [PATCH v2 1/4] Makefile: generate CMake toolchain-file in $(O) Bjørn Forsman
                   ` (4 more replies)
  0 siblings, 5 replies; 18+ messages in thread
From: Bjørn Forsman @ 2011-01-15 20:53 UTC (permalink / raw)
  To: buildroot

This patch series adds a new infrastructure for CMake packages called
CMAKETARGETS. It is based on the AUTOTARGETS infrastructure.

Changes in v2:

 * The toolchain-file is now also used by Buildroot for internal packages.
   This means less code duplication.

 * Add CMAKE_C/CXX_FLAGS, CMAKE_PROGRAM_PATH and CMAKE_INSTALL_SO_NO_EXE
   to the toolchain-file.

 * Remove CMAKE_{EXE,SHARED,MODULE}_LINKER_FLAGS from the
   infrastructure. CMake packages should use FIND_LIBRARY() or
   FIND_PACKAGE() and not rely on -L flags. If a package fails to build
   without -L, fix the package. Or add needed -L flags on a per package basis.

 * Move CMAKE_TARGET_{CC,CXX,CFLAGS,CXXFLAGS} variable initialization from
   package/Makefile.cmake.in (CMAKETARGETS_INNER macro) to package/Makefile.in.

 * Add a $(2)_BUILDDIR variable so that we can split build dir and
   source dir. $(2)_BUILD_DIR currently points to $(2)_SRCDIR to behave like
   the autotools infrastructure.

 * Remove -Wno-dev from configure options so that build system warnings
   are displayed. (Warnings should get fixed, so don't hide them.)

NOTE: The doc is (still) more or less a copy of of the autotools stuff. I don't
know how many build infrastructures Buildroot can have before the doc is
better off being refactored a bit so that the each build system is more about
what's different instead of repeating a bunch of stuff.

NOTE: There is no mention of the toolchain-file and how it can be used for
building packages outside of Buildroot in the doc. As the documentation
currently focuses on *integrating* packages in Buildroot, I didn't find a
suitable place for it. Is this ok for now?

NOTE: ccache needs testing

Thanks to Samuel Martin and Thomas Petazzoni for the comments on v1.

Comments also welcome on v2 :-)

 Makefile                  |   16 ++++-
 docs/buildroot.html       |  151 +++++++++++++++++++++++++++++++++-
 package/Makefile.cmake.in |  197 +++++++++++++++++++++++++++++++++++++++++++++
 package/Makefile.in       |    8 ++
 package/cdrkit/cdrkit.mk  |   65 ++-------------
 5 files changed, 376 insertions(+), 61 deletions(-)

^ permalink raw reply	[flat|nested] 18+ messages in thread

end of thread, other threads:[~2011-01-26  9:56 UTC | newest]

Thread overview: 18+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-01-15 20:53 [Buildroot] [PATCH v2 0/4] Introducing CMAKETARGETS infrastructure Bjørn Forsman
2011-01-15 20:53 ` [Buildroot] [PATCH v2 1/4] Makefile: generate CMake toolchain-file in $(O) Bjørn Forsman
2011-01-25 23:21   ` Thomas Petazzoni
2011-01-26  0:33     ` Bjørn Forsman
2011-01-26  7:47       ` Thomas Petazzoni
2011-01-15 20:53 ` [Buildroot] [PATCH v2 2/4] Add CMAKETARGETS infrastructure for CMake packages Bjørn Forsman
2011-01-23 13:30   ` Samuel Martin
2011-01-25 23:25   ` Thomas Petazzoni
2011-01-26  0:39     ` Bjørn Forsman
2011-01-15 20:53 ` [Buildroot] [PATCH v2 3/4] doc: add CMAKETARGETS documentation Bjørn Forsman
2011-01-15 20:53 ` [Buildroot] [PATCH v2 4/4] cdrkit: convert to CMAKETARGETS infrastructure Bjørn Forsman
2011-01-23 13:30   ` Samuel Martin
2011-01-23 14:42     ` Bjørn Forsman
2011-01-25 23:26       ` Thomas Petazzoni
2011-01-26  8:43   ` Thomas Petazzoni
2011-01-26  9:56     ` Bjørn Forsman
2011-01-22 11:54 ` [Buildroot] [PATCH v2 0/4] Introducing " Bjørn Forsman
2011-01-24 17:16   ` Thomas Petazzoni

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.