Skip to contentSkip to conversation

package/sg3_utils: add host build

PATCH New Matt Weber 2 participants 6 messages Feb 4, 2019 – Feb 6, 2019

lore
Share & tools
lore

Matt Weber

author
#0 lore raw

PATCH v4 1/2 package/sg3_utils: add host build

Initially used by the host build of the utp_com package

---
Changes

v4
[Thomas
- Moved to be the first patch in the series

v3
- New patch

---
 package/sg3_utils/sg3_utils.mk | 1 +
 1 file changed, 1 insertion(+)
package/sg3_utils/sg3_utils.mk +1 -0
index 0c17b30..b3a79d6 100644
@@ -51,3 +51,4 @@ SG3_UTILS_POST_INSTALL_TARGET_HOOKS += SG3_UTILS_REMOVE_PROGS
 endif
 
 $(eval $(autotools-package))
+$(eval $(host-autotools-package))
Signature · 1 line
1.9.1
author
#1 lore raw

PATCH v4 2/2 package/utp_com: new host package

From: Vincent Prince <[email protected]>

This tool is used to send commands to imx6 based hardware using NXP's UTP protocol.

---

(Vincent, I'd suggest sending a follow on patch to add yourself as a DEVELOPER to maintain this package)

Changes
v3 -> v4
[Thomas
- Moved to be second patch in the series

v2 -> v3
[Yann
- Fixed install path as suggested in v1
- Ran check-package and fixed all formatting items
- Adjusted macro spacing
[Matt W
- Removed target varient as it seems this is just a host tool
- Added license file hash
- Removed assignment of CFLAGS as already set via HOST_CONFIGURE_OPTS
- Added host dependency on host-sg3_utils
- Created new sg3_utils patch to add host dependency

Original v2
http://patchwork.ozlabs.org/patch/921325/

Notes on v1
http://lists.busybox.net/pipermail/buildroot/2018-May/222347.html

---
 package/Config.in.host         |  1 +
 package/utp_com/Config.in.host |  7 +++++++
 package/utp_com/utp_com.hash   |  3 +++
 package/utp_com/utp_com.mk     | 21 +++++++++++++++++++++
 4 files changed, 32 insertions(+)
 create mode 100644 package/utp_com/Config.in.host
 create mode 100644 package/utp_com/utp_com.hash
 create mode 100644 package/utp_com/utp_com.mk
package/Config.in.host +1 -0
index 16b474f..3b75f23 100644
@@ -63,6 +63,7 @@ menu "Host utilities"
 	source "package/ti-cgt-pru/Config.in.host"
 	source "package/uboot-tools/Config.in.host"
 	source "package/util-linux/Config.in.host"
+	source "package/utp_com/Config.in.host"
 	source "package/vboot-utils/Config.in.host"
 	source "package/xorriso/Config.in.host"
 	source "package/zip/Config.in.host"
package/utp_com/Config.in.host new file +7 -0
new file mode 100644
index 0000000..8f733de
@@ -0,0 +1,7 @@
+config BR2_PACKAGE_HOST_UTP_COM
+	bool "host utp_com"
+	help
+	  This package is used to send commands to hardware
+	  via Freescale's UTP protocol (similar to MFGTools)
+
+	  https://github.com/ixonos/utp_com
package/utp_com/utp_com.hash new file +3 -0
new file mode 100644
index 0000000..bc25be2
@@ -0,0 +1,3 @@
+# locally computed
+sha256  8b5ba0058a78de69faf6822bb10b457fff2f9e55dc112ccb81c35214b061c6e6 utp_com-dee512ced1e9367d223d22f10797fbf9aeacfab6.tar.gz
+sha256  a45d0bb572ed792ed34627a72621834b3ba92aab6e2cc4e04301dee7a728d753 LICENSE
package/utp_com/utp_com.mk new file +21 -0
new file mode 100644
index 0000000..392cca2
@@ -0,0 +1,21 @@
+################################################################################
+#
+# utp_com
+#
+################################################################################
+
+UTP_COM_VERSION = dee512ced1e9367d223d22f10797fbf9aeacfab6
+UTP_COM_SITE = $(call github,freescale,utp_com,$(UTP_COM_VERSION))
+UTP_COM_LICENSE = GPL-2.0+
+UTP_COM_LICENSE_FILES = LICENSE
+HOST_UTP_COM_DEPENDENCIES = host-sg3_utils
+
+define HOST_UTP_COM_BUILD_CMDS
+	$(HOST_CONFIGURE_OPTS) $(MAKE) -C $(@D)
+endef
+
+define HOST_UTP_COM_INSTALL_CMDS
+	$(INSTALL) -m 755 $(@D)/utp_com $(HOST_DIR)/bin/utp_com
+endef
+
+$(eval $(host-generic-package))
Signature · 1 line
1.9.1
#2 lore raw

PATCH v4 2/2 package/utp_com: new host package

Hello,

Quoted 5 lines · On Mon, 4 Feb 2019 07:10:23 -0600 Matt Weber…

From: Vincent Prince <[email protected]>

This tool is used to send commands to imx6 based hardware using NXP's UTP protocol.

Quoted 7 lines

---

(Vincent, I'd suggest sending a follow on patch to add yourself as a DEVELOPER to maintain this package)

Actually, when adding a new package, having an entry in the DEVELOPERS file is mandatory, so I've added one.

package/utp_com/utp_com.mk line 18

Quoted 2 lines
package/utp_com/utp_com.mk new file +2 -0
+define HOST_UTP_COM_INSTALL_CMDS
+	$(INSTALL) -m 755 $(@D)/utp_com $(HOST_DIR)/bin/utp_com

Missing -D option (just in case).

Applied with those two nits fixed. Thanks!

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
#3 lore raw

PATCH v4 1/2 package/sg3_utils: add host build

In reply to Matt Weber
Quoted 6 lines · On Mon, 4 Feb 2019 07:10:22 -0600 Matt Weber…

Initially used by the host build of the utp_com package

---
Changes

Applied to master, thanks.

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
#4 lore raw

PATCH v4 1/2 package/sg3_utils: add host build

In reply to Matt Weber
Quoted 6 lines · On Mon, 4 Feb 2019 07:10:22 -0600 Matt Weber…

Initially used by the host build of the utp_com package

---
Changes

This patch causes some breakage:

http://autobuild.buildroot.net/results/2b3/2b30f4ae0074d7f89ed489dccf6b5eecdd40c909/build-end.log

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
#5 lore raw

PATCH v4 1/2 package/sg3_utils: add host build

Thomas,

Quoted 6 lines · Thomas Petazzoni
Quoted 2 lines · On Mon, 4 Feb 2019 07:10:22 -0600 Matt Weber…

Initially used by the host build of the utp_com package

Quoted 9 lines
Quoted 4 lines

---
Changes

This patch causes some breakage:

http://autobuild.buildroot.net/results/2b3/2b30f4ae0074d7f89ed489dccf6b5eecdd40c909/build-end.log

I was unable to reproduce on a machine with.............. Linux largo 3.19.0-25-generic #26~14.04.1-Ubuntu SMP Fri Jul 24 21:16:20 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux /lib/x86_64-linux-gnu/ld-2.19.so
gcc (Ubuntu 4.9.4-2ubuntu1~14.04.1) 4.9.4

What's the bootlin autobuilder configuration?

Thanks!
Matt