Skip to contentSkip to conversation

package: Add thunderbolt-tools package

PATCH Superseded Andrei Emeltchenko 3 participants 9 messages Jan 25, 2018 – Jan 27, 2018

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 package: Add thunderbolt-tools package

From: Andrei Emeltchenko <[email protected]>

Add package thunderbolt-tools to handle Thunderbolt devices.

---
 package/Config.in                              |  1 +
 package/thunderbolt-tools/Config.in            | 11 +++++++++++
 package/thunderbolt-tools/thunderbolt-tools.mk | 14 ++++++++++++++
 3 files changed, 26 insertions(+)
 create mode 100644 package/thunderbolt-tools/Config.in
 create mode 100644 package/thunderbolt-tools/thunderbolt-tools.mk
package/Config.in +1 -0
index 00451f526d..d638ac3a72 100644
@@ -505,6 +505,7 @@ endmenu
 	source "package/sunxi-mali/Config.in"
 	source "package/sysstat/Config.in"
 	source "package/targetcli-fb/Config.in"
+	source "package/thunderbolt-tools/Config.in"
 	source "package/ti-gfx/Config.in"
 	source "package/ti-sgx-demos/Config.in"
 	source "package/ti-sgx-km/Config.in"
package/thunderbolt-tools/Config.in new file +11 -0
new file mode 100644
index 0000000000..1057300772
@@ -0,0 +1,11 @@
+config BR2_PACKAGE_THUNDERBOLT_TOOLS
+	bool "thunderbolt-tools"
+#	select BR2_TOOLCHAIN_BUILDROOT_CXX
+	select BR2_PACKAGE_BOOST
+	select BR2_PACKAGE_BOOST_FILESYSTEM
+	depends on BR2_PACKAGE_HAS_UDEV
+	help
+	  Thunderbolt tools for Linux
+
+comment "thunderbolt-tools package needs udev provided by systemd of eudev, C++"
+	depends on BR2_PACKAGE_HAS_UDEV
package/thunderbolt-tools/thunderbolt-tools.mk new file +14 -0
new file mode 100644
index 0000000000..5fd469c4ef
@@ -0,0 +1,14 @@
+################################################################################
+#
+# thunderbolt-tools
+#
+################################################################################
+
+THUNDERBOLT_TOOLS_VERSION = master
+THUNDERBOLT_TOOLS_SITE = https://github.com/01org/thunderbolt-software-user-space.git
+#THUNDERBOLT_TOOLS_SITE = $(call github,01org,thunderbolt-software-user-space,$(THUNDERBOLT_TOOLS_VERSION))
+THUNDERBOLT_TOOLS_SITE_METHOD = git
+
+THUNDERBOLT_TOOLS_DEPENDENCIES = host-pkgconf boost eudev
+
+$(eval $(cmake-package))
Signature · 1 line
2.14.1
#1 lore raw

PATCH 1/1 package: Add thunderbolt-tools package

Hi Andrei,

thank you for your contribution. Some change requests below.

Quoted 4 lines · Andrei Emeltchenko

From: Andrei Emeltchenko <[email protected]>

Add package thunderbolt-tools to handle Thunderbolt devices.

Quoted 8 lines
---
 package/Config.in                              |  1 +
 package/thunderbolt-tools/Config.in            | 11 +++++++++++
 package/thunderbolt-tools/thunderbolt-tools.mk | 14 ++++++++++++++
 3 files changed, 26 insertions(+)
 create mode 100644 package/thunderbolt-tools/Config.in
 create mode 100644 package/thunderbolt-tools/thunderbolt-tools.mk

Please add yourself to the DEVELOPERS file.

package/thunderbolt-tools/thunderbolt-tools.hash is missing.

Quoted 18 lines
package/Config.in +1 -0
index 00451f526d..d638ac3a72 100644
@@ -505,6 +505,7 @@ endmenu
        source "package/sunxi-mali/Config.in"
        source "package/sysstat/Config.in"
        source "package/targetcli-fb/Config.in"
