All of lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH v2,1/4] alljoyn: new package
@ 2016-07-06 12:08 Fabrice Fontaine
  2016-07-06 12:08 ` [Buildroot] [PATCH v2,2/4] alljoyn-base: " Fabrice Fontaine
                   ` (4 more replies)
  0 siblings, 5 replies; 9+ messages in thread
From: Fabrice Fontaine @ 2016-07-06 12:08 UTC (permalink / raw)
  To: buildroot

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.

https://allseenalliance.org

Signed-off-by: Fabrice Fontaine <fabrice.fontaine@orange.com>
---
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

 package/Config.in            |  1 +
 package/alljoyn/Config.in    | 22 ++++++++++++++
 package/alljoyn/alljoyn.hash |  2 ++
 package/alljoyn/alljoyn.mk   | 69 ++++++++++++++++++++++++++++++++++++++++++++
 4 files changed, 94 insertions(+)
 create mode 100644 package/alljoyn/Config.in
 create mode 100644 package/alljoyn/alljoyn.hash
 create mode 100644 package/alljoyn/alljoyn.mk

diff --git a/package/Config.in b/package/Config.in
index 6cc1d3e..77d8fb3 100644
--- a/package/Config.in
+++ b/package/Config.in
@@ -1125,6 +1125,7 @@ endmenu
 
 menu "Networking"
 	source "package/agentpp/Config.in"
+	source "package/alljoyn/Config.in"
 	source "package/batman-adv/Config.in"
 	source "package/c-ares/Config.in"
 	source "package/canfestival/Config.in"
diff --git a/package/alljoyn/Config.in b/package/alljoyn/Config.in
new file mode 100644
index 0000000..eebc3e3
--- /dev/null
+++ b/package/alljoyn/Config.in
@@ -0,0 +1,22 @@
+config BR2_PACKAGE_ALLJOYN
+	bool "alljoyn"
+	depends on BR2_USE_MMU # fork()
+	depends on !BR2_STATIC_LIBS
+	depends on BR2_INSTALL_LIBSTDCPP
+	depends on BR2_TOOLCHAIN_HAS_THREADS
+	depends on BR2_USE_WCHAR
+	select BR2_PACKAGE_LIBCAP
+	select BR2_PACKAGE_OPENSSL
+	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.
+
+	  https://allseenalliance.org
+
+comment "alljoyn needs a toolchain w/ C++, threads, wchar and dynamic library"
+	depends on BR2_USE_MMU
+	depends on !BR2_INSTALL_LIBSTDCPP || !BR2_TOOLCHAIN_HAS_THREADS || \
+		!BR2_USE_WCHAR || BR2_STATIC_LIBS
diff --git a/package/alljoyn/alljoyn.hash b/package/alljoyn/alljoyn.hash
new file mode 100644
index 0000000..e18d66e
--- /dev/null
+++ b/package/alljoyn/alljoyn.hash
@@ -0,0 +1,2 @@
+# Locally computed:
+sha256	41bd424d376d22dc2b48cc035400bd63595d19467eeb6a7ae81429f5a43ed2e2	alljoyn-16.04.00-src.tar.gz
diff --git a/package/alljoyn/alljoyn.mk b/package/alljoyn/alljoyn.mk
new file mode 100644
index 0000000..3d9bdee
--- /dev/null
+++ b/package/alljoyn/alljoyn.mk
@@ -0,0 +1,69 @@
+################################################################################
+#
+# alljoyn
+#
+################################################################################
+
+ALLJOYN_REV = 16.04
+ALLJOYN_VERSION = $(ALLJOYN_REV).00
+ALLJOYN_SOURCE = alljoyn-$(ALLJOYN_VERSION)-src.tar.gz
+ALLJOYN_SITE = https://mirrors.kernel.org/allseenalliance/alljoyn/$(ALLJOYN_REV)
+# See https://allseenalliance.org/alliance/ip-policy
+ALLJOYN_LICENSE = ISC
+
+ALLJOYN_DEPENDENCIES = host-scons libcap openssl
+ALLJOYN_INSTALL_STAGING = YES
+
+ALLJOYN_CRYPTO = openssl
+
+# AllJoyn can be compiled in debug or release mode. By default, AllJoyn is built
+# in debug mode.
+ALLJOYN_VARIANT = release
+
+ALLJOYN_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_OS = openwrt
+ALLJOYN_CPU = openwrt
+
+# AllJoyn install everything in this relative path
+ALLJOYN_DISTDIR = /build/$(ALLJOYN_OS)/$(ALLJOYN_CPU)/$(ALLJOYN_VARIANT)/dist/
+
+ALLJOYN_SCONS_OPTS = \
+	-j$(PARALLEL_JOBS) \
+	V=1 \
+	OS=$(ALLJOYN_OS) \
+	CPU=$(ALLJOYN_CPU) \
+	VARIANT=$(ALLJOYN_VARIANT) \
+	BR=off \
+	CRYPTO=$(ALLJOYN_CRYPTO) \
+	BINDINGS=$(ALLJOYN_BINDINGS) \
+	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)"
+
+define ALLJOYN_BUILD_CMDS
+	cd $(@D); $(SCONS) $(ALLJOYN_SCONS_OPTS)
+endef
+
+define ALLJOYN_INSTALL_STAGING_CMDS
+	cp -a $(@D)/$(ALLJOYN_DISTDIR)/*/lib/lib* $(STAGING_DIR)/usr/lib/
+	cp -a $(@D)/$(ALLJOYN_DISTDIR)/*/inc/* $(STAGING_DIR)/usr/include/
+endef
+
+# Only install alljoyn dynamic libraries into target directory
+define ALLJOYN_INSTALL_TARGET_CMDS
+	cp -a $(@D)/$(ALLJOYN_DISTDIR)/*/lib/lib*.so* $(TARGET_DIR)/usr/lib/
+endef
+
+$(eval $(generic-package))
-- 
2.7.4

