* [Buildroot] [PATCH 00/15] CMake janitor
@ 2014-10-19 18:04 Samuel Martin
2014-10-19 18:04 ` [Buildroot] [PATCH 01/15] package/pkg-cmake.mk: globally disable doc, examples and tests Samuel Martin
` (15 more replies)
0 siblings, 16 replies; 22+ messages in thread
From: Samuel Martin @ 2014-10-19 18:04 UTC (permalink / raw)
To: buildroot
Hi all,
Here is a short series cleaning the packages using the cmake-package infra.
It mostly consists in removing configure options already preset by the infra.
Regards,
Samuel Martin (15):
package/pkg-cmake.mk: globally disable doc, examples and tests
package/pkg-cmake.mk: disable colouring the output
package/clapack: cleanup configure options
package/flann: cleanup configure options
package/libsoxr: cleanup configure options
package/libsoxr: cleanup configure options
package/libubox: cleanup dependencies
package/libubox: cleanup configure options
package/libubox: cleanup configure options
package/libuci: cleanup configure options
package/libuci: cleanup configure options
package/ne10: cleanup configure options
package/opencv: cleanup configure options
package/polarssl: cleanup configure options
docs/manual: update cmake-package infrastructure section
docs/manual/adding-packages-cmake.txt | 10 ++++++++++
package/clapack/clapack.mk | 1 -
package/flann/flann.mk | 2 --
package/libsoxr/libsoxr.mk | 4 ++--
package/libubox/libubox.mk | 7 ++++---
package/libuci/libuci.mk | 5 +++--
package/ne10/ne10.mk | 5 -----
package/opencv/opencv.mk | 2 --
package/pkg-cmake.mk | 13 +++++++++++++
package/polarssl/polarssl.mk | 1 -
10 files changed, 32 insertions(+), 18 deletions(-)
--
2.1.2
^ permalink raw reply [flat|nested] 22+ messages in thread
* [Buildroot] [PATCH 01/15] package/pkg-cmake.mk: globally disable doc, examples and tests
2014-10-19 18:04 [Buildroot] [PATCH 00/15] CMake janitor Samuel Martin
@ 2014-10-19 18:04 ` Samuel Martin
2014-10-19 20:10 ` Thomas Petazzoni
2014-10-19 18:04 ` [Buildroot] [PATCH 02/15] package/pkg-cmake.mk: disable colouring the output Samuel Martin
` (14 subsequent siblings)
15 siblings, 1 reply; 22+ messages in thread
From: Samuel Martin @ 2014-10-19 18:04 UTC (permalink / raw)
To: buildroot
This patch globally disables doc, examples and tests build for both the
target and host packages.
If needed, these configure flags can be overloaded in the per-package
*_CONF_OPTS variables.
This makes the cmake-package infrastructure even closer to the autotools
one.
Signed-off-by: Samuel Martin <s.martin49@gmail.com>
---
package/pkg-cmake.mk | 12 ++++++++++++
1 file changed, 12 insertions(+)
diff --git a/package/pkg-cmake.mk b/package/pkg-cmake.mk
index 92574e2..3c5d4fe 100644
--- a/package/pkg-cmake.mk
+++ b/package/pkg-cmake.mk
@@ -66,6 +66,12 @@ define $(2)_CONFIGURE_CMDS
-DCMAKE_BUILD_TYPE=$$(if $$(BR2_ENABLE_DEBUG),Debug,Release) \
-DCMAKE_INSTALL_PREFIX="/usr" \
-DCMAKE_COLOR_MAKEFILE=OFF \
+ -DBUILD_DOC=OFF \
+ -DBUILD_DOCS=OFF \
+ -DBUILD_EXAMPLE=OFF \
+ -DBUILD_EXAMPLES=OFF \
+ -DBUILD_TEST=OFF \
+ -DBUILD_TESTS=OFF \
-DBUILD_TESTING=OFF \
-DBUILD_SHARED_LIBS=$$(if $$(BR2_PREFER_STATIC_LIB),OFF,ON) \
-DUSE_CCACHE=$$(if $$(BR2_CCACHE),ON,OFF) \
@@ -89,6 +95,12 @@ define $(2)_CONFIGURE_CMDS
-DCMAKE_C_FLAGS="$$(HOST_CFLAGS)" \
-DCMAKE_CXX_FLAGS="$$(HOST_CXXFLAGS)" \
-DCMAKE_EXE_LINKER_FLAGS="$$(HOST_LDFLAGS)" \
+ -DBUILD_DOC=OFF \
+ -DBUILD_DOCS=OFF \
+ -DBUILD_EXAMPLE=OFF \
+ -DBUILD_EXAMPLES=OFF \
+ -DBUILD_TEST=OFF \
+ -DBUILD_TESTS=OFF \
-DBUILD_TESTING=OFF \
$$($$(PKG)_CONF_OPTS) \
)
--
2.1.2
^ permalink raw reply related [flat|nested] 22+ messages in thread
* [Buildroot] [PATCH 02/15] package/pkg-cmake.mk: disable colouring the output
2014-10-19 18:04 [Buildroot] [PATCH 00/15] CMake janitor Samuel Martin
2014-10-19 18:04 ` [Buildroot] [PATCH 01/15] package/pkg-cmake.mk: globally disable doc, examples and tests Samuel Martin
@ 2014-10-19 18:04 ` Samuel Martin
2014-10-19 18:04 ` [Buildroot] [PATCH 03/15] package/clapack: cleanup configure options Samuel Martin
` (13 subsequent siblings)
15 siblings, 0 replies; 22+ messages in thread
From: Samuel Martin @ 2014-10-19 18:04 UTC (permalink / raw)
To: buildroot
Because cmake was the only build-system supporting this feature, it has been
disabled for the target packages.
For consistency, this patch does the same for host package too.
Signed-off-by: Samuel Martin <s.martin49@gmail.com>
---
package/pkg-cmake.mk | 1 +
1 file changed, 1 insertion(+)
diff --git a/package/pkg-cmake.mk b/package/pkg-cmake.mk
index 3c5d4fe..c8735ef 100644
--- a/package/pkg-cmake.mk
+++ b/package/pkg-cmake.mk
@@ -95,6 +95,7 @@ define $(2)_CONFIGURE_CMDS
-DCMAKE_C_FLAGS="$$(HOST_CFLAGS)" \
-DCMAKE_CXX_FLAGS="$$(HOST_CXXFLAGS)" \
-DCMAKE_EXE_LINKER_FLAGS="$$(HOST_LDFLAGS)" \
+ -DCMAKE_COLOR_MAKEFILE=OFF \
-DBUILD_DOC=OFF \
-DBUILD_DOCS=OFF \
-DBUILD_EXAMPLE=OFF \
--
2.1.2
^ permalink raw reply related [flat|nested] 22+ messages in thread
* [Buildroot] [PATCH 03/15] package/clapack: cleanup configure options
2014-10-19 18:04 [Buildroot] [PATCH 00/15] CMake janitor Samuel Martin
2014-10-19 18:04 ` [Buildroot] [PATCH 01/15] package/pkg-cmake.mk: globally disable doc, examples and tests Samuel Martin
2014-10-19 18:04 ` [Buildroot] [PATCH 02/15] package/pkg-cmake.mk: disable colouring the output Samuel Martin
@ 2014-10-19 18:04 ` Samuel Martin
2014-10-19 18:04 ` [Buildroot] [PATCH 04/15] package/flann: " Samuel Martin
` (12 subsequent siblings)
15 siblings, 0 replies; 22+ messages in thread
From: Samuel Martin @ 2014-10-19 18:04 UTC (permalink / raw)
To: buildroot
Remove the BUILD_TESTING configure option (note the typo in its existing
name), which is already set to the same value by the cmake
infrastructure.
Signed-off-by: Samuel Martin <s.martin49@gmail.com>
---
package/clapack/clapack.mk | 1 -
1 file changed, 1 deletion(-)
diff --git a/package/clapack/clapack.mk b/package/clapack/clapack.mk
index 99de35d..c3841f2 100644
--- a/package/clapack/clapack.mk
+++ b/package/clapack/clapack.mk
@@ -14,7 +14,6 @@ CLAPACK_LICENSE = HPND (libf2c), BSD-3c (libblas and liblapack)
CLAPACK_LICENSE_FILES = F2CLIBS/libf2c/Notice COPYING
CLAPACK_SITE = http://www.netlib.org/clapack
CLAPACK_INSTALL_STAGING = YES
-CLAPACK_CONF_OPTS = -DBUILDTESTING=OFF
ifneq ($(BR2_PACKAGE_CLAPACK_ARITH_H),)
CLAPACK_CONF_OPTS += -DARITH_H=$(BR2_PACKAGE_CLAPACK_ARITH_H)
--
2.1.2
^ permalink raw reply related [flat|nested] 22+ messages in thread
* [Buildroot] [PATCH 04/15] package/flann: cleanup configure options
2014-10-19 18:04 [Buildroot] [PATCH 00/15] CMake janitor Samuel Martin
` (2 preceding siblings ...)
2014-10-19 18:04 ` [Buildroot] [PATCH 03/15] package/clapack: cleanup configure options Samuel Martin
@ 2014-10-19 18:04 ` Samuel Martin
2014-10-19 18:04 ` [Buildroot] [PATCH 05/15] package/libsoxr: " Samuel Martin
` (11 subsequent siblings)
15 siblings, 0 replies; 22+ messages in thread
From: Samuel Martin @ 2014-10-19 18:04 UTC (permalink / raw)
To: buildroot
Disabling doc and test build is already done by the cmake-package
infrastructure.
Signed-off-by: Samuel Martin <s.martin49@gmail.com>
---
package/flann/flann.mk | 2 --
1 file changed, 2 deletions(-)
diff --git a/package/flann/flann.mk b/package/flann/flann.mk
index bbf1e03..98af0b1 100644
--- a/package/flann/flann.mk
+++ b/package/flann/flann.mk
@@ -14,8 +14,6 @@ FLANN_CONF_OPTS = \
-DBUILD_PYTHON_BINDINGS=OFF \
-DBUILD_MATLAB_BINDINGS=OFF \
-DBUILD_EXAMPLES=$(if $(BR2_PACKAGE_FLANN_EXAMPLES),ON,OFF) \
- -DBUILD_TESTS=OFF \
- -DBUILD_DOC=OFF \
-DUSE_OPENMP=$(if $(BR2_GCC_ENABLE_OPENMP),ON,OFF) \
-DPYTHON_EXECUTABLE=OFF
--
2.1.2
^ permalink raw reply related [flat|nested] 22+ messages in thread
* [Buildroot] [PATCH 05/15] package/libsoxr: cleanup configure options
2014-10-19 18:04 [Buildroot] [PATCH 00/15] CMake janitor Samuel Martin
` (3 preceding siblings ...)
2014-10-19 18:04 ` [Buildroot] [PATCH 04/15] package/flann: " Samuel Martin
@ 2014-10-19 18:04 ` Samuel Martin
2014-10-19 18:04 ` [Buildroot] [PATCH 06/15] " Samuel Martin
` (10 subsequent siblings)
15 siblings, 0 replies; 22+ messages in thread
From: Samuel Martin @ 2014-10-19 18:04 UTC (permalink / raw)
To: buildroot
Test build is already disabled by the cmake-package infrastructure.
Signed-off-by: Samuel Martin <s.martin49@gmail.com>
---
package/libsoxr/libsoxr.mk | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/package/libsoxr/libsoxr.mk b/package/libsoxr/libsoxr.mk
index 498db8e..528d5c1 100644
--- a/package/libsoxr/libsoxr.mk
+++ b/package/libsoxr/libsoxr.mk
@@ -10,7 +10,7 @@ LIBSOXR_SITE = http://downloads.sourceforge.net/project/soxr
LIBSOXR_LICENSE = LGPLv2.1+
LIBSOXR_LICENSE_FILES = LICENCE COPYING.LGPL
LIBSOXR_INSTALL_STAGING = YES
-LIBSOXR_CONF_OPTS = -DWITH_OPENMP:BOOL=OFF -DBUILD_TESTS:BOOL=OFF
+LIBSOXR_CONF_OPTS = -DWITH_OPENMP=OFF
ifeq ($(BR2_PREFER_STATIC_LIB),y)
LIBSOXR_CONF_OPTS += -DBUILD_SHARED_LIBS:BOOL=OFF
--
2.1.2
^ permalink raw reply related [flat|nested] 22+ messages in thread
* [Buildroot] [PATCH 06/15] package/libsoxr: cleanup configure options
2014-10-19 18:04 [Buildroot] [PATCH 00/15] CMake janitor Samuel Martin
` (4 preceding siblings ...)
2014-10-19 18:04 ` [Buildroot] [PATCH 05/15] package/libsoxr: " Samuel Martin
@ 2014-10-19 18:04 ` Samuel Martin
2014-10-19 18:04 ` [Buildroot] [PATCH 07/15] package/libubox: cleanup dependencies Samuel Martin
` (9 subsequent siblings)
15 siblings, 0 replies; 22+ messages in thread
From: Samuel Martin @ 2014-10-19 18:04 UTC (permalink / raw)
To: buildroot
BUILD_SHARED_LIBS is already driven by the cmake-package infrastructure.
Signed-off-by: Samuel Martin <s.martin49@gmail.com>
---
package/libsoxr/libsoxr.mk | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/package/libsoxr/libsoxr.mk b/package/libsoxr/libsoxr.mk
index 528d5c1..316fbe2 100644
--- a/package/libsoxr/libsoxr.mk
+++ b/package/libsoxr/libsoxr.mk
@@ -13,7 +13,7 @@ LIBSOXR_INSTALL_STAGING = YES
LIBSOXR_CONF_OPTS = -DWITH_OPENMP=OFF
ifeq ($(BR2_PREFER_STATIC_LIB),y)
-LIBSOXR_CONF_OPTS += -DBUILD_SHARED_LIBS:BOOL=OFF
+LIBSOXR_CONF_OPTS += -DBUILD_SHARED_LIBS=OFF
endif
ifeq ($(call qstrip,$(BR2_ENDIAN)),BIG)
--
2.1.2
^ permalink raw reply related [flat|nested] 22+ messages in thread
* [Buildroot] [PATCH 07/15] package/libubox: cleanup dependencies
2014-10-19 18:04 [Buildroot] [PATCH 00/15] CMake janitor Samuel Martin
` (5 preceding siblings ...)
2014-10-19 18:04 ` [Buildroot] [PATCH 06/15] " Samuel Martin
@ 2014-10-19 18:04 ` Samuel Martin
2014-10-19 18:04 ` [Buildroot] [PATCH 08/15] package/libubox: cleanup configure options Samuel Martin
` (8 subsequent siblings)
15 siblings, 0 replies; 22+ messages in thread
From: Samuel Martin @ 2014-10-19 18:04 UTC (permalink / raw)
To: buildroot
host-pkgconf is already a (runtime) dependency for host-cmake.
Signed-off-by: Samuel Martin <s.martin49@gmail.com>
---
package/libubox/libubox.mk | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/package/libubox/libubox.mk b/package/libubox/libubox.mk
index 7ff3c16..e6d95b7 100644
--- a/package/libubox/libubox.mk
+++ b/package/libubox/libubox.mk
@@ -8,7 +8,7 @@ LIBUBOX_VERSION = 5a0bbefc8fa440446253b171d0ac038d839360e3
LIBUBOX_SITE = git://nbd.name/luci2/libubox.git
LIBUBOX_LICENSE = LGPLv2.1, GPLv2, BSD-3c, MIT
LIBUBOX_INSTALL_STAGING = YES
-LIBUBOX_DEPENDENCIES = host-pkgconf $(if $(BR2_PACKAGE_JSON_C),json-c)
+LIBUBOX_DEPENDENCIES = $(if $(BR2_PACKAGE_JSON_C),json-c)
ifeq ($(BR2_USE_MMU)$(BR2_PACKAGE_LUA_5_1),yy)
LIBUBOX_DEPENDENCIES += lua
--
2.1.2
^ permalink raw reply related [flat|nested] 22+ messages in thread
* [Buildroot] [PATCH 08/15] package/libubox: cleanup configure options
2014-10-19 18:04 [Buildroot] [PATCH 00/15] CMake janitor Samuel Martin
` (6 preceding siblings ...)
2014-10-19 18:04 ` [Buildroot] [PATCH 07/15] package/libubox: cleanup dependencies Samuel Martin
@ 2014-10-19 18:04 ` Samuel Martin
2014-10-19 18:04 ` [Buildroot] [PATCH 09/15] " Samuel Martin
` (7 subsequent siblings)
15 siblings, 0 replies; 22+ messages in thread
From: Samuel Martin @ 2014-10-19 18:04 UTC (permalink / raw)
To: buildroot
Remove unneeded type in configure option's definition.
Signed-off-by: Samuel Martin <s.martin49@gmail.com>
---
package/libubox/libubox.mk | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/package/libubox/libubox.mk b/package/libubox/libubox.mk
index e6d95b7..572cfe9 100644
--- a/package/libubox/libubox.mk
+++ b/package/libubox/libubox.mk
@@ -15,7 +15,7 @@ LIBUBOX_DEPENDENCIES += lua
LIBUBOX_CONF_OPTS += -DLUAPATH=$(STAGING_DIR)/usr/lib/lua/5.1 \
-DLUA_CFLAGS=-I$(STAGING_DIR)/usr/include
else
-LIBUBOX_CONF_OPTS += -DBUILD_LUA:BOOL=OFF
+LIBUBOX_CONF_OPTS += -DBUILD_LUA=OFF
endif
$(eval $(cmake-package))
--
2.1.2
^ permalink raw reply related [flat|nested] 22+ messages in thread
* [Buildroot] [PATCH 09/15] package/libubox: cleanup configure options
2014-10-19 18:04 [Buildroot] [PATCH 00/15] CMake janitor Samuel Martin
` (7 preceding siblings ...)
2014-10-19 18:04 ` [Buildroot] [PATCH 08/15] package/libubox: cleanup configure options Samuel Martin
@ 2014-10-19 18:04 ` Samuel Martin
2014-10-19 18:04 ` [Buildroot] [PATCH 10/15] package/libuci: " Samuel Martin
` (6 subsequent siblings)
15 siblings, 0 replies; 22+ messages in thread
From: Samuel Martin @ 2014-10-19 18:04 UTC (permalink / raw)
To: buildroot
Make BUILD_LUA assignation symetrical.
Signed-off-by: Samuel Martin <s.martin49@gmail.com>
---
package/libubox/libubox.mk | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/package/libubox/libubox.mk b/package/libubox/libubox.mk
index 572cfe9..5d9c01d 100644
--- a/package/libubox/libubox.mk
+++ b/package/libubox/libubox.mk
@@ -12,7 +12,8 @@ LIBUBOX_DEPENDENCIES = $(if $(BR2_PACKAGE_JSON_C),json-c)
ifeq ($(BR2_USE_MMU)$(BR2_PACKAGE_LUA_5_1),yy)
LIBUBOX_DEPENDENCIES += lua
-LIBUBOX_CONF_OPTS += -DLUAPATH=$(STAGING_DIR)/usr/lib/lua/5.1 \
+LIBUBOX_CONF_OPTS += -DBUILD_LUA=ON \
+ -DLUAPATH=$(STAGING_DIR)/usr/lib/lua/5.1 \
-DLUA_CFLAGS=-I$(STAGING_DIR)/usr/include
else
LIBUBOX_CONF_OPTS += -DBUILD_LUA=OFF
--
2.1.2
^ permalink raw reply related [flat|nested] 22+ messages in thread
* [Buildroot] [PATCH 10/15] package/libuci: cleanup configure options
2014-10-19 18:04 [Buildroot] [PATCH 00/15] CMake janitor Samuel Martin
` (8 preceding siblings ...)
2014-10-19 18:04 ` [Buildroot] [PATCH 09/15] " Samuel Martin
@ 2014-10-19 18:04 ` Samuel Martin
2014-10-19 18:04 ` [Buildroot] [PATCH 11/15] " Samuel Martin
` (5 subsequent siblings)
15 siblings, 0 replies; 22+ messages in thread
From: Samuel Martin @ 2014-10-19 18:04 UTC (permalink / raw)
To: buildroot
Remove unneeded type in configure option's definition.
Signed-off-by: Samuel Martin <s.martin49@gmail.com>
---
package/libuci/libuci.mk | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/package/libuci/libuci.mk b/package/libuci/libuci.mk
index 9d5c172..12e07fc 100644
--- a/package/libuci/libuci.mk
+++ b/package/libuci/libuci.mk
@@ -15,7 +15,7 @@ LIBUCI_DEPENDENCIES += lua
LIBUCI_CONF_OPTS += -DLUAPATH=$(STAGING_DIR)/usr/lib/lua/5.1 \
-DLUA_CFLAGS=-I$(STAGING_DIR)/usr/include
else
-LIBUCI_CONF_OPTS += -DBUILD_LUA:BOOL=OFF
+LIBUCI_CONF_OPTS += -DBUILD_LUA=OFF
endif
$(eval $(cmake-package))
--
2.1.2
^ permalink raw reply related [flat|nested] 22+ messages in thread
* [Buildroot] [PATCH 11/15] package/libuci: cleanup configure options
2014-10-19 18:04 [Buildroot] [PATCH 00/15] CMake janitor Samuel Martin
` (9 preceding siblings ...)
2014-10-19 18:04 ` [Buildroot] [PATCH 10/15] package/libuci: " Samuel Martin
@ 2014-10-19 18:04 ` Samuel Martin
2014-10-19 18:04 ` [Buildroot] [PATCH 12/15] package/ne10: " Samuel Martin
` (4 subsequent siblings)
15 siblings, 0 replies; 22+ messages in thread
From: Samuel Martin @ 2014-10-19 18:04 UTC (permalink / raw)
To: buildroot
Make BUILD_LUA assignation symetrical.
Signed-off-by: Samuel Martin <s.martin49@gmail.com>
---
package/libuci/libuci.mk | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/package/libuci/libuci.mk b/package/libuci/libuci.mk
index 12e07fc..a78048d 100644
--- a/package/libuci/libuci.mk
+++ b/package/libuci/libuci.mk
@@ -12,7 +12,8 @@ LIBUCI_DEPENDENCIES = libubox
ifeq ($(BR2_PACKAGE_LUA_5_1),y)
LIBUCI_DEPENDENCIES += lua
-LIBUCI_CONF_OPTS += -DLUAPATH=$(STAGING_DIR)/usr/lib/lua/5.1 \
+LIBUCI_CONF_OPTS += -DBUILD_LUA=ON \
+ -DLUAPATH=$(STAGING_DIR)/usr/lib/lua/5.1 \
-DLUA_CFLAGS=-I$(STAGING_DIR)/usr/include
else
LIBUCI_CONF_OPTS += -DBUILD_LUA=OFF
--
2.1.2
^ permalink raw reply related [flat|nested] 22+ messages in thread
* [Buildroot] [PATCH 12/15] package/ne10: cleanup configure options
2014-10-19 18:04 [Buildroot] [PATCH 00/15] CMake janitor Samuel Martin
` (10 preceding siblings ...)
2014-10-19 18:04 ` [Buildroot] [PATCH 11/15] " Samuel Martin
@ 2014-10-19 18:04 ` Samuel Martin
2014-10-19 18:04 ` [Buildroot] [PATCH 13/15] package/opencv: " Samuel Martin
` (3 subsequent siblings)
15 siblings, 0 replies; 22+ messages in thread
From: Samuel Martin @ 2014-10-19 18:04 UTC (permalink / raw)
To: buildroot
BUILD_SHARED_LIBS is already driven by the cmake-package infrastructure.
Signed-off-by: Samuel Martin <s.martin49@gmail.com>
---
package/ne10/ne10.mk | 5 -----
1 file changed, 5 deletions(-)
diff --git a/package/ne10/ne10.mk b/package/ne10/ne10.mk
index cb635e4..49e0704 100644
--- a/package/ne10/ne10.mk
+++ b/package/ne10/ne10.mk
@@ -11,11 +11,6 @@ NE10_LICENSE_FILES = doc/LICENSE
NE10_CONF_OPTS = -DGNULINUX_PLATFORM=ON
-ifeq ($(BR2_PREFER_STATIC_LIB),)
-NE10_CONF_OPTS += \
- -DNE10_BUILD_SHARED=ON
-endif
-
# The package does not have any install target, so have to provide
# INSTALL_STAGING_CMDS and INSTALL_TARGET_CMDS.
--
2.1.2
^ permalink raw reply related [flat|nested] 22+ messages in thread
* [Buildroot] [PATCH 13/15] package/opencv: cleanup configure options
2014-10-19 18:04 [Buildroot] [PATCH 00/15] CMake janitor Samuel Martin
` (11 preceding siblings ...)
2014-10-19 18:04 ` [Buildroot] [PATCH 12/15] package/ne10: " Samuel Martin
@ 2014-10-19 18:04 ` Samuel Martin
2014-10-19 18:04 ` [Buildroot] [PATCH 14/15] package/polarssl: " Samuel Martin
` (2 subsequent siblings)
15 siblings, 0 replies; 22+ messages in thread
From: Samuel Martin @ 2014-10-19 18:04 UTC (permalink / raw)
To: buildroot
Disabling doc and example build is already done by the cmake-package
infrastructure.
Signed-off-by: Samuel Martin <s.martin49@gmail.com>
---
package/opencv/opencv.mk | 2 --
1 file changed, 2 deletions(-)
diff --git a/package/opencv/opencv.mk b/package/opencv/opencv.mk
index 5fc7387..61f529e 100644
--- a/package/opencv/opencv.mk
+++ b/package/opencv/opencv.mk
@@ -13,8 +13,6 @@ OPENCV_LICENSE_FILES = LICENSE
# OpenCV component options
OPENCV_CONF_OPTS += \
-DBUILD_WITH_DEBUG_INFO=OFF \
- -DBUILD_DOCS=OFF \
- -DBUILD_EXAMPLES=OFF \
-DBUILD_PERF_TESTS=$(if $(BR2_PACKAGE_OPENCV_BUILD_PERF_TESTS),ON,OFF) \
-DBUILD_TESTS=$(if $(BR2_PACKAGE_OPENCV_BUILD_TESTS),ON,OFF)
--
2.1.2
^ permalink raw reply related [flat|nested] 22+ messages in thread
* [Buildroot] [PATCH 14/15] package/polarssl: cleanup configure options
2014-10-19 18:04 [Buildroot] [PATCH 00/15] CMake janitor Samuel Martin
` (12 preceding siblings ...)
2014-10-19 18:04 ` [Buildroot] [PATCH 13/15] package/opencv: " Samuel Martin
@ 2014-10-19 18:04 ` Samuel Martin
2014-10-19 18:04 ` [Buildroot] [PATCH 15/15] docs/manual: update cmake-package infrastructure section Samuel Martin
2014-10-26 16:08 ` [Buildroot] [PATCH 00/15] CMake janitor Thomas Petazzoni
15 siblings, 0 replies; 22+ messages in thread
From: Samuel Martin @ 2014-10-19 18:04 UTC (permalink / raw)
To: buildroot
Test build is already disabled by the cmake-package infrastructure.
Signed-off-by: Samuel Martin <s.martin49@gmail.com>
---
| 1 -
1 file changed, 1 deletion(-)
--git a/package/polarssl/polarssl.mk b/package/polarssl/polarssl.mk
index 98dd5bc..21bf160 100644
--- a/package/polarssl/polarssl.mk
+++ b/package/polarssl/polarssl.mk
@@ -8,7 +8,6 @@ POLARSSL_SITE = https://polarssl.org/code/releases
POLARSSL_VERSION = 1.2.11
POLARSSL_SOURCE = polarssl-$(POLARSSL_VERSION)-gpl.tgz
POLARSSL_CONF_OPTS = \
- -DBUILD_TESTS=OFF \
-DENABLE_PROGRAMS=$(if $(BR2_PACKAGE_POLARSSL_PROGRAMS),ON,OFF)
POLARSSL_INSTALL_STAGING = YES
--
2.1.2
^ permalink raw reply related [flat|nested] 22+ messages in thread
* [Buildroot] [PATCH 15/15] docs/manual: update cmake-package infrastructure section
2014-10-19 18:04 [Buildroot] [PATCH 00/15] CMake janitor Samuel Martin
` (13 preceding siblings ...)
2014-10-19 18:04 ` [Buildroot] [PATCH 14/15] package/polarssl: " Samuel Martin
@ 2014-10-19 18:04 ` Samuel Martin
2014-10-26 16:08 ` [Buildroot] [PATCH 00/15] CMake janitor Thomas Petazzoni
15 siblings, 0 replies; 22+ messages in thread
From: Samuel Martin @ 2014-10-19 18:04 UTC (permalink / raw)
To: buildroot
This patch documents the CMake options preset by the cmake-package
infrastructure.
Signed-off-by: Samuel Martin <s.martin49@gmail.com>
---
docs/manual/adding-packages-cmake.txt | 10 ++++++++++
1 file changed, 10 insertions(+)
diff --git a/docs/manual/adding-packages-cmake.txt b/docs/manual/adding-packages-cmake.txt
index d5a7029..0f36c7d 100644
--- a/docs/manual/adding-packages-cmake.txt
+++ b/docs/manual/adding-packages-cmake.txt
@@ -96,6 +96,16 @@ typical packages will therefore only use a few of them.
* +LIBFOO_CONF_OPTS+, to specify additional configure options to pass
to CMake. By default, empty.
+ A number of common CMake options are set by the +cmake-package+
+ infrastructure; so it should not be necessary to set them in the
+ package's +*.mk+ file unless you want to override them:
+
+** +CMAKE_BUILD_TYPE+ is driven by +BR2_ENABLE_DEBUG+;
+** +CMAKE_INSTALL_PREFIX+;
+** +BUILD_SHARED_LIBS+ is driven by +BR2_PREFER_STATIC_LIBS+;
+** +BUILD_DOC+, +BUILD_DOCS+ are disabled;
+** +BUILD_EXAMPLE+, +BUILD_EXAMPLES+ are disabled;
+** +BUILD_TEST+, +BUILD_TESTS+, +BUILD_TESTING+ are disabled.
* +LIBFOO_MAKE+, to specify an alternate +make+ command. This is
typically useful when parallel make is enabled in the configuration
--
2.1.2
^ permalink raw reply related [flat|nested] 22+ messages in thread
* [Buildroot] [PATCH 01/15] package/pkg-cmake.mk: globally disable doc, examples and tests
2014-10-19 18:04 ` [Buildroot] [PATCH 01/15] package/pkg-cmake.mk: globally disable doc, examples and tests Samuel Martin
@ 2014-10-19 20:10 ` Thomas Petazzoni
2014-10-19 20:28 ` Samuel Martin
0 siblings, 1 reply; 22+ messages in thread
From: Thomas Petazzoni @ 2014-10-19 20:10 UTC (permalink / raw)
To: buildroot
Dear Samuel Martin,
On Sun, 19 Oct 2014 20:04:37 +0200, Samuel Martin wrote:
> + -DBUILD_DOC=OFF \
> + -DBUILD_DOCS=OFF \
> + -DBUILD_EXAMPLE=OFF \
> + -DBUILD_EXAMPLES=OFF \
> + -DBUILD_TEST=OFF \
> + -DBUILD_TESTS=OFF \
Are these options standardized by CMake, or are they just "generally"
used by a number of packages?
If not, I don't see why they should be passed by the
CMake infrastructure.
Thanks,
Thomas
--
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
^ permalink raw reply [flat|nested] 22+ messages in thread
* [Buildroot] [PATCH 01/15] package/pkg-cmake.mk: globally disable doc, examples and tests
2014-10-19 20:10 ` Thomas Petazzoni
@ 2014-10-19 20:28 ` Samuel Martin
2014-10-19 20:56 ` Thomas Petazzoni
0 siblings, 1 reply; 22+ messages in thread
From: Samuel Martin @ 2014-10-19 20:28 UTC (permalink / raw)
To: buildroot
Hi Thomas, all,
On Sun, Oct 19, 2014 at 10:10 PM, Thomas Petazzoni
<thomas.petazzoni@free-electrons.com> wrote:
> Dear Samuel Martin,
>
> On Sun, 19 Oct 2014 20:04:37 +0200, Samuel Martin wrote:
>
>> + -DBUILD_DOC=OFF \
>> + -DBUILD_DOCS=OFF \
>> + -DBUILD_EXAMPLE=OFF \
>> + -DBUILD_EXAMPLES=OFF \
>> + -DBUILD_TEST=OFF \
>> + -DBUILD_TESTS=OFF \
>
> Are these options standardized by CMake, or are they just "generally"
> used by a number of packages?
Not standardized by CMake, just used by a number of packages.
>
> If not, I don't see why they should be passed by the
> CMake infrastructure.
Since we don't really care about these things, and don't want to be
bothered by failure because of these features, I think it's a way to
enforce disabling them.
>
> Thanks,
>
> Thomas
> --
> Thomas Petazzoni, CTO, Free Electrons
> Embedded Linux, Kernel and Android engineering
> http://free-electrons.com
Regards,
--
Samuel
^ permalink raw reply [flat|nested] 22+ messages in thread
* [Buildroot] [PATCH 01/15] package/pkg-cmake.mk: globally disable doc, examples and tests
2014-10-19 20:28 ` Samuel Martin
@ 2014-10-19 20:56 ` Thomas Petazzoni
2014-10-20 8:34 ` Samuel Martin
2014-10-20 19:57 ` Arnout Vandecappelle
0 siblings, 2 replies; 22+ messages in thread
From: Thomas Petazzoni @ 2014-10-19 20:56 UTC (permalink / raw)
To: buildroot
Dear Samuel Martin,
On Sun, 19 Oct 2014 22:28:18 +0200, Samuel Martin wrote:
> > Are these options standardized by CMake, or are they just "generally"
> > used by a number of packages?
>
> Not standardized by CMake, just used by a number of packages.
>
> >
> > If not, I don't see why they should be passed by the
> > CMake infrastructure.
>
> Since we don't really care about these things, and don't want to be
> bothered by failure because of these features, I think it's a way to
> enforce disabling them.
And so, we will keep adding more and more options that are not CMake
standard options to the core CMake infrastructure?
I know we've done that for pkg-autotools, but I'm not sure it was such
a great idea. Especially, I'd like to understand where we will stop:
will we, when two packages have common options, move them to the common
infrastructure, even if those options are not CMake standard at all?
At least, I'd like to see what is our "policy" about this, and get some
feedback from other Buildroot developers on this.
Thomas
--
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
^ permalink raw reply [flat|nested] 22+ messages in thread
* [Buildroot] [PATCH 01/15] package/pkg-cmake.mk: globally disable doc, examples and tests
2014-10-19 20:56 ` Thomas Petazzoni
@ 2014-10-20 8:34 ` Samuel Martin
2014-10-20 19:57 ` Arnout Vandecappelle
1 sibling, 0 replies; 22+ messages in thread
From: Samuel Martin @ 2014-10-20 8:34 UTC (permalink / raw)
To: buildroot
On Sun, Oct 19, 2014 at 10:56 PM, Thomas Petazzoni
<thomas.petazzoni@free-electrons.com> wrote:
> Dear Samuel Martin,
>
> On Sun, 19 Oct 2014 22:28:18 +0200, Samuel Martin wrote:
>
>> > Are these options standardized by CMake, or are they just "generally"
>> > used by a number of packages?
>>
>> Not standardized by CMake, just used by a number of packages.
>>
>> >
>> > If not, I don't see why they should be passed by the
>> > CMake infrastructure.
>>
>> Since we don't really care about these things, and don't want to be
>> bothered by failure because of these features, I think it's a way to
>> enforce disabling them.
>
> And so, we will keep adding more and more options that are not CMake
> standard options to the core CMake infrastructure?
>
> I know we've done that for pkg-autotools, but I'm not sure it was such
> a great idea. Especially, I'd like to understand where we will stop:
> will we, when two packages have common options, move them to the common
> infrastructure, even if those options are not CMake standard at all?
This is a fair question.
>
> At least, I'd like to see what is our "policy" about this, and get some
> feedback from other Buildroot developers on this.
Well, the discussion is now open. ;-)
BTW, this series also contains a number of fixes and cleanup unrelated
to this particular change that go in anyway IMHO.
Regards,
>
> Thomas
> --
> Thomas Petazzoni, CTO, Free Electrons
> Embedded Linux, Kernel and Android engineering
> http://free-electrons.com
--
Samuel
^ permalink raw reply [flat|nested] 22+ messages in thread
* [Buildroot] [PATCH 01/15] package/pkg-cmake.mk: globally disable doc, examples and tests
2014-10-19 20:56 ` Thomas Petazzoni
2014-10-20 8:34 ` Samuel Martin
@ 2014-10-20 19:57 ` Arnout Vandecappelle
1 sibling, 0 replies; 22+ messages in thread
From: Arnout Vandecappelle @ 2014-10-20 19:57 UTC (permalink / raw)
To: buildroot
On 19/10/14 22:56, Thomas Petazzoni wrote:
> Dear Samuel Martin,
>
> On Sun, 19 Oct 2014 22:28:18 +0200, Samuel Martin wrote:
[snip]
>> Since we don't really care about these things, and don't want to be
>> bothered by failure because of these features, I think it's a way to
>> enforce disabling them.
>
> And so, we will keep adding more and more options that are not CMake
> standard options to the core CMake infrastructure?
>
> I know we've done that for pkg-autotools, but I'm not sure it was such
> a great idea. Especially, I'd like to understand where we will stop:
> will we, when two packages have common options, move them to the common
> infrastructure, even if those options are not CMake standard at all?
>
> At least, I'd like to see what is our "policy" about this, and get some
> feedback from other Buildroot developers on this.
I prefer to have these things in the common package infrastructure. It makes it
easier for package contributors to get things right. It doesn't really hurt to
add redundant options to configure or cmake (except for the warning, but the
warning message is clear enough to see when it is or isn't problematic). And
it's extremely unlikely that the options we provide in the infrastructure will
ever by wrong.
So for me, ease of development takes precedence over cleanliness.
Regards,
Arnout
--
Arnout Vandecappelle arnout at mind be
Senior Embedded Software Architect +32-16-286500
Essensium/Mind http://www.mind.be
G.Geenslaan 9, 3001 Leuven, Belgium BE 872 984 063 RPR Leuven
LinkedIn profile: http://www.linkedin.com/in/arnoutvandecappelle
GPG fingerprint: 7CB5 E4CC 6C2E EFD4 6E3D A754 F963 ECAB 2450 2F1F
^ permalink raw reply [flat|nested] 22+ messages in thread
* [Buildroot] [PATCH 00/15] CMake janitor
2014-10-19 18:04 [Buildroot] [PATCH 00/15] CMake janitor Samuel Martin
` (14 preceding siblings ...)
2014-10-19 18:04 ` [Buildroot] [PATCH 15/15] docs/manual: update cmake-package infrastructure section Samuel Martin
@ 2014-10-26 16:08 ` Thomas Petazzoni
15 siblings, 0 replies; 22+ messages in thread
From: Thomas Petazzoni @ 2014-10-26 16:08 UTC (permalink / raw)
To: buildroot
Dear Samuel Martin,
On Sun, 19 Oct 2014 20:04:36 +0200, Samuel Martin wrote:
> Samuel Martin (15):
> package/pkg-cmake.mk: globally disable doc, examples and tests
> package/pkg-cmake.mk: disable colouring the output
> package/clapack: cleanup configure options
> package/flann: cleanup configure options
> package/libsoxr: cleanup configure options
All applied.
> package/libsoxr: cleanup configure options
Applied after removing the entire BUILD_SHARED_LIBS option.
> package/libubox: cleanup dependencies
> package/libubox: cleanup configure options
> package/libubox: cleanup configure options
> package/libuci: cleanup configure options
> package/libuci: cleanup configure options
All applied.
> package/ne10: cleanup configure options
Rejected, as it doesn't make sense: the ne10 option to disable shared
libraries is specific, and is not the one passed by the CMake package
infra.
> package/opencv: cleanup configure options
> package/polarssl: cleanup configure options
> docs/manual: update cmake-package infrastructure section
All applied.
Thanks!
Thomas
--
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
^ permalink raw reply [flat|nested] 22+ messages in thread
end of thread, other threads:[~2014-10-26 16:08 UTC | newest]
Thread overview: 22+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-10-19 18:04 [Buildroot] [PATCH 00/15] CMake janitor Samuel Martin
2014-10-19 18:04 ` [Buildroot] [PATCH 01/15] package/pkg-cmake.mk: globally disable doc, examples and tests Samuel Martin
2014-10-19 20:10 ` Thomas Petazzoni
2014-10-19 20:28 ` Samuel Martin
2014-10-19 20:56 ` Thomas Petazzoni
2014-10-20 8:34 ` Samuel Martin
2014-10-20 19:57 ` Arnout Vandecappelle
2014-10-19 18:04 ` [Buildroot] [PATCH 02/15] package/pkg-cmake.mk: disable colouring the output Samuel Martin
2014-10-19 18:04 ` [Buildroot] [PATCH 03/15] package/clapack: cleanup configure options Samuel Martin
2014-10-19 18:04 ` [Buildroot] [PATCH 04/15] package/flann: " Samuel Martin
2014-10-19 18:04 ` [Buildroot] [PATCH 05/15] package/libsoxr: " Samuel Martin
2014-10-19 18:04 ` [Buildroot] [PATCH 06/15] " Samuel Martin
2014-10-19 18:04 ` [Buildroot] [PATCH 07/15] package/libubox: cleanup dependencies Samuel Martin
2014-10-19 18:04 ` [Buildroot] [PATCH 08/15] package/libubox: cleanup configure options Samuel Martin
2014-10-19 18:04 ` [Buildroot] [PATCH 09/15] " Samuel Martin
2014-10-19 18:04 ` [Buildroot] [PATCH 10/15] package/libuci: " Samuel Martin
2014-10-19 18:04 ` [Buildroot] [PATCH 11/15] " Samuel Martin
2014-10-19 18:04 ` [Buildroot] [PATCH 12/15] package/ne10: " Samuel Martin
2014-10-19 18:04 ` [Buildroot] [PATCH 13/15] package/opencv: " Samuel Martin
2014-10-19 18:04 ` [Buildroot] [PATCH 14/15] package/polarssl: " Samuel Martin
2014-10-19 18:04 ` [Buildroot] [PATCH 15/15] docs/manual: update cmake-package infrastructure section Samuel Martin
2014-10-26 16:08 ` [Buildroot] [PATCH 00/15] CMake janitor 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.