+       source "package/thunderbolt-tools/Config.in"
        source "package/ti-gfx/Config.in"
        source "package/ti-sgx-demos/Config.in"
        source "package/ti-sgx-km/Config.in"
package/thunderbolt-tools/Config.in new file +0 -0
new file mode 100644
index 0000000000..1057300772

package/thunderbolt-tools/Config.in line 3

Quoted 3 lines
package/thunderbolt-tools/Config.in new file +3 -0
@@ -0,0 +1,11 @@
+config BR2_PACKAGE_THUNDERBOLT_TOOLS
+       bool "thunderbolt-tools"
+#      select BR2_TOOLCHAIN_BUILDROOT_CXX

you mean "depends on BR2_INSTALL_LIBSTDCPP"

package/thunderbolt-tools/Config.in line 8

Quoted 5 lines
package/thunderbolt-tools/Config.in new file +5 -0
+       select BR2_PACKAGE_BOOST
+       select BR2_PACKAGE_BOOST_FILESYSTEM
+       depends on BR2_PACKAGE_HAS_UDEV
+       help
+         Thunderbolt tools for Linux

Project URL is missing

Quoted 9 lines
package/thunderbolt-tools/Config.in new file +3 -0
+
+comment "thunderbolt-tools package needs udev provided by systemd of eudev, C++"
+       depends on BR2_PACKAGE_HAS_UDEV
package/thunderbolt-tools/thunderbolt-tools.mk new file +0 -0
new file mode 100644
index 0000000000..5fd469c4ef

package/thunderbolt-tools/thunderbolt-tools.mk line 7

Quoted 7 lines
package/thunderbolt-tools/thunderbolt-tools.mk new file +7 -0
@@ -0,0 +1,14 @@
+################################################################################
+#
+# thunderbolt-tools
+#
+################################################################################
+
+THUNDERBOLT_TOOLS_VERSION = master

use a special commit ID here

package/thunderbolt-tools/thunderbolt-tools.mk line 9

Quoted 2 lines
package/thunderbolt-tools/thunderbolt-tools.mk new file +2 -0
+THUNDERBOLT_TOOLS_SITE = https://github.com/01org/thunderbolt-software-user-space.git
+#THUNDERBOLT_TOOLS_SITE = $(call github,01org,thunderbolt-software-user-space,$(THUNDERBOLT_TOOLS_VERSION))

use githun helper

package/thunderbolt-tools/thunderbolt-tools.mk line 10

Quoted 1 line
package/thunderbolt-tools/thunderbolt-tools.mk new file +1 -0
+THUNDERBOLT_TOOLS_SITE_METHOD = git

if you are using github helper or git URL you don't need to specify the site method

package/thunderbolt-tools/thunderbolt-tools.mk line 12

Quoted 2 lines
package/thunderbolt-tools/thunderbolt-tools.mk new file +2 -0
+
+THUNDERBOLT_TOOLS_DEPENDENCIES = host-pkgconf boost eudev

Add licence info, i.e.
https://github.com/intel/thunderbolt-software-user-space/blob/master/COPYING
and SPDX type of the licence. See the manual.

Quoted 8 lines
package/thunderbolt-tools/thunderbolt-tools.mk new file +1 -1
+$(eval $(cmake-package))
--

2.14.1

_______________________________________________
buildroot mailing list
buildroot at busybox.net
http://lists.busybox.net/mailman/listinfo/buildroot

#2 lore raw

PATCH 1/1 package: Add thunderbolt-tools package

Hi Yegor,

Thanks for review,

Quoted 6 lines · Yegor Yefremov

Review

Quoted 2 lines
(quoted diff) +2 -0
+
+THUNDERBOLT_TOOLS_DEPENDENCIES = host-pkgconf boost eudev

Add licence info, i.e.
https://github.com/intel/thunderbolt-software-user-space/blob/master/COPYING
and SPDX type of the licence. See the manual.

It is "BSD-style" ;).

If I cannot get SPDX type, can I copy license file to package directory and specify it like:

THUNDERBOLT_TOOLS_LICENSE_FILES = COPYING

Best regards
Andrei Emeltchenko

#3 lore raw

PATCH 1/1 package: Add thunderbolt-tools package

