diff mbox

[v6,07/16] package/opencv: disable all modules by default

Message ID 1435262397-888-8-git-send-email-s.martin49@gmail.com
State Accepted
Headers show

Commit Message

Samuel Martin June 25, 2015, 7:59 p.m. UTC
This change allows to reduce the size of the default OpenCV package, so
the final root filesystem.

However, this will break any existing defconfig enabling OpenCV. Indeed,
a minimal OpenCV  package will be built, whereas, prior to applying this
patches, a full-featured one would have been built instead.

Cc: "Yann E. Morin" <yann.morin.1998@free.fr>
Signed-off-by: Samuel Martin <s.martin49@gmail.com>

---
changes v5->v6:
- new patch
---
 package/opencv/Config.in | 5 -----
 1 file changed, 5 deletions(-)

Comments

Yann E. MORIN June 26, 2015, 3:36 p.m. UTC | #1
Samuel, All,

On 2015-06-25 21:59 +0200, Samuel Martin spake thusly:
> This change allows to reduce the size of the default OpenCV package, so
> the final root filesystem.
> 
> However, this will break any existing defconfig enabling OpenCV. Indeed,
> a minimal OpenCV  package will be built, whereas, prior to applying this
> patches, a full-featured one would have been built instead.
> 
> Cc: "Yann E. Morin" <yann.morin.1998@free.fr>
> Signed-off-by: Samuel Martin <s.martin49@gmail.com>

Although I'm usually not opposed to getting the smallest possible config
as a default, however as you say this one breaks existing defconfigs.

OTOH, do we really care?

Anyway, I won't ack this one, but I am not opposed to it being merged
either.

Regards,
Yann E. MORIN.

> ---
> changes v5->v6:
> - new patch
> ---
>  package/opencv/Config.in | 5 -----
>  1 file changed, 5 deletions(-)
> 
> diff --git a/package/opencv/Config.in b/package/opencv/Config.in
> index ce67f0c..3c00525 100644
> --- a/package/opencv/Config.in
> +++ b/package/opencv/Config.in
> @@ -93,7 +93,6 @@ comment "opencv_python module requires numpy which is not yet available."
>  
>  config BR2_PACKAGE_OPENCV_LIB_SHAPE
>  	bool "shape"
> -	default y
>  	# opencv_core dependency is already enabled
>  	select BR2_PACKAGE_OPENCV_LIB_IMGPROC
>  	select BR2_PACKAGE_OPENCV_LIB_VIDEO
> @@ -103,7 +102,6 @@ config BR2_PACKAGE_OPENCV_LIB_SHAPE
>  
>  config BR2_PACKAGE_OPENCV_LIB_STITCHING
>  	bool "stitching"
> -	default y
>  	select BR2_PACKAGE_OPENCV_LIB_CALIB3D
>  	select BR2_PACKAGE_OPENCV_LIB_FEATURES2D
>  	select BR2_PACKAGE_OPENCV_LIB_IMGPROC
> @@ -113,7 +111,6 @@ config BR2_PACKAGE_OPENCV_LIB_STITCHING
>  
>  config BR2_PACKAGE_OPENCV_LIB_SUPERRES
>  	bool "superres"
> -	default y
>  	select BR2_PACKAGE_OPENCV_LIB_IMGPROC
>  	select BR2_PACKAGE_OPENCV_LIB_VIDEO
>  	help
> @@ -121,7 +118,6 @@ config BR2_PACKAGE_OPENCV_LIB_SUPERRES
>  
>  config BR2_PACKAGE_OPENCV_LIB_TS
>  	bool "ts"
> -	default y
>  	# opencv_core dependency is already enabled
>  	select BR2_PACKAGE_OPENCV_LIB_HIGHGUI
>  	select BR2_PACKAGE_OPENCV_LIB_IMGCODECS
> @@ -145,7 +141,6 @@ config BR2_PACKAGE_OPENCV_LIB_VIDEO
>  
>  config BR2_PACKAGE_OPENCV_LIB_VIDEOSTAB
>  	bool "videostab"
> -	default y
>  	select BR2_PACKAGE_OPENCV_LIB_CALIB3D
>  	select BR2_PACKAGE_OPENCV_LIB_FEATURES2D
>  	select BR2_PACKAGE_OPENCV_LIB_IMGPROC
> -- 
> 2.4.4
>
Arnout Vandecappelle July 6, 2015, 10:19 p.m. UTC | #2
On 06/26/15 17:36, Yann E. MORIN wrote:
> Samuel, All,
> 
> On 2015-06-25 21:59 +0200, Samuel Martin spake thusly:
>> This change allows to reduce the size of the default OpenCV package, so
>> the final root filesystem.
>>
>> However, this will break any existing defconfig enabling OpenCV. Indeed,
>> a minimal OpenCV  package will be built, whereas, prior to applying this
>> patches, a full-featured one would have been built instead.
>>
>> Cc: "Yann E. Morin" <yann.morin.1998@free.fr>
>> Signed-off-by: Samuel Martin <s.martin49@gmail.com>
> 
> Although I'm usually not opposed to getting the smallest possible config
> as a default, however as you say this one breaks existing defconfigs.
> 
> OTOH, do we really care?

 I think we break defconfigs (as in, the result of 'make savedefconfig') fairly