^ permalink raw reply related	[flat|nested] 9+ messages in thread

* [Buildroot] [PATCH v2,2/4] alljoyn-base: new package
  2016-07-06 12:08 [Buildroot] [PATCH v2,1/4] alljoyn: new package Fabrice Fontaine
@ 2016-07-06 12:08 ` Fabrice Fontaine
  2016-07-06 20:09   ` Romain Naour
  2016-07-06 12:08 ` [Buildroot] [PATCH v2,3/4] ajtcl: " Fabrice Fontaine
                   ` (3 subsequent siblings)
  4 siblings, 1 reply; 9+ messages in thread
From: Fabrice Fontaine @ 2016-07-06 12:08 UTC (permalink / raw)
  To: buildroot

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

Signed-off-by: Fabrice Fontaine <fabrice.fontaine@orange.com>
---
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

diff --git a/package/Config.in b/package/Config.in
index 77d8fb3..8b50ebb 100644
--- a/package/Config.in
+++ b/package/Config.in
@@ -1126,6 +1126,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"
diff --git a/package/alljoyn-base/Config.in b/package/alljoyn-base/Config.in
new file mode 100644
index 0000000..adf3149
--- /dev/null
+++ b/package/alljoyn-base/Config.in
@@ -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
+
+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_LIBS
+
+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
diff --git a/package/alljoyn-base/alljoyn-base.hash b/package/alljoyn-base/alljoyn-base.hash
new file mode 100644
index 0000000..dbec3a3
--- /dev/null
+++ b/package/alljoyn-base/alljoyn-base.hash
@@ -0,0 +1,2 @@
+# Locally computed:
+sha256	742f724b3a06c8fc4039591dba24871755728221ca5dc4afb78ebd9a7e3beb44	alljoyn-base-16.04.00.tar.gz
diff --git a/package/alljoyn-base/alljoyn-base.mk b/package/alljoyn-base/alljoyn-base.mk
new file mode 100644
index 0000000..b6e9bd9
--- /dev/null
+++ b/package/alljoyn-base/alljoyn-base.mk
@@ -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))
-- 
2.7.4

^ permalink raw reply related	[flat|nested] 9+ messages in thread