Quoted 12 lines · Andrei Emeltchenko

Hi Yegor,

Thanks for review,

Quoted 6 lines · Yegor Yefremov

Review

Quoted 2 lines
(quoted diff) +2 -0
+
+THUNDERBOLT_TOOLS_DEPENDENCIES = host-pkgconf boost eudev

Add licence info, i.e.
https://github.com/intel/thunderbolt-software-user-space/blob/master/COPYING
and SPDX type of the licence. See the manual.

Quoted 6 lines

It is "BSD-style" ;).

If I cannot get SPDX type, can I copy license file to package directory and specify it like:

THUNDERBOLT_TOOLS_LICENSE_FILES = COPYING

Looks like BSD-3-Clause [1]

By the way the patch title should be:

thunderbolt-tools: new package

[1] https://spdx.org/licenses/BSD-3-Clause.html

Yegor

#4 lore raw

PATCH 1/1 thunderbolt-tools: new package

In reply to Andrei Emeltchenko

From: Andrei Emeltchenko <[email protected]>

Add package thunderbolt-tools to handle Thunderbolt devices.

---
 DEVELOPERS                                       |  3 +++
 package/Config.in                                |  1 +
 package/thunderbolt-tools/Config.in              | 13 +++++++++++++
 package/thunderbolt-tools/thunderbolt-tools.hash |  2 ++
 package/thunderbolt-tools/thunderbolt-tools.mk   | 15 +++++++++++++++
 5 files changed, 34 insertions(+)
 create mode 100644 package/thunderbolt-tools/Config.in
 create mode 100644 package/thunderbolt-tools/thunderbolt-tools.hash
 create mode 100644 package/thunderbolt-tools/thunderbolt-tools.mk
DEVELOPERS +3 -0
index 73c0231bc0..822961a467 100644
@@ -1949,3 +1949,6 @@ F:	package/qjson/
 F:	package/quazip/
 F:	package/shapelib/
 F:	package/tinc/
+
+N:	Andrei Emeltchenko <[email protected]>
+F:	package/thunderbolt-tools/
package/Config.in +1 -0
index 00451f526d..d638ac3a72 100644
@@ -505,6 +505,7 @@ endmenu
 	source "package/sunxi-mali/Config.in"
 	source "package/sysstat/Config.in"
 	source "package/targetcli-fb/Config.in"
+	source "package/thunderbolt-tools/Config.in"
 	source "package/ti-gfx/Config.in"
 	source "package/ti-sgx-demos/Config.in"
 	source "package/ti-sgx-km/Config.in"
package/thunderbolt-tools/Config.in new file +13 -0
new file mode 100644
index 0000000000..0187ee4569
@@ -0,0 +1,13 @@
+config BR2_PACKAGE_THUNDERBOLT_TOOLS
+	bool "thunderbolt-tools"
+	select BR2_PACKAGE_BOOST
+	select BR2_PACKAGE_BOOST_FILESYSTEM
+	depends on BR2_PACKAGE_HAS_UDEV
+	depends on BR2_INSTALL_LIBSTDCPP
+	help
+	  Thunderbolt user space tools
+
+	  https://github.com/intel/thunderbolt-software-user-space
+
+comment "thunderbolt-tools package needs udev provided by systemd of eudev, C++"
+	depends on BR2_PACKAGE_HAS_UDEV
package/thunderbolt-tools/thunderbolt-tools.hash new file +2 -0
new file mode 100644
index 0000000000..b1cfded05a
@@ -0,0 +1,2 @@
+# locally computed
+sha256 705f56b095a9764ca933f43ecf7629812976cb20600545ac9838730bd0ae6e2c thunderbolt-tools-8c82b2f84dfede86683873bc47a0b95714129a66.tar.gz
package/thunderbolt-tools/thunderbolt-tools.mk new file +15 -0
new file mode 100644
index 0000000000..6bf7b7a9c7
@@ -0,0 +1,15 @@
+################################################################################
+#
+# thunderbolt-tools
+#
+################################################################################
+
+THUNDERBOLT_TOOLS_VERSION = 8c82b2f84dfede86683873bc47a0b95714129a66
+THUNDERBOLT_TOOLS_SITE = https://github.com/01org/thunderbolt-software-user-space.git
+THUNDERBOLT_TOOLS_SITE = $(call github,intel,thunderbolt-software-user-space,$(THUNDERBOLT_TOOLS_VERSION))
+THUNDERBOLT_TOOLS_LICENSE = BSD-3-Clause
+THUNDERBOLT_TOOLS_LICENSE_FILES = COPYING
+
+THUNDERBOLT_TOOLS_DEPENDENCIES = host-pkgconf boost eudev
+
+$(eval $(cmake-package))
Signature · 1 line
2.14.1
#5 lore raw

