Merge pull request #8952 from ammubhave/add_boost_host_build
boost: add host library build for boost
This commit is contained in:
commit
3e520d2ba9
1 changed files with 35 additions and 16 deletions
|
@ -13,7 +13,7 @@ include $(TOPDIR)/rules.mk
|
||||||
PKG_NAME:=boost
|
PKG_NAME:=boost
|
||||||
PKG_VERSION:=1.70.0
|
PKG_VERSION:=1.70.0
|
||||||
PKG_SOURCE_VERSION:=1_70_0
|
PKG_SOURCE_VERSION:=1_70_0
|
||||||
PKG_RELEASE:=4
|
PKG_RELEASE:=5
|
||||||
|
|
||||||
PKG_SOURCE:=$(PKG_NAME)_$(PKG_SOURCE_VERSION).tar.bz2
|
PKG_SOURCE:=$(PKG_NAME)_$(PKG_SOURCE_VERSION).tar.bz2
|
||||||
PKG_SOURCE_URL:=@SF/$(PKG_NAME)/$(PKG_NAME)/$(PKG_VERSION) https://dl.bintray.com/boostorg/release/$(PKG_VERSION)/source/
|
PKG_SOURCE_URL:=@SF/$(PKG_NAME)/$(PKG_NAME)/$(PKG_VERSION) https://dl.bintray.com/boostorg/release/$(PKG_VERSION)/source/
|
||||||
|
@ -294,6 +294,16 @@ define Package/boost/config
|
||||||
)
|
)
|
||||||
endmenu
|
endmenu
|
||||||
|
|
||||||
|
menu "Select Boost libraries for Host build"
|
||||||
|
comment "Libraries for Host build"
|
||||||
|
|
||||||
|
$(foreach lib,$(BOOST_LIBS), \
|
||||||
|
config boost-host-build-$(lib)
|
||||||
|
bool "Boost $(lib) $(if $(findstring python,$(lib)),$(paren_left)v$(if $(findstring 3,$(lib)),$(BOOST_PYTHON3_VER),$(BOOST_PYTHON_VER))$(paren_right) ,)library."
|
||||||
|
default n
|
||||||
|
)
|
||||||
|
endmenu
|
||||||
|
|
||||||
endef
|
endef
|
||||||
|
|
||||||
PKG_CONFIG_DEPENDS:= CONFIG_PACKAGE_boost-test
|
PKG_CONFIG_DEPENDS:= CONFIG_PACKAGE_boost-test
|
||||||
|
@ -316,6 +326,7 @@ define DefineBoostLibrary
|
||||||
|
|
||||||
BOOST_DEPENDS+= +$(if $(4),$(4):boost-$(1),boost-$(1))
|
BOOST_DEPENDS+= +$(if $(4),$(4):boost-$(1),boost-$(1))
|
||||||
PKG_CONFIG_DEPENDS+= CONFIG_PACKAGE_boost-$(1)
|
PKG_CONFIG_DEPENDS+= CONFIG_PACKAGE_boost-$(1)
|
||||||
|
HOST_CONFIG_DEPENDS+= CONFIG_boost-host-build-$(1)
|
||||||
|
|
||||||
BOOST_LIBS+= $(1)
|
BOOST_LIBS+= $(1)
|
||||||
|
|
||||||
|
@ -366,6 +377,14 @@ include $(INCLUDE_DIR)/host-build.mk
|
||||||
define Host/Compile
|
define Host/Compile
|
||||||
# b2 does not provide a configure-script nor a Makefile
|
# b2 does not provide a configure-script nor a Makefile
|
||||||
( cd $(HOST_BUILD_DIR)/tools/build/src/engine ; ./build.sh gcc )
|
( cd $(HOST_BUILD_DIR)/tools/build/src/engine ; ./build.sh gcc )
|
||||||
|
|
||||||
|
( cd $(HOST_BUILD_DIR) ; \
|
||||||
|
./bootstrap.sh --prefix=$(STAGING_DIR_HOST) \
|
||||||
|
--with-libraries=$(subst $() $(),$(comma),$(strip \
|
||||||
|
headers \
|
||||||
|
$(foreach lib,$(BOOST_LIBS), \
|
||||||
|
$(if $(findstring python,$(lib)),,$(if $(CONFIG_boost-host-build-$(lib)),$(lib)))))) ; \
|
||||||
|
./b2 install )
|
||||||
endef
|
endef
|
||||||
|
|
||||||
CONFIGURE_PREFIX:=$(PKG_INSTALL_DIR)
|
CONFIGURE_PREFIX:=$(PKG_INSTALL_DIR)
|
||||||
|
|
Loading…
Reference in a new issue