* [Buildroot] [PATCH v2,3/4] ajtcl: new package
  2016-07-06 12:08 [Buildroot] [PATCH v2,1/4] alljoyn: new package Fabrice Fontaine
  2016-07-06 12:08 ` [Buildroot] [PATCH v2,2/4] alljoyn-base: " Fabrice Fontaine
@ 2016-07-06 12:08 ` Fabrice Fontaine
  2016-07-06 20:18   ` Romain Naour
  2016-07-06 12:08 ` [Buildroot] [PATCH v2,4/4] alljoyn-base_tcl: " Fabrice Fontaine
                   ` (2 subsequent siblings)
  4 siblings, 1 reply; 9+ messages in thread
From: Fabrice Fontaine @ 2016-07-06 12:08 UTC (permalink / raw)
  To: buildroot

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

Signed-off-by: Fabrice Fontaine <fabrice.fontaine@orange.com>
---
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/ajtcl/Config.in  | 19 +++++++++++++++++++
 package/ajtcl/ajtcl.hash |  2 ++
 package/ajtcl/ajtcl.mk   | 42 ++++++++++++++++++++++++++++++++++++++++++
 4 files changed, 64 insertions(+)
 create mode 100644 package/ajtcl/Config.in
 create mode 100644 package/ajtcl/ajtcl.hash
 create mode 100644 package/ajtcl/ajtcl.mk

diff --git a/package/Config.in b/package/Config.in
index 8b50ebb..4120b0d 100644
--- a/package/Config.in
+++ b/package/Config.in
@@ -1125,6 +1125,7 @@ endmenu
 
 menu "Networking"
 	source "package/agentpp/Config.in"
+	source "package/ajtcl/Config.in"
 	source "package/alljoyn/Config.in"
 	source "package/alljoyn-base/Config.in"
 	source "package/batman-adv/Config.in"
diff --git a/package/ajtcl/Config.in b/package/ajtcl/Config.in
new file mode 100644
index 0000000..793e778
--- /dev/null
+++ b/package/ajtcl/Config.in
@@ -0,0 +1,19 @@
+config BR2_PACKAGE_AJTCL
+	bool "alljoyn-thin-core"
+	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-thin-core needs a toolchain w/ threads and dynamic library"
+	depends on !BR2_TOOLCHAIN_HAS_THREADS || BR2_STATIC_LIBS
diff --git a/package/ajtcl/ajtcl.hash b/package/ajtcl/ajtcl.hash
new file mode 100644
index 0000000..a1cdf16
--- /dev/null
+++ b/package/ajtcl/ajtcl.hash
@@ -0,0 +1,2 @@
+# Locally computed:
+sha256	ce6a05a67ff405ba6274e85fe750d98f40cbe7ab2c968218c7741a10bd86e21a	ajtcl-16.04.00-src.tar.gz
diff --git a/package/ajtcl/ajtcl.mk b/package/ajtcl/ajtcl.mk
new file mode 100644
index 0000000..018a8bd
--- /dev/null
+++ b/package/ajtcl/ajtcl.mk
@@ -0,0 +1,42 @@
+################################################################################
+#
+# ajtcl
+#
+################################################################################
+
+AJTCL_REV = 16.04
+AJTCL_VERSION = $(AJTCL_REV).00
+AJTCL_SOURCE = ajtcl-$(AJTCL_VERSION)-src.tar.gz
+AJTCL_SITE = https://mirrors.kernel.org/allseenalliance/alljoyn/$(AJTCL_REV)
+# See https://allseenalliance.org/alliance/ip-policy
+AJTCL_LICENSE = ISC
+
+AJTCL_DEPENDENCIES = host-scons
+AJTCL_INSTALL_STAGING = YES
+
+# AllJoyn Thin Core can be compiled in debug or release mode. By default,
+# AllJoyn Thin Core is built in debug mode.
+AJTCL_VARIANT = release
+
+AJTCL_SCONS_OPTS = \
+	-j$(PARALLEL_JOBS) \
+	V=1 \
+	VARIANT=$(AJTCL_VARIANT) \
+	CC="$(TARGET_CC)" \
+	CXX="$(TARGET_CXX)"
+
+define AJTCL_BUILD_CMDS
+	cd $(@D); $(SCONS) $(AJTCL_SCONS_OPTS)
+endef
+
+define AJTCL_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 AJTCL_INSTALL_TARGET_CMDS
+	cp -a $(@D)/dist/lib/lib*.so* $(TARGET_DIR)/usr/lib/
+endef
+
+$(eval $(generic-package))
-- 
2.7.4

^ permalink raw reply related	[flat|nested] 9+ messages in thread

* [Buildroot] [PATCH v2,4/4] alljoyn-base_tcl: new package
  2016-07-06 12:08 [Buildroot] [PATCH v2,1/4] alljoyn: new package Fabrice Fontaine
  2016-07-06 12:08 ` [Buildroot] [PATCH v2,2/4] alljoyn-base: " Fabrice Fontaine
  2016-07-06 12:08 ` [Buildroot] [PATCH v2,3/4] ajtcl: " Fabrice Fontaine
@ 2016-07-06 12:08 ` Fabrice Fontaine
  2016-07-06 20:25   ` Romain Naour
  2016-07-06 20:04 ` [Buildroot] [PATCH v2,1/4] alljoyn: " Romain Naour
  2016-07-07  7:20 ` Thomas Petazzoni
  4 siblings, 1 reply; 9+ messages in thread
From: Fabrice Fontaine @ 2016-07-06 12:08 UTC (permalink / raw)
  To: buildroot

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

Signed-off-by: Fabrice Fontaine <fabrice.fontaine@orange.com>
---
 package/Config.in                              |  1 +
 package/alljoyn-base_tcl/Config.in             | 17 ++++++++++
 package/alljoyn-base_tcl/alljoyn-base_tcl.hash |  2 ++
 package/alljoyn-base_tcl/alljoyn-base_tcl.mk   | 45 ++++++++++++++++++++++++++
 4 files changed, 65 insertions(+)
 create mode 100644 package/alljoyn-base_tcl/Config.in
 create mode 100644 package/alljoyn-base_tcl/alljoyn-base_tcl.hash
 create mode 100644 package/alljoyn-base_tcl/alljoyn-base_tcl.mk

diff --git a/package/Config.in b/package/Config.in
index 4120b0d..e3b47ad 100644
--- a/package/Config.in
+++ b/package/Config.in
@@ -1128,6 +1128,7 @@ menu "Networking"
 	source "package/ajtcl/Config.in"
 	source "package/alljoyn/Config.in"
 	source "package/alljoyn-base/Config.in"
+	source "package/alljoyn-base_tcl/Config.in"
 	source "package/batman-adv/Config.in"
 	source "package/c-ares/Config.in"
 	source "package/canfestival/Config.in"
diff --git a/package/alljoyn-base_tcl/Config.in b/package/alljoyn-base_tcl/Config.in
new file mode 100644
index 0000000..12ebcef
--- /dev/null
+++ b/package/alljoyn-base_tcl/Config.in
@@ -0,0 +1,17 @@
+config BR2_PACKAGE_ALLJOYN_BASE_TCL
+	bool "alljoyn-base_tcl"
+	depends on !BR2_STATIC_LIBS
+	depends on BR2_TOOLCHAIN_HAS_THREADS # ajtcl
+	select BR2_PACKAGE_AJTCL
+	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-base_tcl needs a toolchain w/ threads and dynamic library"
+	depends on !BR2_TOOLCHAIN_HAS_THREADS || BR2_STATIC_LIBS
diff --git a/package/alljoyn-base_tcl/alljoyn-base_tcl.hash b/package/alljoyn-base_tcl/alljoyn-base_tcl.hash
new file mode 100644
index 0000000..882839d
--- /dev/null
+++ b/package/alljoyn-base_tcl/alljoyn-base_tcl.hash
@@ -0,0 +1,2 @@
+# Locally computed:
+sha256	741f7a71929ccd6a66bf75d2b03affc62411e229b70bb89399be9b1b2ce40629	alljoyn-base_tcl-16.04.00.tar.gz
diff --git a/package/alljoyn-base_tcl/alljoyn-base_tcl.mk b/package/alljoyn-base_tcl/alljoyn-base_tcl.mk
new file mode 100644
index 0000000..d6c339b
--- /dev/null
+++ b/package/alljoyn-base_tcl/alljoyn-base_tcl.mk
@@ -0,0 +1,45 @@
+################################################################################
+#
+# alljoyn-base_tcl
+#
+################################################################################
+
+ALLJOYN_BASE_TCL_REV = 16.04
+ALLJOYN_BASE_TCL_VERSION = $(ALLJOYN_BASE_TCL_REV).00
+ALLJOYN_BASE_TCL_SOURCE = alljoyn-base_tcl-$(ALLJOYN_BASE_TCL_VERSION).tar.gz
+ALLJOYN_BASE_TCL_SITE = \
+	https://mirrors.kernel.org/allseenalliance/alljoyn/$(ALLJOYN_BASE_TCL_REV)
+# See https://allseenalliance.org/alliance/ip-policy
+ALLJOYN_BASE_TCL_LICENSE = ISC
+
+ALLJOYN_BASE_TCL_DEPENDENCIES = host-scons ajtcl
+ALLJOYN_BASE_TCL_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_BASE_TCL_VARIANT = release
+
+ALLJOYN_BASE_TCL_SCONS_OPTS = \
+	-j$(PARALLEL_JOBS) \
+	V=1 \
+	VARIANT=$(AJTCL_VARIANT) \
+	CC="$(TARGET_CC)" \
+	CXX="$(TARGET_CXX)" \
+	AJTCL_DIST=$(STAGING_DIR) \
+	WS=off
+
+define ALLJOYN_BASE_TCL_BUILD_CMDS
+	cd $(@D); $(SCONS) $(ALLJOYN_BASE_TCL_SCONS_OPTS)
+endef
+
+define ALLJOYN_BASE_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 Base Thin Core dynamic libraries into target directory
+define ALLJOYN_BASE_TCL_INSTALL_TARGET_CMDS
+	cp -a $(@D)/dist/lib/lib*.so* $(TARGET_DIR)/usr/lib/
+endef
+
+$(eval $(generic-package))
-- 
2.7.4

^ permalink raw reply related	[flat|nested] 9+ messages in thread

* [Buildroot] [PATCH v2,1/4] alljoyn: new package
  2016-07-06 12:08 [Buildroot] [PATCH v2,1/4] alljoyn: new package Fabrice Fontaine
                   ` (2 preceding siblings ...)
  2016-07-06 12:08 ` [Buildroot] [PATCH v2,4/4] alljoyn-base_tcl: " Fabrice Fontaine
@ 2016-07-06 20:04 ` Romain Naour
  2016-07-07  7:20 ` Thomas Petazzoni
  4 siblings, 0 replies; 9+ messages in thread
From: Romain Naour @ 2016-07-06 20:04 UTC (permalink / raw)
  To: buildroot

Hi Fabrice,

Le 06/07/2016 ? 14:08, Fabrice Fontaine a ?crit :
> 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.
> 
> https://allseenalliance.org

Thanks for this new version!

Reviewed-by: Romain Naour <romain.naour@gmail.com>

Best regards,
Romain

> 
> Signed-off-by: Fabrice Fontaine <fabrice.fontaine@orange.com>
> ---
> 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
> 
>  package/Config.in            |  1 +
>  package/alljoyn/Config.in    | 22 ++++++++++++++
>  package/alljoyn/alljoyn.hash |  2 ++
>  package/alljoyn/alljoyn.mk   | 69 ++++++++++++++++++++++++++++++++++++++++++++
>  4 files changed, 94 insertions(+)
>  create mode 100644 package/alljoyn/Config.in
>  create mode 100644 package/alljoyn/alljoyn.hash
>  create mode 100644 package/alljoyn/alljoyn.mk
> 
> diff --git a/package/Config.in b/package/Config.in
> index 6cc1d3e..77d8fb3 100644
> --- a/package/Config.in
> +++ b/package/Config.in
> @@ -1125,6 +1125,7 @@ endmenu
>  
>  menu "Networking"
>  	source "package/agentpp/Config.in"
> +	source "package/alljoyn/Config.in"
>  	source "package/batman-adv/Config.in"
>  	source "package/c-ares/Config.in"
>  	source "package/canfestival/Config.in"
> diff --git a/package/alljoyn/Config.in b/package/alljoyn/Config.in
> new file mode 100644
> index 0000000..eebc3e3
> --- /dev/null
> +++ b/package/alljoyn/Config.in
> @@ -0,0 +1,22 @@
> +config BR2_PACKAGE_ALLJOYN
> +	bool "alljoyn"
> +	depends on BR2_USE_MMU # fork()
> +	depends on !BR2_STATIC_LIBS
> +	depends on BR2_INSTALL_LIBSTDCPP
> +	depends on BR2_TOOLCHAIN_HAS_THREADS
> +	depends on BR2_USE_WCHAR
> +	select BR2_PACKAGE_LIBCAP
> +	select BR2_PACKAGE_OPENSSL
> +	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.
> +
> +	  https://allseenalliance.org
> +
> +comment "alljoyn needs a toolchain w/ C++, threads, wchar and dynamic library"
> +	depends on BR2_USE_MMU
> +	depends on !BR2_INSTALL_LIBSTDCPP || !BR2_TOOLCHAIN_HAS_THREADS || \
> +		!BR2_USE_WCHAR || BR2_STATIC_LIBS
> diff --git a/package/alljoyn/alljoyn.hash b/package/alljoyn/alljoyn.hash
> new file mode 100644
> index 0000000..e18d66e
> --- /dev/null
> +++ b/package/alljoyn/alljoyn.hash
> @@ -0,0 +1,2 @@
> +# Locally computed:
> +sha256	41bd424d376d22dc2b48cc035400bd63595d19467eeb6a7ae81429f5a43ed2e2	alljoyn-16.04.00-src.tar.gz
> diff --git a/package/alljoyn/alljoyn.mk b/package/alljoyn/alljoyn.mk
> new file mode 100644
> index 0000000..3d9bdee
> --- /dev/null
> +++ b/package/alljoyn/alljoyn.mk
> @@ -0,0 +1,69 @@
> +################################################################################
> +#
> +# alljoyn
> +#
> +################################################################################
> +
> +ALLJOYN_REV = 16.04
> +ALLJOYN_VERSION = $(ALLJOYN_REV).00
> +ALLJOYN_SOURCE = alljoyn-$(ALLJOYN_VERSION)-src.tar.gz
> +ALLJOYN_SITE = https://mirrors.kernel.org/allseenalliance/alljoyn/$(ALLJOYN_REV)
> +# See https://allseenalliance.org/alliance/ip-policy
> +ALLJOYN_LICENSE = ISC
> +
> +ALLJOYN_DEPENDENCIES = host-scons libcap openssl
> +ALLJOYN_INSTALL_STAGING = YES
> +
> +ALLJOYN_CRYPTO = openssl
> +
> +# AllJoyn can be compiled in debug or release mode. By default, AllJoyn is built
> +# in debug mode.
> +ALLJOYN_VARIANT = release
> +
> +ALLJOYN_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_OS = openwrt
> +ALLJOYN_CPU = openwrt
> +
> +# AllJoyn install everything in this relative path
> +ALLJOYN_DISTDIR = /build/$(ALLJOYN_OS)/$(ALLJOYN_CPU)/$(ALLJOYN_VARIANT)/dist/
> +
> +ALLJOYN_SCONS_OPTS = \
> +	-j$(PARALLEL_JOBS) \
> +	V=1 \
> +	OS=$(ALLJOYN_OS) \
> +	CPU=$(ALLJOYN_CPU) \
> +	VARIANT=$(ALLJOYN_VARIANT) \
> +	BR=off \
> +	CRYPTO=$(ALLJOYN_CRYPTO) \
> +	BINDINGS=$(ALLJOYN_BINDINGS) \
> +	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)"
> +
> +define ALLJOYN_BUILD_CMDS
> +	cd $(@D); $(SCONS) $(ALLJOYN_SCONS_OPTS)
> +endef
> +
> +define ALLJOYN_INSTALL_STAGING_CMDS
> +	cp -a $(@D)/$(ALLJOYN_DISTDIR)/*/lib/lib* $(STAGING_DIR)/usr/lib/
> +	cp -a $(@D)/$(ALLJOYN_DISTDIR)/*/inc/* $(STAGING_DIR)/usr/include/
> +endef
> +
> +# Only install alljoyn dynamic libraries into target directory
> +define ALLJOYN_INSTALL_TARGET_CMDS
> +	cp -a $(@D)/$(ALLJOYN_DISTDIR)/*/lib/lib*.so* $(TARGET_DIR)/usr/lib/
> +endef
> +
> +$(eval $(generic-package))
> 

^ permalink raw reply	[flat|nested] 9+ messages in thread

* [Buildroot] [PATCH v2,2/4] alljoyn-base: new package
  2016-07-06 12:08 ` [Buildroot] [PATCH v2,2/4] alljoyn-base: " Fabrice Fontaine