PATCH 1/1 thunderbolt-tools: new package

Quoted 47 lines · Andrei Emeltchenko

From: Andrei Emeltchenko <[email protected]>

Add package thunderbolt-tools to handle Thunderbolt devices.

---
 DEVELOPERS                                       |  3 +++
 package/Config.in                                |  1 +
 package/thunderbolt-tools/Config.in              | 13 +++++++++++++
 package/thunderbolt-tools/thunderbolt-tools.hash |  2 ++
 package/thunderbolt-tools/thunderbolt-tools.mk   | 15 +++++++++++++++
 5 files changed, 34 insertions(+)
 create mode 100644 package/thunderbolt-tools/Config.in
 create mode 100644 package/thunderbolt-tools/thunderbolt-tools.hash
 create mode 100644 package/thunderbolt-tools/thunderbolt-tools.mk
DEVELOPERS +3 -0
index 73c0231bc0..822961a467 100644
@@ -1949,3 +1949,6 @@ F:        package/qjson/
 F:     package/quazip/
 F:     package/shapelib/
 F:     package/tinc/
+
+N:     Andrei Emeltchenko <[email protected]>
+F:     package/thunderbolt-tools/
package/Config.in +1 -0
index 00451f526d..d638ac3a72 100644
@@ -505,6 +505,7 @@ endmenu
        source "package/sunxi-mali/Config.in"
        source "package/sysstat/Config.in"
        source "package/targetcli-fb/Config.in"
+       source "package/thunderbolt-tools/Config.in"
        source "package/ti-gfx/Config.in"
        source "package/ti-sgx-demos/Config.in"
        source "package/ti-sgx-km/Config.in"
package/thunderbolt-tools/Config.in new file +2 -0
new file mode 100644
index 0000000000..0187ee4569
@@ -0,0 +1,13 @@
+config BR2_PACKAGE_THUNDERBOLT_TOOLS
+       bool "thunderbolt-tools"

package/thunderbolt-tools/Config.in line 12

Quoted 10 lines
package/thunderbolt-tools/Config.in new file +10 -0
+       select BR2_PACKAGE_BOOST
+       select BR2_PACKAGE_BOOST_FILESYSTEM
+       depends on BR2_PACKAGE_HAS_UDEV
+       depends on BR2_INSTALL_LIBSTDCPP
+       help
+         Thunderbolt user space tools
+
+         https://github.com/intel/thunderbolt-software-user-space
+
+comment "thunderbolt-tools package needs udev provided by systemd of eudev, C++"

s/of/or

package/thunderbolt-tools/Config.in line 13

Quoted 1 line
package/thunderbolt-tools/Config.in new file +1 -0
+       depends on BR2_PACKAGE_HAS_UDEV

depends on !BR2_INSTALL_LIBSTDCPP || !BR2_PACKAGE_HAS_UDEV

Quoted 14 lines
package/thunderbolt-tools/thunderbolt-tools.hash new file +2 -0
new file mode 100644
index 0000000000..b1cfded05a
@@ -0,0 +1,2 @@
+# locally computed
+sha256 705f56b095a9764ca933f43ecf7629812976cb20600545ac9838730bd0ae6e2c thunderbolt-tools-8c82b2f84dfede86683873bc47a0b95714129a66.tar.gz
package/thunderbolt-tools/thunderbolt-tools.mk new file +0 -0
new file mode 100644
index 0000000000..6bf7b7a9c7

