Revert "host-nodejs: use g++ as linker"

This reverts commit ea737fb100785b3b5756dad320db04062261fd04, which in
the end didn't fix the autobuilder problem. Since then,
fb80d283412b610fc0f5e4baf1c5bcdf093dadc2 ('nodejs: add a patch forcing
link command to use CXX') was added, and was successfully tested.

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
cppcms: does not build on static library only, needs dlopen()

Fixes:

  http://autobuild.buildroot.org/results/5ee/5ee69eb7492fbd462124d7a23b5b79003fc1dd64/

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
jack2: needs C++ support

Fixes:

  http://autobuild.buildroot.org/results/ede/ede17f2fdb9b5cd4b974ef820d95b0eba863c420/

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
libstrophe: fix detection of libxml2

This commit adds a patch to libstrophe to fix a typo that prevented a
proper detection of libxml2. This patch has been submitted upstream,
see https://github.com/metajack/libstrophe/pull/46.

Fixes:

 http://autobuild.buildroot.org/results/499/499ffd50ec58b54343d6606c0f1bf7cd04f14e1c/

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
sunxi-boards: bump version

Signed-off-by: Brian Beattie <beattie@beattie-home.net>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
sunxi-tools: bump version

Signed-off-by: Brian Beattie <beattie@beattie-home.net>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
vo-aacenc: pass -marm to build non-Thumb2 compatible assembly

vo-aacenc has some hand-written assembly that cannot build in Thumb2,
so we have to explicitly pass -marm to make sure this particular
package is always built with full-length ARM instructions.

Fixes:

  http://autobuild.buildroot.org/results/680/680b29cd824624eb8e4ec71187b9a6576444e72b/

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
e2tools: new package

E2tools is a simple set of GPL'ed utilities to read, write, and
manipulate files in an ext2/ext3 filesystem.  These utilities access a
filesystem directly using the ext2fs library.

[Thomas: add toolchain dependencies as needed, use full Git hash, use
github helper, add support for host version.]

Signed-off-by: Daniel Nyström <daniel.nystrom@timeterminal.se>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
util-linux: do not install bash completion files

In most embedded systems, there is not much point in installing bash
completion files, especially since bash may not necessarily be present
on the target.

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
pkg-cmake.mk: replace "echo -en" with printf

Signed-off-by: Samuel Martin <s.martin49@gmail.com>
Cc: Arnout Vandecappelle <arnout@mind.be>
pkg-cmake.mk: remove unneeded quotes in the generated toolchainfile.cmake

Since Buildroot does not support space in paths (at least neither in the
Buildroot installation location, nor in the output directory).

Signed-off-by: Samuel Martin <s.martin49@gmail.com>
pkg-cmake.mk: do not hardcode absolute path in toolchainfile.cmake

The patch allows sharing or moving the toolchains.

This is a step toward making the toolchain/sdk relocatable.

Closes #6818

Signed-off-by: Samuel Martin <s.martin49@gmail.com>
Cc: Uwe Strempel <u.strempel@googlemail.com>

---
changes v1 -> v2:
- use CMAKE_CURRENT_LIST_DIR instead of get_filename_component()
pkg-cmake.mk: enable ccache for cmake packages

This patch updates the generated toolchainfile.cmake to use ccache.

When toolchainfile.cmake is used inside Buildroot, using ccache during
the build is driven by a CMake knob: USE_CCACHE, automatically set by
the cmake-package infrastructure and reflecting the BR2_CCACHE value.

Since this toolchainefile.cmake file can be used outside Buildroot, and
this file also set a couple of things (among these: the sysroot cflag,
some pkg-config environment variables), it is important to set the
compiler variables as well to keep the consistency of the
cross-compilation configuration.
So, when it is used outside Buildroot, using ccache for the build is
driven by the ccache program availability.

Note that using ccache for the build is achieved by setting the *_ARG1
CMake variables to let CMake use ccache without failing in detecting
the compiler.

Signed-off-by: Samuel Martin <s.martin49@gmail.com>
Signed-off-by: Luca Ceresoli <luca@lucaceresoli.net>
Cc: Luca Ceresoli <luca@lucaceresoli.net>

---
changes v2 -> v3 (Samuel):
- inline the -DUSE_CCACHE=... in the configure commands.
- always set the compiler variables, even when called for outside
  Buildroot.
- update commit message

changes v1 -> v2 (Luca):
- totally reimplemented based on Samuel's suggestion;
- added dependency on host-ccache for cmake packages if ccache is
  enabled.
pkg-cmake.mk: cosmetic changes in the generated toolchainfile.cmake file

Signed-off-by: Samuel Martin <s.martin49@gmail.com>
pkg-cmake.mk: set additional variables in toolchainfile.cmake

Set binutils programs CMake variables in the toolchainfile.cmake file.
This variables must be cached, otherwise they are wrongly set, resulting
empty, which will make the builds fail.

Signed-off-by: Samuel Martin <s.martin49@gmail.com>
rpi-userland: cleanup *_CONF_OPT

rpi-userland does not need -DBUILD_SHARED_LIBS=OFF to be passed to
correclty build its static libraries; so remove this cmake flag from the
configure options.

Signed-off-by: Samuel Martin <s.martin49@gmail.com>
pkg-cmake.mk: globally disable BUILD_TESTING flag

This CMake flag is used to enable tests. It may not disable the test
programs from being built, but it controls the test execution.

Since we don't care about building the tests (and usually disable them
when possible), make sure Buildroot won't try to run them.

Signed-off-by: Samuel Martin <s.martin49@gmail.com>
pkg-cmake.mk: globally drive the CMAKE_BUILD_TYPE flag using BR2_ENABLE_DEBUG

This CMake flag is usually used to adjust compiler flags (like: -Ox, -g,
etc).

So, it makes sense for Buildroot to globally drive this CMake flags in
the cmake-package infrastructure.

However, if a package prefer overriding this default setting, it still
can via the <PKG>_CONF_OPT variable.

Signed-off-by: Samuel Martin <s.martin49@gmail.com>
openpowerlink: do not override CMAKE_BUILD_TYPE

This flag is already correctly set by the cmake-package infrastructure.

Signed-off-by: Samuel Martin <s.martin49@gmail.com>
opencv: do not override CMAKE_BUILD_TYPE

This flag is already correctly set by the cmake-package infrastructure.

Signed-off-by: Samuel Martin <s.martin49@gmail.com>