@ 2016-07-06 20:09   ` Romain Naour
  0 siblings, 0 replies; 9+ messages in thread
From: Romain Naour @ 2016-07-06 20:09 UTC (permalink / raw)
  To: buildroot

Hi Fabrice,

Le 06/07/2016 ? 14:08, Fabrice Fontaine a ?crit :
> 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
> 
> Signed-off-by: Fabrice Fontaine <fabrice.fontaine@orange.com>
> ---
> 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
> 
> diff --git a/package/Config.in b/package/Config.in
> index 77d8fb3..8b50ebb 100644
> --- a/package/Config.in
> +++ b/package/Config.in
> @@ -1126,6 +1126,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"
> diff --git a/package/alljoyn-base/Config.in b/package/alljoyn-base/Config.in
> new file mode 100644
> index 0000000..adf3149
> --- /dev/null
> +++ b/package/alljoyn-base/Config.in
> @@ -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
> +
> +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_LIBS
> +

The comment should be moved above BR2_PACKAGE_ALLJOYN_BASE or at the end of the
file. Otherwise Kconfig doesn't indent correctly all sub options bellow.

With that fixed:
  Reviewed-by: Romain Naour <romain.naour@gmail.com>

Best regards,
Romain

> +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
> diff --git a/package/alljoyn-base/alljoyn-base.hash b/package/alljoyn-base/alljoyn-base.hash
> new file mode 100644
> index 0000000..dbec3a3
> --- /dev/null
> +++ b/package/alljoyn-base/alljoyn-base.hash
> @@ -0,0 +1,2 @@
> +# Locally computed:
> +sha256	742f724b3a06c8fc4039591dba24871755728221ca5dc4afb78ebd9a7e3beb44	alljoyn-base-16.04.00.tar.gz
> diff --git a/package/alljoyn-base/alljoyn-base.mk b/package/alljoyn-base/alljoyn-base.mk
> new file mode 100644
> index 0000000..b6e9bd9
> --- /dev/null
> +++ b/package/alljoyn-base/alljoyn-base.mk
> @@ -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))
> 

^ permalink raw reply	[flat|nested] 9+ messages in thread

* [Buildroot] [PATCH v2,3/4] ajtcl: new package
  2016-07-06 12:08 ` [Buildroot] [PATCH v2,3/4] ajtcl: " Fabrice Fontaine