package/thunderbolt-tools/thunderbolt-tools.mk line 8

Quoted 8 lines
package/thunderbolt-tools/thunderbolt-tools.mk new file +8 -0
@@ -0,0 +1,15 @@
+################################################################################
+#
+# thunderbolt-tools
+#
+################################################################################
+
+THUNDERBOLT_TOOLS_VERSION = 8c82b2f84dfede86683873bc47a0b95714129a66
+THUNDERBOLT_TOOLS_SITE = https://github.com/01org/thunderbolt-software-user-space.git

remove this line

with this changed applied you can add my

Yegor

Quoted 14 lines
package/thunderbolt-tools/thunderbolt-tools.mk new file +7 -1
+THUNDERBOLT_TOOLS_SITE = $(call github,intel,thunderbolt-software-user-space,$(THUNDERBOLT_TOOLS_VERSION))
+THUNDERBOLT_TOOLS_LICENSE = BSD-3-Clause
+THUNDERBOLT_TOOLS_LICENSE_FILES = COPYING
+
+THUNDERBOLT_TOOLS_DEPENDENCIES = host-pkgconf boost eudev
+
+$(eval $(cmake-package))
--

2.14.1

_______________________________________________
buildroot mailing list
buildroot at busybox.net
http://lists.busybox.net/mailman/listinfo/buildroot

#6 lore raw

PATCH 1/1 thunderbolt-tools: new package

Quoted 66 lines · Yegor Yefremov
Quoted 47 lines · Andrei Emeltchenko

From: Andrei Emeltchenko <[email protected]>

Add package thunderbolt-tools to handle Thunderbolt devices.

---
 DEVELOPERS                                       |  3 +++
 package/Config.in                                |  1 +
 package/thunderbolt-tools/Config.in              | 13 +++++++++++++
 package/thunderbolt-tools/thunderbolt-tools.hash |  2 ++
 package/thunderbolt-tools/thunderbolt-tools.mk   | 15 +++++++++++++++
 5 files changed, 34 insertions(+)
 create mode 100644 package/thunderbolt-tools/Config.in
 create mode 100644 package/thunderbolt-tools/thunderbolt-tools.hash
 create mode 100644 package/thunderbolt-tools/thunderbolt-tools.mk
DEVELOPERS +3 -0
index 73c0231bc0..822961a467 100644
@@ -1949,3 +1949,6 @@ F:        package/qjson/
 F:     package/quazip/
 F:     package/shapelib/
 F:     package/tinc/
+
+N:     Andrei Emeltchenko <[email protected]>
+F:     package/thunderbolt-tools/
package/Config.in +1 -0
index 00451f526d..d638ac3a72 100644
@@ -505,6 +505,7 @@ endmenu
        source "package/sunxi-mali/Config.in"
        source "package/sysstat/Config.in"
        source "package/targetcli-fb/Config.in"
+       source "package/thunderbolt-tools/Config.in"
        source "package/ti-gfx/Config.in"
        source "package/ti-sgx-demos/Config.in"
        source "package/ti-sgx-km/Config.in"
package/thunderbolt-tools/Config.in new file +2 -0
new file mode 100644
index 0000000000..0187ee4569
@@ -0,0 +1,13 @@
+config BR2_PACKAGE_THUNDERBOLT_TOOLS
+       bool "thunderbolt-tools"

package/thunderbolt-tools/Config.in line 12

Quoted 10 lines
package/thunderbolt-tools/Config.in new file +10 -0
+       select BR2_PACKAGE_BOOST
+       select BR2_PACKAGE_BOOST_FILESYSTEM
+       depends on BR2_PACKAGE_HAS_UDEV
+       depends on BR2_INSTALL_LIBSTDCPP
+       help
+         Thunderbolt user space tools
+
+         https://github.com/intel/thunderbolt-software-user-space
+
+comment "thunderbolt-tools package needs udev provided by systemd of eudev, C++"

s/of/or

package/thunderbolt-tools/Config.in line 13

Quoted 1 line
package/thunderbolt-tools/Config.in new file +1 -0
+       depends on BR2_PACKAGE_HAS_UDEV

