alljoyn-base: new package
PATCH v3 1/3 alljoyn-base: new package
AllJoyn Base Services are common services used by many devices, providing a set of interfaces for different devices to interact and interoperate with one another.
---
Changes v2 -> v3 (after review of Romain Naour):
- Move comment in Config.in at end of file to fix Kconfig indentation
- Remove / at the beginning of the ALLJOYN_BASE_DISTDIR variable
- Rewrap Config.in help text
Changes v1 -> v2 (after review of Romain Naour):
- Add dependencies on BR2_USE_MMU and !BR2_STATIC_LIBS
- Select BR2_PACKAGE_OPENSSL and never use builtin crypto library
- Remove unneeded comments on ALLJOYN_LICENSE_FILES
- Remove unneeded select and dependency on BR2_PACKAGE_LIBCAP as it is already done in alljoyn package
package/Config.in | 1 + package/alljoyn-base/Config.in | 43 ++++++++++++++++ package/alljoyn-base/alljoyn-base.hash | 2 + package/alljoyn-base/alljoyn-base.mk | 94 ++++++++++++++++++++++++++++++++++ 4 files changed, 140 insertions(+) create mode 100644 package/alljoyn-base/Config.in create mode 100644 package/alljoyn-base/alljoyn-base.hash create mode 100644 package/alljoyn-base/alljoyn-base.mk
package/Config.in +1 -0
@@ -1129,6 +1129,7 @@ endmenu menu "Networking" source "package/agentpp/Config.in" source "package/alljoyn/Config.in" + source "package/alljoyn-base/Config.in" source "package/batman-adv/Config.in" source "package/c-ares/Config.in" source "package/canfestival/Config.in"
package/alljoyn-base/Config.in new file +43 -0
43 lines not on this page · raw message
package/alljoyn-base/alljoyn-base.hash new file +2 -0
@@ -0,0 +1,2 @@ +# Locally computed: +sha256 742f724b3a06c8fc4039591dba24871755728221ca5dc4afb78ebd9a7e3beb44 alljoyn-base-16.04.00.tar.gz
package/alljoyn-base/alljoyn-base.mk new file +94 -0
94 lines not on this page · raw message
Signature · 1 line
2.7.4
PATCH v3 2/3 alljoyn-tcl: new package
The AllJoyn framework defines a common way for devices and apps to communicate with one another regardless of brands, categories, transports, and OSes. Developers write applications that discover nearby devices, and communicate with each other directly and through the cloud, unleashing new possibilities in the Internet of Things.
AllJoyn Thin Core Library (AJTCL) is designed to bring the benefits of the AllJoyn distributed programming environment to embedded systems.
---
Changes v2 -> v3 (after review of Romain Naour):
- Rename ajtcl into alljoyn-tcl for consistency
- Rewrap Config.in help text
Changes v1 -> v2 (after review of Romain Naour):
- Add dependencies on !BR2_STATIC_LIBS
- Remove unneeded comments on ALLJOYN_LICENSE_FILES
package/Config.in | 1 + package/alljoyn-tcl/Config.in | 20 +++++++++++++++++ package/alljoyn-tcl/alljoyn-tcl.hash | 2 ++ package/alljoyn-tcl/alljoyn-tcl.mk | 43 ++++++++++++++++++++++++++++++++++++ 4 files changed, 66 insertions(+) create mode 100644 package/alljoyn-tcl/Config.in create mode 100644 package/alljoyn-tcl/alljoyn-tcl.hash create mode 100644 package/alljoyn-tcl/alljoyn-tcl.mk
package/Config.in +1 -0
@@ -1130,6 +1130,7 @@ menu "Networking" source "package/agentpp/Config.in" source "package/alljoyn/Config.in" source "package/alljoyn-base/Config.in" + source "package/alljoyn-tcl/Config.in" source "package/batman-adv/Config.in" source "package/c-ares/Config.in" source "package/canfestival/Config.in"
package/alljoyn-tcl/Config.in new file +20 -0
@@ -0,0 +1,20 @@ +config BR2_PACKAGE_ALLJOYN_TCL + bool "alljoyn-tcl" + depends on !BR2_STATIC_LIBS + depends on BR2_TOOLCHAIN_HAS_THREADS + help + The AllJoyn framework defines a common way for devices and + apps to communicate with one another regardless of brands, + categories, transports, and OSes. Developers write + applications that discover nearby devices, and communicate + with each other directly and through the cloud, unleashing + new possibilities in the Internet of Things. + + AllJoyn Thin Core Library (AJTCL) is designed to bring the + benefits of the AllJoyn distributed programming environment + to embedded systems. + + https://allseenalliance.org + +comment "alljoyn-tcl needs a toolchain w/ threads and dynamic library" + depends on !BR2_TOOLCHAIN_HAS_THREADS || BR2_STATIC_LIBS
package/alljoyn-tcl/alljoyn-tcl.hash new file +2 -0
@@ -0,0 +1,2 @@ +# Locally computed: +sha256 ce6a05a67ff405ba6274e85fe750d98f40cbe7ab2c968218c7741a10bd86e21a ajtcl-16.04.00-src.tar.gz
package/alljoyn-tcl/alljoyn-tcl.mk new file +43 -0
43 lines not on this page · raw message
Signature · 1 line
2.7.4
PATCH v3 2/3 alljoyn-tcl: new package
Hi Fabrice,
Le 07/07/2016 ? 11:33, Fabrice Fontaine a ?crit :
Quoted 11 lines
The AllJoyn framework defines a common way for devices and apps to communicate with one another regardless of brands, categories, transports, and OSes. Developers write applications that discover nearby devices, and communicate with each other directly and through the cloud, unleashing new possibilities in the Internet of Things.
AllJoyn Thin Core Library (AJTCL) is designed to bring the benefits of the AllJoyn distributed programming environment to embedded systems.
Best regards,
Romain
Quoted 116 lines
Signed-off-by Fabrice Fontaine <[email protected]>---
Changes v2 -> v3 (after review of Romain Naour):
- Rename ajtcl into alljoyn-tcl for consistency
- Rewrap Config.in help textChanges v1 -> v2 (after review of Romain Naour):
- Add dependencies on !BR2_STATIC_LIBS
- Remove unneeded comments onALLJOYN_LICENSE_FILESpackage/Config.in | 1 + package/alljoyn-tcl/Config.in | 20 +++++++++++++++++ package/alljoyn-tcl/alljoyn-tcl.hash | 2 ++ package/alljoyn-tcl/alljoyn-tcl.mk | 43 ++++++++++++++++++++++++++++++++++++ 4 files changed, 66 insertions(+) create mode 100644 package/alljoyn-tcl/Config.in create mode 100644 package/alljoyn-tcl/alljoyn-tcl.hash create mode 100644 package/alljoyn-tcl/alljoyn-tcl.mkpackage/Config.in +1
-0@@ -1130,6 +1130,7 @@ menu "Networking" source "package/agentpp/Config.in" source "package/alljoyn/Config.in" source "package/alljoyn-base/Config.in" + source "package/alljoyn-tcl/Config.in" source "package/batman-adv/Config.in" source "package/c-ares/Config.in" source "package/canfestival/Config.in"package/alljoyn-tcl/Config.in new file +20
-0@@ -0,0 +1,20 @@ +config BR2_PACKAGE_ALLJOYN_TCL + bool "alljoyn-tcl" + depends on !BR2_STATIC_LIBS + depends on BR2_TOOLCHAIN_HAS_THREADS + help + The AllJoyn framework defines a common way for devices and + apps to communicate with one another regardless of brands, + categories, transports, and OSes. Developers write + applications that discover nearby devices, and communicate + with each other directly and through the cloud, unleashing + new possibilities in the Internet of Things. + + AllJoyn Thin Core Library (AJTCL) is designed to bring the + benefits of the AllJoyn distributed programming environment + to embedded systems. + + https://allseenalliance.org + +comment "alljoyn-tcl needs a toolchain w/ threads and dynamic library" + depends on !BR2_TOOLCHAIN_HAS_THREADS || BR2_STATIC_LIBSpackage/alljoyn-tcl/alljoyn-tcl.hash new file +2
-0@@ -0,0 +1,2 @@ +# Locally computed: +sha256 ce6a05a67ff405ba6274e85fe750d98f40cbe7ab2c968218c7741a10bd86e21a ajtcl-16.04.00-src.tar.gzpackage/alljoyn-tcl/alljoyn-tcl.mk new file +43
-0@@ -0,0 +1,43 @@ +################################################################################ +# +# alljoyn-tcl +# +################################################################################ + +ALLJOYN_TCL_REV = 16.04 +ALLJOYN_TCL_VERSION = $(ALLJOYN_TCL_REV).00 +ALLJOYN_TCL_SOURCE = ajtcl-$(ALLJOYN_TCL_VERSION)-src.tar.gz +ALLJOYN_TCL_SITE = \ + https://mirrors.kernel.org/allseenalliance/alljoyn/$(ALLJOYN_TCL_REV) +# See https://allseenalliance.org/alliance/ip-policy +ALLJOYN_TCL_LICENSE = ISC + +ALLJOYN_TCL_DEPENDENCIES = host-scons +ALLJOYN_TCL_INSTALL_STAGING = YES + +# AllJoyn Thin Core can be compiled in debug or release mode. By default, +# AllJoyn Thin Core is built in debug mode. +ALLJOYN_TCL_VARIANT = release + +ALLJOYN_TCL_SCONS_OPTS = \ + -j$(PARALLEL_JOBS) \ + V=1 \ + VARIANT=$(ALLJOYN_TCL_VARIANT) \ + CC="$(TARGET_CC)" \ + CXX="$(TARGET_CXX)" + +define ALLJOYN_TCL_BUILD_CMDS + cd $(@D); $(SCONS) $(ALLJOYN_TCL_SCONS_OPTS) +endef + +define ALLJOYN_TCL_INSTALL_STAGING_CMDS + cp -a $(@D)/dist/lib/lib* $(STAGING_DIR)/usr/lib/ + cp -a $(@D)/dist/include/* $(STAGING_DIR)/usr/include/ +endef + +# Only install AllJoyn Thin Core dynamic libraries into target directory +define ALLJOYN_TCL_INSTALL_TARGET_CMDS + cp -a $(@D)/dist/lib/lib*.so* $(TARGET_DIR)/usr/lib/ +endef + +$(eval $(generic-package))
Thomas Petazzoni
AppliedPATCH v3 2/3 alljoyn-tcl: new package
In reply to Fabrice FontaineHello,
Quoted 10 lines · Fabrice Fontaine
The AllJoyn framework defines a common way for devices and apps to communicate with one another regardless of brands, categories, transports, and OSes. Developers write applications that discover nearby devices, and communicate with each other directly and through the cloud, unleashing new possibilities in the Internet of Things.
AllJoyn Thin Core Library (AJTCL) is designed to bring the benefits of the AllJoyn distributed programming environment to embedded systems.
Quoted 7 lines
Signed-off-by Fabrice Fontaine <[email protected]>---
Changes v2 -> v3 (after review of Romain Naour):
- Rename ajtcl into alljoyn-tcl for consistency
- Rewrap Config.in help text
Applied to master, thanks.
Thomas
Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons Embedded Linux, Kernel and Android engineering http://free-electrons.com
PATCH v3 3/3 alljoyn-tcl-base: new package
In reply to Fabrice FontaineAllJoyn Base Services are common services used by many devices, providing a set of interfaces for different devices to interact and interoperate with one another.
Thin Client Library is designed to bring the benefits of the AllJoyn distributed programming environment to embedded systems.
---
Changes v2 -> v3 (after review of Romain Naour):
- Rewrap Config.in help text
- Replace dependency on ajtcl to alljoyn-tcl
package/Config.in | 1 + package/alljoyn-tcl-base/Config.in | 18 +++++++++++ package/alljoyn-tcl-base/alljoyn-tcl-base.hash | 2 ++ package/alljoyn-tcl-base/alljoyn-tcl-base.mk | 45 ++++++++++++++++++++++++++ 4 files changed, 66 insertions(+) create mode 100644 package/alljoyn-tcl-base/Config.in create mode 100644 package/alljoyn-tcl-base/alljoyn-tcl-base.hash create mode 100644 package/alljoyn-tcl-base/alljoyn-tcl-base.mk
package/Config.in +1 -0
@@ -1131,6 +1131,7 @@ menu "Networking" source "package/alljoyn/Config.in" source "package/alljoyn-base/Config.in" source "package/alljoyn-tcl/Config.in" + source "package/alljoyn-tcl-base/Config.in" source "package/batman-adv/Config.in" source "package/c-ares/Config.in" source "package/canfestival/Config.in"
package/alljoyn-tcl-base/Config.in new file +18 -0
@@ -0,0 +1,18 @@ +config BR2_PACKAGE_ALLJOYN_TCL_BASE + bool "alljoyn-tcl-base" + depends on !BR2_STATIC_LIBS + depends on BR2_TOOLCHAIN_HAS_THREADS # alljoyn-tcl + select BR2_PACKAGE_ALLJOYN_TCL + help + AllJoyn Base Services are common services used by many + devices, providing a set of interfaces for different devices + to interact and interoperate with one another. + + Thin Client Library is designed to bring the benefits of the + AllJoyn distributed programming environment to embedded + systems. + + https://allseenalliance.org + +comment "alljoyn-tcl-base needs a toolchain w/ threads and dynamic library" + depends on !BR2_TOOLCHAIN_HAS_THREADS || BR2_STATIC_LIBS
package/alljoyn-tcl-base/alljoyn-tcl-base.hash new file +2 -0
@@ -0,0 +1,2 @@ +# Locally computed: +sha256 741f7a71929ccd6a66bf75d2b03affc62411e229b70bb89399be9b1b2ce40629 alljoyn-base_tcl-16.04.00.tar.gz
package/alljoyn-tcl-base/alljoyn-tcl-base.mk new file +45 -0
45 lines not on this page · raw message
Signature · 1 line
2.7.4
PATCH v3 3/3 alljoyn-tcl-base: new package
Hi Fabrice,
Le 07/07/2016 ? 11:33, Fabrice Fontaine a ?crit :
Quoted 8 lines
AllJoyn Base Services are common services used by many devices, providing a set of interfaces for different devices to interact and interoperate with one another.
Thin Client Library is designed to bring the benefits of the AllJoyn distributed programming environment to embedded systems.
Best regards,
Romain
Quoted 112 lines
Signed-off-by Fabrice Fontaine <[email protected]>---
Changes v2 -> v3 (after review of Romain Naour):
- Rewrap Config.in help text
- Replace dependency on ajtcl to alljoyn-tclpackage/Config.in | 1 + package/alljoyn-tcl-base/Config.in | 18 +++++++++++ package/alljoyn-tcl-base/alljoyn-tcl-base.hash | 2 ++ package/alljoyn-tcl-base/alljoyn-tcl-base.mk | 45 ++++++++++++++++++++++++++ 4 files changed, 66 insertions(+) create mode 100644 package/alljoyn-tcl-base/Config.in create mode 100644 package/alljoyn-tcl-base/alljoyn-tcl-base.hash create mode 100644 package/alljoyn-tcl-base/alljoyn-tcl-base.mkpackage/Config.in +1
-0@@ -1131,6 +1131,7 @@ menu "Networking" source "package/alljoyn/Config.in" source "package/alljoyn-base/Config.in" source "package/alljoyn-tcl/Config.in" + source "package/alljoyn-tcl-base/Config.in" source "package/batman-adv/Config.in" source "package/c-ares/Config.in" source "package/canfestival/Config.in"package/alljoyn-tcl-base/Config.in new file +18
-0@@ -0,0 +1,18 @@ +config BR2_PACKAGE_ALLJOYN_TCL_BASE + bool "alljoyn-tcl-base" + depends on !BR2_STATIC_LIBS + depends on BR2_TOOLCHAIN_HAS_THREADS # alljoyn-tcl + select BR2_PACKAGE_ALLJOYN_TCL + help + AllJoyn Base Services are common services used by many + devices, providing a set of interfaces for different devices + to interact and interoperate with one another. + + Thin Client Library is designed to bring the benefits of the + AllJoyn distributed programming environment to embedded + systems. + + https://allseenalliance.org + +comment "alljoyn-tcl-base needs a toolchain w/ threads and dynamic library" + depends on !BR2_TOOLCHAIN_HAS_THREADS || BR2_STATIC_LIBSpackage/alljoyn-tcl-base/alljoyn-tcl-base.hash new file +2
-0@@ -0,0 +1,2 @@ +# Locally computed: +sha256 741f7a71929ccd6a66bf75d2b03affc62411e229b70bb89399be9b1b2ce40629 alljoyn-base_tcl-16.04.00.tar.gzpackage/alljoyn-tcl-base/alljoyn-tcl-base.mk new file +45
-0@@ -0,0 +1,45 @@ +################################################################################ +# +# alljoyn-tcl-base +# +################################################################################ + +ALLJOYN_TCL_BASE_REV = 16.04 +ALLJOYN_TCL_BASE_VERSION = $(ALLJOYN_TCL_BASE_REV).00 +ALLJOYN_TCL_BASE_SOURCE = alljoyn-base_tcl-$(ALLJOYN_TCL_BASE_VERSION).tar.gz +ALLJOYN_TCL_BASE_SITE = \ + https://mirrors.kernel.org/allseenalliance/alljoyn/$(ALLJOYN_TCL_BASE_REV) +# See https://allseenalliance.org/alliance/ip-policy +ALLJOYN_TCL_BASE_LICENSE = ISC + +ALLJOYN_TCL_BASE_DEPENDENCIES = host-scons alljoyn-tcl +ALLJOYN_TCL_BASE_INSTALL_STAGING = YES + +# AllJoyn Base Thin Core can be compiled in debug or release mode. By default, +# AllJoyn Base Thin Core is built in debug mode. +ALLJOYN_TCL_BASE_VARIANT = release + +ALLJOYN_TCL_BASE_SCONS_OPTS = \ + -j$(PARALLEL_JOBS) \ + V=1 \ + VARIANT=$(ALLJOYN_TCL_BASE_VARIANT) \ + CC="$(TARGET_CC)" \ + CXX="$(TARGET_CXX)" \ + AJTCL_DIST=$(STAGING_DIR) \ + WS=off + +define ALLJOYN_TCL_BASE_BUILD_CMDS + cd $(@D); $(SCONS) $(ALLJOYN_TCL_BASE_SCONS_OPTS) +endef + +define ALLJOYN_TCL_BASE_INSTALL_STAGING_CMDS + cp -a $(@D)/dist/lib/lib* $(STAGING_DIR)/usr/lib/ + cp -a $(@D)/dist/include/* $(STAGING_DIR)/usr/include/ +endef + +# Only install AllJoyn Base Thin Core dynamic libraries into target directory +define ALLJOYN_TCL_BASE_INSTALL_TARGET_CMDS + cp -a $(@D)/dist/lib/lib*.so* $(TARGET_DIR)/usr/lib/ +endef + +$(eval $(generic-package))
Thomas Petazzoni
AppliedPATCH v3 3/3 alljoyn-tcl-base: new package
In reply to Fabrice FontaineHello,
Quoted 7 lines · Fabrice Fontaine
AllJoyn Base Services are common services used by many devices, providing a set of interfaces for different devices to interact and interoperate with one another.
Thin Client Library is designed to bring the benefits of the AllJoyn distributed programming environment to embedded systems.
Quoted 7 lines
Signed-off-by Fabrice Fontaine <[email protected]>---
Changes v2 -> v3 (after review of Romain Naour):
- Rewrap Config.in help text
- Replace dependency on ajtcl to alljoyn-tcl
Applied to master, thanks.
Thomas
Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons Embedded Linux, Kernel and Android engineering http://free-electrons.com
PATCH v3 1/3 alljoyn-base: new package
In reply to Fabrice FontaineHi Fabrice,
Le 07/07/2016 ? 11:33, Fabrice Fontaine a ?crit :
Quoted 5 lines
AllJoyn Base Services are common services used by many devices, providing a set of interfaces for different devices to interact and interoperate with one another.
Best regards,
Romain
Quoted 194 lines
Signed-off-by Fabrice Fontaine <[email protected]>---
Changes v2 -> v3 (after review of Romain Naour):
- Move comment in Config.in at end of file to fixKconfigindentation
- Remove / at the beginning of theALLJOYN_BASE_DISTDIRvariable
- Rewrap Config.in help textChanges v1 -> v2 (after review of Romain Naour):
- Add dependencies onBR2_USE_MMUand !BR2_STATIC_LIBS
- SelectBR2_PACKAGE_OPENSSLand never use builtin crypto library
- Remove unneeded comments onALLJOYN_LICENSE_FILES
- Remove unneeded select and dependency onBR2_PACKAGE_LIBCAPas it is already done in alljoyn packagepackage/Config.in | 1 + package/alljoyn-base/Config.in | 43 ++++++++++++++++ package/alljoyn-base/alljoyn-base.hash | 2 + package/alljoyn-base/alljoyn-base.mk | 94 ++++++++++++++++++++++++++++++++++ 4 files changed, 140 insertions(+) create mode 100644 package/alljoyn-base/Config.in create mode 100644 package/alljoyn-base/alljoyn-base.hash create mode 100644 package/alljoyn-base/alljoyn-base.mkpackage/Config.in +1
-0@@ -1129,6 +1129,7 @@ endmenu menu "Networking" source "package/agentpp/Config.in" source "package/alljoyn/Config.in" + source "package/alljoyn-base/Config.in" source "package/batman-adv/Config.in" source "package/c-ares/Config.in" source "package/canfestival/Config.in"package/alljoyn-base/Config.in new file +43
-0@@ -0,0 +1,43 @@ +config BR2_PACKAGE_ALLJOYN_BASE + bool "alljoyn-base" + depends on BR2_USE_MMU # alljoyn + depends on !BR2_STATIC_LIBS + depends on BR2_INSTALL_LIBSTDCPP + depends on BR2_TOOLCHAIN_HAS_THREADS + depends on BR2_USE_WCHAR # alljoyn + select BR2_PACKAGE_ALLJOYN + select BR2_PACKAGE_OPENSSL + help + AllJoyn Base Services are common services used by many + devices, providing a set of interfaces for different devices + to interact and interoperate with one another. + + https://allseenalliance.org + +if BR2_PACKAGE_ALLJOYN_BASE + +config BR2_PACKAGE_ALLJOYN_BASE_CONTROLPANEL + bool "alljoyn-controlpanel" + help + Enable AllJoyn Control Panel base service which allows devices + to advertise a virtual control panel to be controlled remotely. + +config BR2_PACKAGE_ALLJOYN_BASE_NOTIFICATION + bool "alljoyn-notification" + help + Enable AllJoyn Notification base service which allows + text-based notifications to be sent and received by devices on + the AllJoyn network. Also supports audio and images via URLs. + +config BR2_PACKAGE_ALLJOYN_BASE_ONBOARDING + bool "alljoyn-onboarding" + help + Enable AllJoyn Onboarding base service which provides a + consistent way to bring a new device onto the Wi-Fi network. + +endif # BR2_PACKAGE_ALLJOYN_BASE + +comment "alljoyn-base needs a toolchain w/ C++, threads, wchar, dynamic library" + depends on BR2_USE_MMU + depends on !BR2_INSTALL_LIBSTDCPP || !BR2_TOOLCHAIN_HAS_THREADS || \ + !BR2_USE_WCHAR || BR2_STATIC_LIBSpackage/alljoyn-base/alljoyn-base.hash new file +2
-0@@ -0,0 +1,2 @@ +# Locally computed: +sha256 742f724b3a06c8fc4039591dba24871755728221ca5dc4afb78ebd9a7e3beb44 alljoyn-base-16.04.00.tar.gzpackage/alljoyn-base/alljoyn-base.mk new file +94
-0@@ -0,0 +1,94 @@ +################################################################################ +# +# alljoyn-base +# +################################################################################ + +ALLJOYN_BASE_REV = 16.04 +ALLJOYN_BASE_VERSION = $(ALLJOYN_BASE_REV).00 +ALLJOYN_BASE_SOURCE = alljoyn-base-$(ALLJOYN_BASE_VERSION).tar.gz +ALLJOYN_BASE_SITE = \ + https://mirrors.kernel.org/allseenalliance/alljoyn/$(ALLJOYN_BASE_REV) +# See https://allseenalliance.org/alliance/ip-policy +ALLJOYN_BASE_LICENSE = ISC + +ALLJOYN_BASE_DEPENDENCIES = host-scons alljoyn openssl +ALLJOYN_BASE_INSTALL_STAGING = YES + +ALLJOYN_BASE_CRYPTO = openssl + +# AllJoyn can be compiled in debug or release mode. By default, AllJoyn is built +# in debug mode. +ALLJOYN_BASE_VARIANT = release + +ALLJOYN_BASE_BINDINGS = c,cpp + +# By setting openwrt for OS and CPU, AllJoyn cross-compilation can be finely +# tuned through TARGET_xxx options. All TARGET_xxx variables must be defined +# otherwise compilation will fail. +# CROSS_COMPILE option should not be used as it works only for linux/ARM. +ALLJOYN_BASE_OS = openwrt +ALLJOYN_BASE_CPU = openwrt + +# AllJoyn install everything in this relative path +ALLJOYN_BASE_DISTDIR = \ + build/$(ALLJOYN_OS)/$(ALLJOYN_CPU)/$(ALLJOYN_VARIANT)/dist/ + +ALLJOYN_BASE_SCONS_OPTS = \ + -j$(PARALLEL_JOBS) \ + V=1 \ + OS=$(ALLJOYN_BASE_OS) \ + CPU=$(ALLJOYN_BASE_CPU) \ + VARIANT=$(ALLJOYN_BASE_VARIANT) \ + BR=off \ + CRYPTO=$(ALLJOYN_BASE_CRYPTO) \ + BINDINGS=$(ALLJOYN_BASE_BINDINGS) \ + ALLJOYN_DISTDIR="$(STAGING_DIR)"\ + TARGET_CFLAGS="$(TARGET_CFLAGS)" \ + TARGET_CPPFLAGS="$(TARGET_CPPFLAGS)" \ + TARGET_LINKFLAGS="$(TARGET_LINKFLAGS)" \ + TARGET_CC="$(TARGET_CC)" \ + TARGET_CXX="$(TARGET_CXX)" \ + TARGET_LD="$(TARGET_LD)" \ + TARGET_LINK="$(TARGET_CXX)" \ + TARGET_AR="$(TARGET_AR)" \ + TARGET_RANLIB="$(TARGET_RANLIB)" \ + TARGET_PATH="$(BR_PATH)" + +ifeq ($(BR2_PACKAGE_ALLJOYN_BASE_CONTROLPANEL), y) +ALLJOYN_BASE_BUILD_CONTROLPANEL = \ + cd $(@D)/controlpanel; $(SCONS) $(ALLJOYN_BASE_SCONS_OPTS) +endif + +ifeq ($(BR2_PACKAGE_ALLJOYN_BASE_NOTIFICATION), y) +ALLJOYN_BASE_BUILD_NOTIFICATION = \ + cd $(@D)/notification; $(SCONS) $(ALLJOYN_BASE_SCONS_OPTS) +endif + +ifeq ($(BR2_PACKAGE_ALLJOYN_BASE_ONBOARDING), y) +ALLJOYN_BASE_BUILD_ONBOARDING = \ + cd $(@D)/onboarding; $(SCONS) $(ALLJOYN_BASE_SCONS_OPTS) +endif + +define ALLJOYN_BASE_BUILD_CMDS + $(ALLJOYN_BASE_BUILD_CONTROLPANEL) + $(ALLJOYN_BASE_BUILD_NOTIFICATION) + $(ALLJOYN_BASE_BUILD_ONBOARDING) +endef + +# Suppress error code and error message as those directories could be missing if +# BR2_PACKAGE_ALLJOYN_BASE_xxx variables are all unset +define ALLJOYN_BASE_INSTALL_STAGING_CMDS + cp -a $(@D)/*/$(ALLJOYN_BASE_DISTDIR)/*/lib/lib* \ + $(STAGING_DIR)/usr/lib/ 2>/dev/null || : + cp -a $(@D)/*/$(ALLJOYN_BASE_DISTDIR)/*/inc/* \ + $(STAGING_DIR)/usr/include/ 2>/dev/null || : +endef + +# Only install alljoyn dynamic libraries into target directory +define ALLJOYN_BASE_INSTALL_TARGET_CMDS + cp -a $(@D)/*/$(ALLJOYN_BASE_DISTDIR)/*/lib/lib*.so* \ + $(TARGET_DIR)/usr/lib/ 2>/dev/null || : +endef + +$(eval $(generic-package))
PATCH v3 1/3 alljoyn-base: new package
In reply to Fabrice FontaineHello,
I've applied your patch, after doing a number of changes, see below for the details.
package/alljoyn-base/Config.in line 7
Quoted 13 lines · Fabrice Fontaine
package/alljoyn-base/Config.in new file +7
-0@@ -0,0 +1,43 @@ +config BR2_PACKAGE_ALLJOYN_BASE + bool "alljoyn-base" + depends on BR2_USE_MMU # alljoyn + depends on !BR2_STATIC_LIBS + depends on BR2_INSTALL_LIBSTDCPP + depends on BR2_TOOLCHAIN_HAS_THREADS + depends on BR2_USE_WCHAR # alljoyn
This was missing a dependency on BR2_TOOLCHAIN_HAS_SYNC_4, which was added later on on the alljoyn package.
package/alljoyn-base/Config.in line 9
Quoted 2 lines
package/alljoyn-base/Config.in new file +2
-0+ select BR2_PACKAGE_ALLJOYN + select BR2_PACKAGE_OPENSSL
I've added here a "select" that makes sure at least one of the three sub-options is enabled.
package/alljoyn-base/Config.in line 20
Quoted 11 lines
package/alljoyn-base/Config.in new file +11
-0+ help + AllJoyn Base Services are common services used by many + devices, providing a set of interfaces for different devices + to interact and interoperate with one another. + + https://allseenalliance.org + +if BR2_PACKAGE_ALLJOYN_BASE + +config BR2_PACKAGE_ALLJOYN_BASE_CONTROLPANEL + bool "alljoyn-controlpanel"
bool "controlpanel"
is sufficient, since those sub-options are indented below the "alljoyn-base" option, so it's obvious they belong to alljoyn-base.
I've changed that for the three sub-options.
package/alljoyn-base/Config.in line 30
Quoted 10 lines
package/alljoyn-base/Config.in new file +10
-0+# By setting openwrt for OS and CPU, AllJoyn cross-compilation can be finely +# tuned through TARGET_xxx options. All TARGET_xxx variables must be defined +# otherwise compilation will fail. +# CROSS_COMPILE option should not be used as it works only for linux/ARM. +ALLJOYN_BASE_OS = openwrt +ALLJOYN_BASE_CPU = openwrt + +# AllJoyn install everything in this relative path +ALLJOYN_BASE_DISTDIR = \ + build/$(ALLJOYN_OS)/$(ALLJOYN_CPU)/$(ALLJOYN_VARIANT)/dist/
Final / not needed.
Quoted 25 lines
package/alljoyn-base/Config.in new file +25
-0+ALLJOYN_BASE_SCONS_OPTS = \ + -j$(PARALLEL_JOBS) \ + V=1 \ + OS=$(ALLJOYN_BASE_OS) \ + CPU=$(ALLJOYN_BASE_CPU) \ + VARIANT=$(ALLJOYN_BASE_VARIANT) \ + BR=off \ + CRYPTO=$(ALLJOYN_BASE_CRYPTO) \ + BINDINGS=$(ALLJOYN_BASE_BINDINGS) \ + ALLJOYN_DISTDIR="$(STAGING_DIR)"\ + TARGET_CFLAGS="$(TARGET_CFLAGS)" \ + TARGET_CPPFLAGS="$(TARGET_CPPFLAGS)" \ + TARGET_LINKFLAGS="$(TARGET_LINKFLAGS)" \ + TARGET_CC="$(TARGET_CC)" \ + TARGET_CXX="$(TARGET_CXX)" \ + TARGET_LD="$(TARGET_LD)" \ + TARGET_LINK="$(TARGET_CXX)" \ + TARGET_AR="$(TARGET_AR)" \ + TARGET_RANLIB="$(TARGET_RANLIB)" \ + TARGET_PATH="$(BR_PATH)" + +ifeq ($(BR2_PACKAGE_ALLJOYN_BASE_CONTROLPANEL), y) +ALLJOYN_BASE_BUILD_CONTROLPANEL = \ + cd $(@D)/controlpanel; $(SCONS) $(ALLJOYN_BASE_SCONS_OPTS) +endif
package/alljoyn-base/Config.in
Quoted 10 lines
package/alljoyn-base/Config.in new file +10
-0+ +ifeq ($(BR2_PACKAGE_ALLJOYN_BASE_NOTIFICATION), y) +ALLJOYN_BASE_BUILD_NOTIFICATION = \ + cd $(@D)/notification; $(SCONS) $(ALLJOYN_BASE_SCONS_OPTS) +endif + +ifeq ($(BR2_PACKAGE_ALLJOYN_BASE_ONBOARDING), y) +ALLJOYN_BASE_BUILD_ONBOARDING = \ + cd $(@D)/onboarding; $(SCONS) $(ALLJOYN_BASE_SCONS_OPTS) +endif
This is a lot of a duplication a loop would have been much better.
Quoted 4 lines
package/alljoyn-base/Config.in new file +4
-0+ +define ALLJOYN_BASE_BUILD_CMDS + $(ALLJOYN_BASE_BUILD_CONTROLPANEL) + $(ALLJOYN_BASE_BUILD_NOTIFICATION)
package/alljoyn-base/Config.in
Quoted 10 lines
package/alljoyn-base/Config.in new file +10
-0+ $(ALLJOYN_BASE_BUILD_ONBOARDING) +endef + +# Suppress error code and error message as those directories could be missing if +# BR2_PACKAGE_ALLJOYN_BASE_xxx variables are all unset +define ALLJOYN_BASE_INSTALL_STAGING_CMDS + cp -a $(@D)/*/$(ALLJOYN_BASE_DISTDIR)/*/lib/lib* \ + $(STAGING_DIR)/usr/lib/ 2>/dev/null || : + cp -a $(@D)/*/$(ALLJOYN_BASE_DISTDIR)/*/inc/* \ + $(STAGING_DIR)/usr/include/ 2>/dev/null || :
And here, throwing away the error messages is definitely not good.
So, I've replaced the build and installation logic with:
ifeq ($(BR2_PACKAGE_ALLJOYN_BASE_CONTROLPANEL), y) ALLJOYN_BASE_TARGETS += controlpanel
endif
ifeq ($(BR2_PACKAGE_ALLJOYN_BASE_NOTIFICATION), y) ALLJOYN_BASE_TARGETS += notification
endif
ifeq ($(BR2_PACKAGE_ALLJOYN_BASE_ONBOARDING), y)ALLJOYN_BASE_TARGETS += onboarding
endif
define ALLJOYN_BASE_BUILD_CMDS
$(foreach target,$(ALLJOYN_BASE_TARGETS),\
cd $(@D)/$(target); $(SCONS) $(ALLJOYN_BASE_SCONS_OPTS)
)endef
define ALLJOYN_BASE_INSTALL_STAGING_CMDS
$(foreach target,$(ALLJOYN_BASE_TARGETS),\
cp -a $(@D)/$(target)/$(ALLJOYN_BASE_DISTDIR)/*/lib/lib* \
$(STAGING_DIR)/usr/lib/
cp -a $(@D)/$(target)/$(ALLJOYN_BASE_DISTDIR)/*/inc/* \
$(STAGING_DIR)/usr/include/
)endef
define ALLJOYN_BASE_INSTALL_TARGET_CMDS
$(foreach target,$(ALLJOYN_BASE_TARGETS),\
cp -a $(@D)/$(target)/$(ALLJOYN_BASE_DISTDIR)/*/lib/lib* \
$(TARGET_DIR)/usr/lib/
)endef
which is both shorter, clearer, and keeps the error checking around.
Thanks!
Thomas
Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons Embedded Linux, Kernel and Android engineering http://free-electrons.com