@ 2016-07-06 20:18   ` Romain Naour
  0 siblings, 0 replies; 9+ messages in thread
From: Romain Naour @ 2016-07-06 20:18 UTC (permalink / raw)
  To: buildroot

Hi Fabrice,

Le 06/07/2016 ? 14:08, Fabrice Fontaine a ?crit :
> 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
> 
> Signed-off-by: Fabrice Fontaine <fabrice.fontaine@orange.com>
> ---
> 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/ajtcl/Config.in  | 19 +++++++++++++++++++
>  package/ajtcl/ajtcl.hash |  2 ++
>  package/ajtcl/ajtcl.mk   | 42 ++++++++++++++++++++++++++++++++++++++++++
>  4 files changed, 64 insertions(+)
>  create mode 100644 package/ajtcl/Config.in
>  create mode 100644 package/ajtcl/ajtcl.hash
>  create mode 100644 package/ajtcl/ajtcl.mk
> 
> diff --git a/package/Config.in b/package/Config.in
> index 8b50ebb..4120b0d 100644
> --- a/package/Config.in
> +++ b/package/Config.in
> @@ -1125,6 +1125,7 @@ endmenu
>  
>  menu "Networking"
>  	source "package/agentpp/Config.in"
> +	source "package/ajtcl/Config.in"

ok, sorted alphabetically but...

>  	source "package/alljoyn/Config.in"
>  	source "package/alljoyn-base/Config.in"
>  	source "package/batman-adv/Config.in"
> diff --git a/package/ajtcl/Config.in b/package/ajtcl/Config.in
> new file mode 100644
> index 0000000..793e778
> --- /dev/null
> +++ b/package/ajtcl/Config.in
> @@ -0,0 +1,19 @@
> +config BR2_PACKAGE_AJTCL
> +	bool "alljoyn-thin-core"

alljoyn-thin-core appear before alljoyn package in menuconfig, it's a bit weird.

What do you think about renaming BR2_PACKAGE_AJTCL to BR2_PACKAGE_ALLJOYN_TCL
for consistency ?

Otherwise:
Reviewed-by: Romain Naour <romain.naour@gmail.com>

Best regards,
Romain


> +	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-thin-core needs a toolchain w/ threads and dynamic library"
> +	depends on !BR2_TOOLCHAIN_HAS_THREADS || BR2_STATIC_LIBS
> diff --git a/package/ajtcl/ajtcl.hash b/package/ajtcl/ajtcl.hash
> new file mode 100644
> index 0000000..a1cdf16
> --- /dev/null
> +++ b/package/ajtcl/ajtcl.hash
> @@ -0,0 +1,2 @@
> +# Locally computed:
> +sha256	ce6a05a67ff405ba6274e85fe750d98f40cbe7ab2c968218c7741a10bd86e21a	ajtcl-16.04.00-src.tar.gz
> diff --git a/package/ajtcl/ajtcl.mk b/package/ajtcl/ajtcl.mk
> new file mode 100644
> index 0000000..018a8bd
> --- /dev/null
> +++ b/package/ajtcl/ajtcl.mk
> @@ -0,0 +1,42 @@
> +################################################################################
> +#
> +# ajtcl
> +#
> +################################################################################
> +
> +AJTCL_REV = 16.04
> +AJTCL_VERSION = $(AJTCL_REV).00
> +AJTCL_SOURCE = ajtcl-$(AJTCL_VERSION)-src.tar.gz
> +AJTCL_SITE = https://mirrors.kernel.org/allseenalliance/alljoyn/$(AJTCL_REV)
> +# See https://allseenalliance.org/alliance/ip-policy
> +AJTCL_LICENSE = ISC
> +
> +AJTCL_DEPENDENCIES = host-scons
> +AJTCL_INSTALL_STAGING = YES
> +
> +# AllJoyn Thin Core can be compiled in debug or release mode. By default,
> +# AllJoyn Thin Core is built in debug mode.
> +AJTCL_VARIANT = release
> +
> +AJTCL_SCONS_OPTS = \
> +	-j$(PARALLEL_JOBS) \
> +	V=1 \
> +	VARIANT=$(AJTCL_VARIANT) \
> +	CC="$(TARGET_CC)" \
> +	CXX="$(TARGET_CXX)"
> +
> +define AJTCL_BUILD_CMDS
> +	cd $(@D); $(SCONS) $(AJTCL_SCONS_OPTS)
> +endef
> +
> +define AJTCL_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 AJTCL_INSTALL_TARGET_CMDS
> +	cp -a $(@D)/dist/lib/lib*.so* $(TARGET_DIR)/usr/lib/
> +endef
> +
> +$(eval $(generic-package))
> 

^ permalink raw reply	[flat|nested] 9+ messages in thread

* [Buildroot] [PATCH v2,4/4] alljoyn-base_tcl: new package
  2016-07-06 12:08 ` [Buildroot] [PATCH v2,4/4] alljoyn-base_tcl: " Fabrice Fontaine