depends on !BR2_INSTALL_LIBSTDCPP || !BR2_PACKAGE_HAS_UDEV

Quoted 8 lines

package/thunderbolt-tools/thunderbolt-tools.hash line 2

Quoted 8 lines
package/thunderbolt-tools/thunderbolt-tools.hash new file +2 -0
new file mode 100644
index 0000000000..b1cfded05a
@@ -0,0 +1,2 @@
+# locally computed
+sha256 705f56b095a9764ca933f43ecf7629812976cb20600545ac9838730bd0ae6e2c thunderbolt-tools-8c82b2f84dfede86683873bc47a0b95714129a66.tar.gz

please add sha256 checksum for COPYING

Quoted 37 lines
Quoted 6 lines
package/thunderbolt-tools/thunderbolt-tools.mk new file +0 -0
new file mode 100644
index 0000000000..6bf7b7a9c7

package/thunderbolt-tools/thunderbolt-tools.mk line 8

Quoted 8 lines
package/thunderbolt-tools/thunderbolt-tools.mk new file +8 -0
@@ -0,0 +1,15 @@
+################################################################################
+#
+# thunderbolt-tools
+#
+################################################################################
+
+THUNDERBOLT_TOOLS_VERSION = 8c82b2f84dfede86683873bc47a0b95714129a66
+THUNDERBOLT_TOOLS_SITE = https://github.com/01org/thunderbolt-software-user-space.git

remove this line

with this changed applied you can add my

Yegor

Quoted 14 lines
package/thunderbolt-tools/thunderbolt-tools.mk new file +7 -1
+THUNDERBOLT_TOOLS_SITE = $(call github,intel,thunderbolt-software-user-space,$(THUNDERBOLT_TOOLS_VERSION))
+THUNDERBOLT_TOOLS_LICENSE = BSD-3-Clause
+THUNDERBOLT_TOOLS_LICENSE_FILES = COPYING
+
+THUNDERBOLT_TOOLS_DEPENDENCIES = host-pkgconf boost eudev
+
+$(eval $(cmake-package))
--

2.14.1

_______________________________________________
buildroot mailing list
buildroot at busybox.net
http://lists.busybox.net/mailman/listinfo/buildroot

#7 lore raw

PATCH v3 1/1 thunderbolt-tools: new package

In reply to Andrei Emeltchenko

From: Andrei Emeltchenko <[email protected]>

Add package thunderbolt-tools to handle Thunderbolt devices.

---
 DEVELOPERS                                       |  3 +++
 package/Config.in                                |  1 +
 package/thunderbolt-tools/Config.in              | 13 +++++++++++++
 package/thunderbolt-tools/thunderbolt-tools.hash |  3 +++
 package/thunderbolt-tools/thunderbolt-tools.mk   | 14 ++++++++++++++
 5 files changed, 34 insertions(+)
 create mode 100644 package/thunderbolt-tools/Config.in
 create mode 100644 package/thunderbolt-tools/thunderbolt-tools.hash
 create mode 100644 package/thunderbolt-tools/thunderbolt-tools.mk
DEVELOPERS +3 -0
index 73c0231bc0..822961a467 100644
@@ -1949,3 +1949,6 @@ F:	package/qjson/
 F:	package/quazip/
 F:	package/shapelib/
 F:	package/tinc/
+
+N:	Andrei Emeltchenko <[email protected]>
+F:	package/thunderbolt-tools/
package/Config.in +1 -0
index 00451f526d..d638ac3a72 100644
@@ -505,6 +505,7 @@ endmenu
 	source "package/sunxi-mali/Config.in"
 	source "package/sysstat/Config.in"
 	source "package/targetcli-fb/Config.in"
+	source "package/thunderbolt-tools/Config.in"
 	source "package/ti-gfx/Config.in"
 	source "package/ti-sgx-demos/Config.in"
 	source "package/ti-sgx-km/Config.in"
