[Buildroot] [PATCH v4 1/3] pkg-cmake: allow to build package in a subdirectory
s.martin49 at gmail.com
Mon Mar 9 21:25:44 UTC 2015
On Mon, Mar 9, 2015 at 10:05 PM, Thomas Petazzoni
<thomas.petazzoni at free-electrons.com> wrote:
> Gwenhael, Samuel,
> On Thu, 5 Mar 2015 12:03:19 +0100, Gwenhael Goavec-Merou wrote:
>> +* +LIBFOO_BUILDDIR+ may overload the default build directory when a
>> + package prevents from in-source-tree build. For example,
>> + FOO_BUILDDIR = $(FOO_SRCDIR)/.build, will be used to compile foo
>> + package in .build subdirectory.
> Is it really useful to be able to define the path to the build
> directory? I believe we could do something simpler that consists in
> just a boolean variable saying that the package does not accept
> in-source build, like:
> LIBFOO_SUPPORTS_IN_SOURCE_BUILD = NO
> (which would default to YES)
> and then the CMake package infra takes care of doing the build in some
> $(@D)/buildroot-build/ directory, or something like that.
Sounds good too tm.
> Thomas Petazzoni, CTO, Free Electrons
> Embedded Linux, Kernel and Android engineering
More information about the buildroot