@ 2016-07-06 20:25   ` Romain Naour
  0 siblings, 0 replies; 9+ messages in thread
From: Romain Naour @ 2016-07-06 20:25 UTC (permalink / raw)
  To: buildroot

Hi Fabrice,

Le 06/07/2016 ? 14:08, Fabrice Fontaine a ?crit :
> 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

If you want to keep ajtcl package as is:

Reviewed-by: Romain Naour <romain.naour@gmail.com>

Best regards,
Romain


> 
> Signed-off-by: Fabrice Fontaine <fabrice.fontaine@orange.com>
> ---
>  package/Config.in                              |  1 +
>  package/alljoyn-base_tcl/Config.in             | 17 ++++++++++
>  package/alljoyn-base_tcl/alljoyn-base_tcl.hash |  2 ++
>  package/alljoyn-base_tcl/alljoyn-base_tcl.mk   | 45 ++++++++++++++++++++++++++
>  4 files changed, 65 insertions(+)
>  create mode 100644 package/alljoyn-base_tcl/Config.in
>  create mode 100644 package/alljoyn-base_tcl/alljoyn-base_tcl.hash
>  create mode 100644 package/alljoyn-base_tcl/alljoyn-base_tcl.mk
> 
> diff --git a/package/Config.in b/package/Config.in
> index 4120b0d..e3b47ad 100644
> --- a/package/Config.in
> +++ b/package/Config.in
> @@ -1128,6 +1128,7 @@ menu "Networking"
>  	source "package/ajtcl/Config.in"
>  	source "package/alljoyn/Config.in"
>  	source "package/alljoyn-base/Config.in"
> +	source "package/alljoyn-base_tcl/Config.in"
>  	source "package/batman-adv/Config.in"
>  	source "package/c-ares/Config.in"
>  	source "package/canfestival/Config.in"
> diff --git a/package/alljoyn-base_tcl/Config.in b/package/alljoyn-base_tcl/Config.in
> new file mode 100644
> index 0000000..12ebcef
> --- /dev/null
> +++ b/package/alljoyn-base_tcl/Config.in
> @@ -0,0 +1,17 @@
> +config BR2_PACKAGE_ALLJOYN_BASE_TCL
> +	bool "alljoyn-base_tcl"
> +	depends on !BR2_STATIC_LIBS
> +	depends on BR2_TOOLCHAIN_HAS_THREADS # ajtcl
> +	select BR2_PACKAGE_AJTCL
> +	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-base_tcl needs a toolchain w/ threads and dynamic library"
> +	depends on !BR2_TOOLCHAIN_HAS_THREADS || BR2_STATIC_LIBS
> diff --git a/package/alljoyn-base_tcl/alljoyn-base_tcl.hash b/package/alljoyn-base_tcl/alljoyn-base_tcl.hash
> new file mode 100644
> index 0000000..882839d
> --- /dev/null
> +++ b/package/alljoyn-base_tcl/alljoyn-base_tcl.hash
> @@ -0,0 +1,2 @@
> +# Locally computed:
> +sha256	741f7a71929ccd6a66bf75d2b03affc62411e229b70bb89399be9b1b2ce40629	alljoyn-base_tcl-16.04.00.tar.gz
> diff --git a/package/alljoyn-base_tcl/alljoyn-base_tcl.mk b/package/alljoyn-base_tcl/alljoyn-base_tcl.mk
> new file mode 100644
> index 0000000..d6c339b
> --- /dev/null
> +++ b/package/alljoyn-base_tcl/alljoyn-base_tcl.mk
> @@ -0,0 +1,45 @@
> +################################################################################
> +#
> +# alljoyn-base_tcl
> +#
> +################################################################################
> +
> +ALLJOYN_BASE_TCL_REV = 16.04
> +ALLJOYN_BASE_TCL_VERSION = $(ALLJOYN_BASE_TCL_REV).00
> +ALLJOYN_BASE_TCL_SOURCE = alljoyn-base_tcl-$(ALLJOYN_BASE_TCL_VERSION).tar.gz
> +ALLJOYN_BASE_TCL_SITE = \
> +	https://mirrors.kernel.org/allseenalliance/alljoyn/$(ALLJOYN_BASE_TCL_REV)
> +# See https://allseenalliance.org/alliance/ip-policy
> +ALLJOYN_BASE_TCL_LICENSE = ISC
> +
> +ALLJOYN_BASE_TCL_DEPENDENCIES = host-scons ajtcl
> +ALLJOYN_BASE_TCL_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_BASE_TCL_VARIANT = release
> +
> +ALLJOYN_BASE_TCL_SCONS_OPTS = \
> +	-j$(PARALLEL_JOBS) \
> +	V=1 \
> +	VARIANT=$(AJTCL_VARIANT) \
> +	CC="$(TARGET_CC)" \
> +	CXX="$(TARGET_CXX)" \
> +	AJTCL_DIST=$(STAGING_DIR) \
> +	WS=off
> +
> +define ALLJOYN_BASE_TCL_BUILD_CMDS
> +	cd $(@D); $(SCONS) $(ALLJOYN_BASE_TCL_SCONS_OPTS)
> +endef
> +
> +define ALLJOYN_BASE_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 Base Thin Core dynamic libraries into target directory
> +define ALLJOYN_BASE_TCL_INSTALL_TARGET_CMDS
> +	cp -a $(@D)/dist/lib/lib*.so* $(TARGET_DIR)/usr/lib/
> +endef
> +
> +$(eval $(generic-package))
> 

^ permalink raw reply	[flat|nested] 9+ messages in thread

* [Buildroot] [PATCH v2,1/4] alljoyn: new package
  2016-07-06 12:08 [Buildroot] [PATCH v2,1/4] alljoyn: new package Fabrice Fontaine
                   ` (3 preceding siblings ...)
  2016-07-06 20:04 ` [Buildroot] [PATCH v2,1/4] alljoyn: " Romain Naour
@ 2016-07-07  7:20 ` Thomas Petazzoni
  4 siblings, 0 replies; 9+ messages in thread