package/thunderbolt-tools/Config.in new file +13 -0
new file mode 100644
index 0000000000..be80c81dc0
@@ -0,0 +1,13 @@
+config BR2_PACKAGE_THUNDERBOLT_TOOLS
+	bool "thunderbolt-tools"
+	select BR2_PACKAGE_BOOST
+	select BR2_PACKAGE_BOOST_FILESYSTEM
+	depends on BR2_PACKAGE_HAS_UDEV
+	depends on BR2_INSTALL_LIBSTDCPP
+	help
+	  Thunderbolt user space tools
+
+	  https://github.com/intel/thunderbolt-software-user-space
+
+comment "thunderbolt-tools package needs udev provided by systemd or eudev, C++"
+	depends on !BR2_INSTALL_LIBSTDCPP || !BR2_PACKAGE_HAS_UDEV
package/thunderbolt-tools/thunderbolt-tools.hash new file +3 -0
new file mode 100644
index 0000000000..b73e1a6317
@@ -0,0 +1,3 @@
+# locally computed
+sha256	705f56b095a9764ca933f43ecf7629812976cb20600545ac9838730bd0ae6e2c	thunderbolt-tools-8c82b2f84dfede86683873bc47a0b95714129a66.tar.gz
+sha256	4050c82f8e2fcfc6c24515e25fbc5e48537413ad59d056b4c1a4b183e2ea88a1	COPYING
package/thunderbolt-tools/thunderbolt-tools.mk new file +14 -0
new file mode 100644
index 0000000000..4c7b48d178
@@ -0,0 +1,14 @@
+################################################################################
+#
+# thunderbolt-tools
+#
+################################################################################
+
+THUNDERBOLT_TOOLS_VERSION = 8c82b2f84dfede86683873bc47a0b95714129a66
+THUNDERBOLT_TOOLS_SITE = $(call github,intel,thunderbolt-software-user-space,$(THUNDERBOLT_TOOLS_VERSION))
+THUNDERBOLT_TOOLS_LICENSE = BSD-3-Clause
+THUNDERBOLT_TOOLS_LICENSE_FILES = COPYING
+
+THUNDERBOLT_TOOLS_DEPENDENCIES = host-pkgconf boost
+
+$(eval $(cmake-package))
Signature · 1 line
2.14.1
#8 lore raw

PATCH v3 1/1 thunderbolt-tools: new package

Quoted 7 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Andrei" == Andrei Emeltchenko <[email protected]> writes:

From: Andrei Emeltchenko <[email protected]> Add package thunderbolt-tools to handle Thunderbolt devices.

Thanks, it is starting to look good, but there's still a few issues.

Quoted 16 lines
---
 DEVELOPERS                                       |  3 +++
 package/Config.in                                |  1 +
 package/thunderbolt-tools/Config.in              | 13 +++++++++++++
 package/thunderbolt-tools/thunderbolt-tools.hash |  3 +++
 package/thunderbolt-tools/thunderbolt-tools.mk   | 14 ++++++++++++++
 5 files changed, 34 insertions(+)
 create mode 100644 package/thunderbolt-tools/Config.in
 create mode 100644 package/thunderbolt-tools/thunderbolt-tools.hash
 create mode 100644 package/thunderbolt-tools/thunderbolt-tools.mk
DEVELOPERS +0 -0
index 73c0231bc0..822961a467 100644

DEVELOPERS F: package/qjson/ · line 1954

Quoted 6 lines
DEVELOPERS +3 -0
@@ -1949,3 +1949,6 @@ F:	package/qjson/
 F:	package/quazip/
 F:	package/shapelib/
 F:	package/tinc/
+
+N:	Andrei Emeltchenko <[email protected]>
+F:	package/thunderbolt-tools/

Plese keep this file alphabetically sorted (so add before Andrey Smirnov).

Quoted 18 lines
package/Config.in +1 -0
index 00451f526d..d638ac3a72 100644
@@ -505,6 +505,7 @@ endmenu
 	source "package/sunxi-mali/Config.in"
 	source "package/sysstat/Config.in"
 	source "package/targetcli-fb/Config.in"
+	source "package/thunderbolt-tools/Config.in"
 	source "package/ti-gfx/Config.in"
 	source "package/ti-sgx-demos/Config.in"
 	source "package/ti-sgx-km/Config.in"