often without really noticing. An obvious example is the kernel headers version.
But also for example with the ARM ABI rework (I'm not 100% sure but I think
there are defconfigs that would have changed).

 So I think breaking defconfigs is OK. To update to a new buildroot version you
should start from a full .config, not a defconfig.

 Regards,
 Arnout


> 
> Anyway, I won't ack this one, but I am not opposed to it being merged
> either.

[snip]
diff mbox

Patch

diff --git a/package/opencv/Config.in b/package/opencv/Config.in
index ce67f0c..3c00525 100644
--- a/package/opencv/Config.in
+++ b/package/opencv/Config.in
@@ -93,7 +93,6 @@  comment "opencv_python module requires numpy which is not yet available."
 
 config BR2_PACKAGE_OPENCV_LIB_SHAPE
 	bool "shape"
-	default y
 	# opencv_core dependency is already enabled
 	select BR2_PACKAGE_OPENCV_LIB_IMGPROC
 	select BR2_PACKAGE_OPENCV_LIB_VIDEO
@@ -103,7 +102,6 @@  config BR2_PACKAGE_OPENCV_LIB_SHAPE
 
 config BR2_PACKAGE_OPENCV_LIB_STITCHING
 	bool "stitching"
-	default y
 	select BR2_PACKAGE_OPENCV_LIB_CALIB3D
 	select BR2_PACKAGE_OPENCV_LIB_FEATURES2D
 	select BR2_PACKAGE_OPENCV_LIB_IMGPROC
@@ -113,7 +111,6 @@  config BR2_PACKAGE_OPENCV_LIB_STITCHING
 
 config BR2_PACKAGE_OPENCV_LIB_SUPERRES
 	bool "superres"
-	default y
 	select BR2_PACKAGE_OPENCV_LIB_IMGPROC
 	select BR2_PACKAGE_OPENCV_LIB_VIDEO
 	help
@@ -121,7 +118,6 @@  config BR2_PACKAGE_OPENCV_LIB_SUPERRES
 
 config BR2_PACKAGE_OPENCV_LIB_TS
 	bool "ts"
-	default y
 	# opencv_core dependency is already enabled
 	select BR2_PACKAGE_OPENCV_LIB_HIGHGUI
 	select BR2_PACKAGE_OPENCV_LIB_IMGCODECS
@@ -145,7 +141,6 @@  config BR2_PACKAGE_OPENCV_LIB_VIDEO
 
 config BR2_PACKAGE_OPENCV_LIB_VIDEOSTAB
 	bool "videostab"
-	default y
 	select BR2_PACKAGE_OPENCV_LIB_CALIB3D
 	select BR2_PACKAGE_OPENCV_LIB_FEATURES2D
 	select BR2_PACKAGE_OPENCV_LIB_IMGPROC