From: Thomas Petazzoni @ 2016-07-07  7:20 UTC (permalink / raw)
  To: buildroot

Hello,

First of all, thanks for a lot for having reposted the complete set of
packages as a single series. It makes a lot easier to see that they are
related, and in which order.

On Wed,  6 Jul 2016 14:08:48 +0200, Fabrice Fontaine wrote:
> 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.
> 
> https://allseenalliance.org
> 
> Signed-off-by: Fabrice Fontaine <fabrice.fontaine@orange.com>

I've applied your patch to master, with some minor tweaks:

    [Thomas:
     - rewrap Config.in help text
     - remove / at the beginning of the ALLJOYN_DISTDIR variable.]

Thanks!

Thomas
-- 
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2016-07-07  7:20 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-07-06 12:08 [Buildroot] [PATCH v2,1/4] alljoyn: new package Fabrice Fontaine
2016-07-06 12:08 ` [Buildroot] [PATCH v2,2/4] alljoyn-base: " Fabrice Fontaine
2016-07-06 20:09   ` Romain Naour
2016-07-06 12:08 ` [Buildroot] [PATCH v2,3/4] ajtcl: " Fabrice Fontaine
2016-07-06 20:18   ` Romain Naour
2016-07-06 12:08 ` [Buildroot] [PATCH v2,4/4] alljoyn-base_tcl: " Fabrice Fontaine
2016-07-06 20:25   ` Romain Naour
2016-07-06 20:04 ` [Buildroot] [PATCH v2,1/4] alljoyn: " Romain Naour
2016-07-07  7:20 ` 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.