package/thunderbolt-tools/Config.in new file +0 -0
new file mode 100644
index 0000000000..be80c81dc0

package/thunderbolt-tools/Config.in line 10

Quoted 10 lines
package/thunderbolt-tools/Config.in new file +10 -0
@@ -0,0 +1,13 @@
+config BR2_PACKAGE_THUNDERBOLT_TOOLS
+	bool "thunderbolt-tools"
+	select BR2_PACKAGE_BOOST
+	select BR2_PACKAGE_BOOST_FILESYSTEM
+	depends on BR2_PACKAGE_HAS_UDEV
+	depends on BR2_INSTALL_LIBSTDCPP
+	help
+	  Thunderbolt user space tools
+
+	  https://github.com/intel/thunderbolt-software-user-space

Please run the package through utils/check-package. Depends on should come before select. The boost package also has a number of dependencies that you need to propagate, E.G. something like:

depends on BR2_TOOLCHAIN_HAS_THREADS # boost depends on BR2_USE_WCHAR # boost

package/thunderbolt-tools/Config.in line 13

Quoted 3 lines
package/thunderbolt-tools/Config.in new file +3 -0
+
+comment "thunderbolt-tools package needs udev provided by systemd or eudev, C++"
+	depends on !BR2_INSTALL_LIBSTDCPP || !BR2_PACKAGE_HAS_UDEV

Drop 'package' to make the text shorter. Other packages with similar requirements (E.G. modem-manager) use wording like:

comment "thunderbolt-tools needs udev /dev management, wchar, C++, threads"

package/thunderbolt-tools/Config.in line 8

Quoted 10 lines

+++ b/package/thunderbolt-tools/thunderbolt-tools.mk

package/thunderbolt-tools/Config.in new file +8 -0
@@ -0,0 +1,14 @@
+################################################################################
+#
+# thunderbolt-tools
+#
+################################################################################
+
+THUNDERBOLT_TOOLS_VERSION = 8c82b2f84dfede86683873bc47a0b95714129a66
+THUNDERBOLT_TOOLS_SITE = $(call github,intel,thunderbolt-software-user-space,$(THUNDERBOLT_TOOLS_VERSION))

Is there a specific reason why you are using a random git hash and not just the latest release? Please document this in the commit message.

We normally try to use the same name for the buildroot package as for the upstream project, but I agree that BR2_PACKAGE_THUNDERBOLT_SOFTWARE_USER_SPACE is quite a mouthful, so OK.

package/thunderbolt-tools/Config.in line 12

Quoted 4 lines
package/thunderbolt-tools/Config.in new file +4 -0
+THUNDERBOLT_TOOLS_LICENSE = BSD-3-Clause
+THUNDERBOLT_TOOLS_LICENSE_FILES = COPYING
+
+THUNDERBOLT_TOOLS_DEPENDENCIES = host-pkgconf boost

I see that CMakeLists.txt looks for pkg-config variables from the udev package, so it isn't just a runtime dependency and you need to add it to the _DEPENDENCIES line.

I tried a test build with the above fixed, but it errors out if txt2tags isn't available:

-- Found PkgConfig: /home/peko/source/buildroot/output-thunder/host/bin/pkg-config (found version "0.28") CMake Warning at /usr/share/cmake-3.7/Modules/FindBoost.cmake:761 (message):
Imported targets not available for Boost version 106600
Call Stack (most recent call first):
/usr/share/cmake-3.7/Modules/FindBoost.cmake:865 (_Boost_COMPONENT_DEPENDENCIES) /usr/share/cmake-3.7/Modules/FindBoost.cmake:1470 (_Boost_MISSING_DEPENDENCIES) common/CMakeLists.txt:5 (find_package)

-- Boost version: 1.66.0
-- Found the following Boost libraries:
-- filesystem
CMake Error at docs/CMakeLists.txt:7 (message):
txt2tags is needed for generating the man page

So you should make man generation optional (and disable it in the buildroot package).

Care to fix these issues and resend? Thanks.

Signature · 1 line
Bye, Peter Korsgaard