Skip to contentSkip to conversation

Added support for configuration of boost binary names layout

PATCH Superseded Uwe Kindler 2 participants 2 messages Mar 13, 2014

v1 of 4 Superseded Latest is v4 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/2 Added support for configuration of boost binary names layout

---
 package/boost/Config.in |   34 ++++++++++++++++++++++++++++++++++
 package/boost/boost.mk  |    7 ++++---
 2 files changed, 38 insertions(+), 3 deletions(-)
package/boost/Config.in +34 -0
index 68c3909..57dd5fc 100644
@@ -16,6 +16,40 @@ config BR2_PACKAGE_BOOST
 
 if BR2_PACKAGE_BOOST
 
+choice
+	prompt "Layout"
+	default BR2_PACKAGE_BOOST_LAYOUT_SYSTEM
+	help
+	  Selects the layout of Boost binary names
+
+config BR2_PACKAGE_BOOST_LAYOUT_SYSTEM
+	bool "system"
+	help
+	  Boost binary names do not include the Boost version number or the name and 
+	  version number of the compiler.
+
+config BR2_PACKAGE_BOOST_LAYOUT_TAGGED
+	bool "tagged"
+	help
+	  Boost binary names include the encoded build properties such as 
+	  variant and threading, but do not including compiler name and version, or 
+	  Boost version. This option is useful if you build several variants of 
+	  Boost, using the same compiler.
+	  
+config BR2_PACKAGE_BOOST_LAYOUT_VERSIONED
+	bool "versioned"
+	help
+	  Boost binary names include the Boost version number, name and 
+	  version of the compiler and encoded build properties.
+	  
+config BR2_PACKAGE_BOOST_LAYOUT
+	string
+	default "system" if BR2_PACKAGE_BOOST_LAYOUT_SYSTEM
+	default "tagged" if BR2_PACKAGE_BOOST_LAYOUT_TAGGED
+	default "versioned" if BR2_PACKAGE_BOOST_LAYOUT_VERSIONED
+	  
+endchoice
+
 config BR2_PACKAGE_BOOST_CHRONO
 	bool "boost-chrono"
 
package/boost/boost.mk +4 -3
index 7aab614..2ae8034 100644
@@ -81,6 +81,7 @@ endif
 
 BOOST_WITHOUT_FLAGS_COMMASEPERATED += $(subst $(space),$(comma),$(strip $(BOOST_WITHOUT_FLAGS)))
 BOOST_FLAGS += $(if $(BOOST_WITHOUT_FLAGS_COMMASEPERATED), --without-libraries=$(BOOST_WITHOUT_FLAGS_COMMASEPERATED))
+BOOST_LAYOUT = $(call qstrip, $(BR2_PACKAGE_BOOST_LAYOUT))
 
 define BOOST_CONFIGURE_CMDS
 	(cd $(@D) && ./bootstrap.sh $(BOOST_FLAGS))
@@ -99,7 +100,7 @@ define BOOST_INSTALL_TARGET_CMDS
 	--user-config=$(@D)/user-config.jam \
 	$(BOOST_OPT) \
 	--prefix=$(TARGET_DIR)/usr \
-	--layout=system install )
+	--layout=$(BOOST_LAYOUT) install )
 endef
 
 define HOST_BOOST_BUILD_CMDS
@@ -114,7 +115,7 @@ define HOST_BOOST_INSTALL_CMDS
 	--user-config=$(@D)/user-config.jam \
 	$(HOST_BOOST_OPT) \
 	--prefix=$(HOST_DIR)/usr \
-	--layout=system install )
+	--layout=$(BOOST_LAYOUT) install )
 endef
 
 define BOOST_INSTALL_STAGING_CMDS
@@ -122,7 +123,7 @@ define BOOST_INSTALL_STAGING_CMDS
 	--user-config=$(@D)/user-config.jam \
 	$(BOOST_OPT) \
 	--prefix=$(STAGING_DIR)/usr \
-	--layout=system install)
+	--layout=$(BOOST_LAYOUT) install)
 endef
 
 $(eval $(generic-package))
Signature · 1 line
1.7.9.5
#1 lore raw

PATCH 1/2 Added support for configuration of boost binary names layout

Hi Uwe,

Quoted 7 lines · Uwe Kindler
---
 package/boost/Config.in |   34 ++++++++++++++++++++++++++++++++++
 package/boost/boost.mk  |    7 ++++---
 2 files changed, 38 insertions(+), 3 deletions(-)

Your second version of this patch is titled "PATCH 1/2" which seems to indicate that this is the first patch in a series of 2. Instead, you should mark the patch as "PATCH v2".

Also, when sending a v2/v3/..., please include a list of changes (revision changelog) so reviewers know what you have changed and can focus on that. See
http://nightly.buildroot.org/manual.html#submitting-patches

See also below for one more comment...

Quoted 16 lines
package/boost/Config.in +7 -0
index 68c3909..57dd5fc 100644
@@ -16,6 +16,40 @@ config BR2_PACKAGE_BOOST
 
 if BR2_PACKAGE_BOOST
 
+choice
+       prompt "Layout"
+       default BR2_PACKAGE_BOOST_LAYOUT_SYSTEM
+       help
+         Selects the layout of Boost binary names
+
+config BR2_PACKAGE_BOOST_LAYOUT_SYSTEM

package/boost/Config.in config BR2_PACKAGE_BOOST · line 35

Quoted 10 lines
package/boost/Config.in +10 -0
+       bool "system"
+       help
+         Boost binary names do not include the Boost version number or the name and
+         version number of the compiler.
+
+config BR2_PACKAGE_BOOST_LAYOUT_TAGGED
+       bool "tagged"
+       help
+         Boost binary names include the encoded build properties such as
+         variant and threading, but do not including compiler name and version, or

I think you did not see my comment in the previous mail. It should be "do not include compiler ..."
instead of
"do not including compiler ..."

Best regards,
Thomas