All of lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] CMake package requires out of source build
@ 2021-02-15 21:28 mattwood2000 at gmail.com
  2021-02-15 23:07 ` Peter Seiderer
  0 siblings, 1 reply; 11+ messages in thread
From: mattwood2000 at gmail.com @ 2021-02-15 21:28 UTC (permalink / raw)
  To: buildroot

Hi,

I've found myself in a bit of a dilemma with a piece of software I'm
trying to integrate into a custom cmake package.

The software is the amazon avs-device-sdk:
https://github.com/alexa/avs-device-sdk

For whatever reason, it does not support building within the source
tree.  Under normal circumstances one would set
<PKG>_SUPPORTS_IN_SOURCE_BUILD=NO, but in this case the sdk will not
support a build directory in the source SDK whatsoever, so that config
option is useless.

The only way I can see to get around this short of Amazon fixing their
weird build requirement is to do a dirty hack like below.

Does anyone have any other suggestions?

Thanks, Matt.

--- a/package/pkg-cmake.mk
+++ b/package/pkg-cmake.mk
@@ -66,7 +66,8 @@ $(3)_SUPPORTS_IN_SOURCE_BUILD ?= YES
 ifeq ($$($(3)_SUPPORTS_IN_SOURCE_BUILD),YES)
 $(2)_BUILDDIR                  = $$($(2)_SRCDIR)
 else
-$(2)_BUILDDIR                  = $$($(2)_SRCDIR)/buildroot-build
+$(2)_BUILDDIR                  = $$($(2)_SRCDIR)/../$(1)_buildroot-build
 endif

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

end of thread, other threads:[~2021-02-18 16:35 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-02-15 21:28 [Buildroot] CMake package requires out of source build mattwood2000 at gmail.com
2021-02-15 23:07 ` Peter Seiderer
2021-02-17 14:20   ` mattwood2000 at gmail.com
2021-02-17 15:52     ` Alexander Dahl
2021-02-17 16:59       ` mattwood2000 at gmail.com
2021-02-17 18:16         ` Alexander Dahl
2021-02-17 20:58           ` Adam Duskett
2021-02-18 15:23             ` mattwood2000 at gmail.com
2021-02-18 16:35               ` Adam Duskett
2021-02-17 21:17           ` mattwood2000 at gmail.com
2021-02-17 22:51     ` Peter Seiderer

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.