mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
* [ptxdist] [PATCH 1/2] host-libftdi1: add new package
@ 2019-06-06 22:19 Michael Grzeschik
  2019-06-06 22:19 ` [ptxdist] [PATCH 2/2] host-openocd: add initial support Michael Grzeschik
  0 siblings, 1 reply; 10+ messages in thread
From: Michael Grzeschik @ 2019-06-06 22:19 UTC (permalink / raw)
  To: ptxdist

Signed-off-by: Michael Grzeschik <m.grzeschik@pengutronix.de>
---
 rules/host-libftdi1.in   |  6 ++++++
 rules/host-libftdi1.make | 26 ++++++++++++++++++++++++++
 2 files changed, 32 insertions(+)
 create mode 100644 rules/host-libftdi1.in
 create mode 100644 rules/host-libftdi1.make

diff --git a/rules/host-libftdi1.in b/rules/host-libftdi1.in
new file mode 100644
index 000000000..0db5cb9d1
--- /dev/null
+++ b/rules/host-libftdi1.in
@@ -0,0 +1,6 @@
+## SECTION=hosttools_noprompt
+
+config HOST_LIBFTDI1
+	tristate
+	select HOST_CMAKE
+	default ALLYES
diff --git a/rules/host-libftdi1.make b/rules/host-libftdi1.make
new file mode 100644
index 000000000..07e2351df
--- /dev/null
+++ b/rules/host-libftdi1.make
@@ -0,0 +1,26 @@
+# -*-makefile-*-
+#
+# Copyright (C) 2014 by Michael Grzeschik <mgr@pengutronix.de>
+#
+# See CREDITS for details about who has contributed to this project.
+#
+# For further information about the PTXdist project and license conditions
+# see the README file.
+#
+
+#
+# We provide this package
+#
+HOST_PACKAGES-$(PTXCONF_HOST_LIBFTDI1) += host-libftdi1
+
+HOST_LIBFTDI1_CONF_TOOL	:= cmake
+HOST_LIBFTDI1_CONF_OPT	:= \
+	$(HOST_CMAKE_USR) \
+	-DDOCUMENTATION=OFF \
+	-DPYTHON_BINDINGS=OFF \
+	-DSTATICLIBS=OFF \
+	-DEXAMPLES=OFF \
+	-DFTDIPP=OFF \
+	-DFTDI_EEPROM=OFF
+
+# vim: syntax=make
-- 
2.20.1


_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de

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

* [ptxdist] [PATCH 2/2] host-openocd: add initial support
  2019-06-06 22:19 [ptxdist] [PATCH 1/2] host-libftdi1: add new package Michael Grzeschik
@ 2019-06-06 22:19 ` Michael Grzeschik
  2019-06-14  7:18   ` Michael Olbrich
  0 siblings, 1 reply; 10+ messages in thread
From: Michael Grzeschik @ 2019-06-06 22:19 UTC (permalink / raw)
  To: ptxdist

Signed-off-by: Michael Grzeschik <m.grzeschik@pengutronix.de>
---
 patches/openocd-af952850/autogen.sh |  3 +
 rules/host-openocd.in               | 12 ++++
 rules/host-openocd.make             | 89 +++++++++++++++++++++++++++++
 3 files changed, 104 insertions(+)
 create mode 100755 patches/openocd-af952850/autogen.sh
 create mode 100644 rules/host-openocd.in
 create mode 100644 rules/host-openocd.make

diff --git a/patches/openocd-af952850/autogen.sh b/patches/openocd-af952850/autogen.sh
new file mode 100755
index 000000000..7d344d32f
--- /dev/null
+++ b/patches/openocd-af952850/autogen.sh
@@ -0,0 +1,3 @@
+#!/bin/bash
+
+exec ./bootstrap
diff --git a/rules/host-openocd.in b/rules/host-openocd.in
new file mode 100644
index 000000000..8c863598e
--- /dev/null
+++ b/rules/host-openocd.in
@@ -0,0 +1,12 @@
+## SECTION=hosttools
+
+menuconfig HOST_OPENOCD
+	tristate
+	prompt "openocd"
+	select HOST_LIBUSB
+	select HOST_JIMTCL
+	select HOST_LIBFTDI1
+	help
+	  The "Open On-Chip Debugger" provides JTAG/SWD access from GDB
+	  (or directly with TCL scripts) to processors with ARM and MIPS
+	  based cores.
diff --git a/rules/host-openocd.make b/rules/host-openocd.make
new file mode 100644
index 000000000..8a741856e
--- /dev/null
+++ b/rules/host-openocd.make
@@ -0,0 +1,89 @@
+# -*-makefile-*-
+#
+# Copyright (C) 2013 by Michael Grzeschik <mgr@pengutronix.de>
+#
+# See CREDITS for details about who has contributed to this project.
+#
+# For further information about the PTXdist project and license conditions
+# see the README file.
+#
+
+#
+# We provide this package
+#
+HOST_PACKAGES-$(PTXCONF_HOST_OPENOCD) += host-openocd
+
+#
+# Paths and names
+#
+HOST_OPENOCD_VERSION	:= af952850
+HOST_OPENOCD_MD5	:= fa6841d4e4e76d1626406a99d5b1851d
+HOST_OPENOCD		:= openocd-$(HOST_OPENOCD_VERSION)
+HOST_OPENOCD_SUFFIX	:= tar.bz2
+HOST_OPENOCD_URL	:= git://git.code.sf.net/p/openocd/code;tag=$(HOST_OPENOCD_VERSION)
+HOST_OPENOCD_SOURCE	:= $(SRCDIR)/$(HOST_OPENOCD).$(HOST_OPENOCD_SUFFIX)
+HOST_OPENOCD_DIR	:= $(HOST_BUILDDIR)/$(HOST_OPENOCD)
+
+# ----------------------------------------------------------------------------
+# Prepare
+# ----------------------------------------------------------------------------
+
+#
+# autoconf
+#
+HOST_OPENOCD_CONF_TOOL	:= autoconf
+HOST_OPENOCD_CONF_ENV	:= \
+		CCACHE=none \
+		LDFLAGS="-L$(PTXDIST_SYSROOT_HOST)/usr/lib" \
+		CFLAGS="-I$(PTXDIST_SYSROOT_HOST)/usr/include"
+HOST_OPENOCD_CONF_OPT	:= \
+		$(HOST_AUTOCONF) \
+		--enable-shared \
+		--disable-static \
+		--disable-werror \
+		--disable-internal-jimtcl \
+		--disable-internal-libjaylink \
+		--enable-dummy \
+		--enable-ftdi \
+		--enable-stlink \
+		--disable-ti-icdi \
+		--disable-ulink \
+		--disable-usb-blaster-2 \
+		--disable-ft232r \
+		--disable-vsllink \
+		--disable-xds110 \
+		--disable-osbdm \
+		--disable-opendous \
+		--disable-aice \
+		--disable-usbprog \
+		--disable-rlink \
+		--disable-armjtagew \
+		--disable-cmsis-dap \
+		--disable-kitprog \
+		--disable-usb_blaster \
+		--disable-presto\
+		--disable-openjtag \
+		--disable-jlink \
+		--disable-parport \
+		--disable-parport-ppdev \
+		--disable-parport-giveio \
+		--disable-jtag_vpi \
+		--disable-amtjtagaccel \
+		--disable-zy1000 \
+		--disable-zy1000-master \
+		--disable-ioutil \
+		--disable-ep93xx \
+		--disable-at91rm9200 \
+		--disable-bcm2835gpio \
+		--disable-imx_gpio \
+		--disable-gw16012 \
+		--disable-oocd_trace \
+		--disable-buspirate \
+		--disable-sysfsgpio \
+		--disable-minidriver-dummy \
+		--disable-target-64 \
+		--disable-remote-bitbang \
+		--disable-doxygen-pdf \
+		--disable-doxygen-html
+
+# vim: syntax=make
-- 
2.20.1


_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de

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

* Re: [ptxdist] [PATCH 2/2] host-openocd: add initial support
  2019-06-06 22:19 ` [ptxdist] [PATCH 2/2] host-openocd: add initial support Michael Grzeschik
@ 2019-06-14  7:18   ` Michael Olbrich
  2019-06-14  9:15     ` Michael Grzeschik
  0 siblings, 1 reply; 10+ messages in thread
From: Michael Olbrich @ 2019-06-14  7:18 UTC (permalink / raw)
  To: ptxdist

On Fri, Jun 07, 2019 at 12:19:49AM +0200, Michael Grzeschik wrote:
> Signed-off-by: Michael Grzeschik <m.grzeschik@pengutronix.de>
> ---
>  patches/openocd-af952850/autogen.sh |  3 +
>  rules/host-openocd.in               | 12 ++++
>  rules/host-openocd.make             | 89 +++++++++++++++++++++++++++++
>  3 files changed, 104 insertions(+)
>  create mode 100755 patches/openocd-af952850/autogen.sh
>  create mode 100644 rules/host-openocd.in
>  create mode 100644 rules/host-openocd.make
> 
> diff --git a/patches/openocd-af952850/autogen.sh b/patches/openocd-af952850/autogen.sh
> new file mode 100755
> index 000000000..7d344d32f
> --- /dev/null
> +++ b/patches/openocd-af952850/autogen.sh
> @@ -0,0 +1,3 @@
> +#!/bin/bash
> +
> +exec ./bootstrap
> diff --git a/rules/host-openocd.in b/rules/host-openocd.in
> new file mode 100644
> index 000000000..8c863598e
> --- /dev/null
> +++ b/rules/host-openocd.in
> @@ -0,0 +1,12 @@
> +## SECTION=hosttools
> +
> +menuconfig HOST_OPENOCD
> +	tristate
> +	prompt "openocd"
> +	select HOST_LIBUSB
> +	select HOST_JIMTCL
> +	select HOST_LIBFTDI1
> +	help
> +	  The "Open On-Chip Debugger" provides JTAG/SWD access from GDB
> +	  (or directly with TCL scripts) to processors with ARM and MIPS
> +	  based cores.
> diff --git a/rules/host-openocd.make b/rules/host-openocd.make
> new file mode 100644
> index 000000000..8a741856e
> --- /dev/null
> +++ b/rules/host-openocd.make
> @@ -0,0 +1,89 @@
> +# -*-makefile-*-
> +#
> +# Copyright (C) 2013 by Michael Grzeschik <mgr@pengutronix.de>
> +#
> +# See CREDITS for details about who has contributed to this project.
> +#
> +# For further information about the PTXdist project and license conditions
> +# see the README file.
> +#
> +
> +#
> +# We provide this package
> +#
> +HOST_PACKAGES-$(PTXCONF_HOST_OPENOCD) += host-openocd
> +
> +#
> +# Paths and names
> +#
> +HOST_OPENOCD_VERSION	:= af952850
> +HOST_OPENOCD_MD5	:= fa6841d4e4e76d1626406a99d5b1851d
> +HOST_OPENOCD		:= openocd-$(HOST_OPENOCD_VERSION)
> +HOST_OPENOCD_SUFFIX	:= tar.bz2
> +HOST_OPENOCD_URL	:= git://git.code.sf.net/p/openocd/code;tag=$(HOST_OPENOCD_VERSION)
> +HOST_OPENOCD_SOURCE	:= $(SRCDIR)/$(HOST_OPENOCD).$(HOST_OPENOCD_SUFFIX)
> +HOST_OPENOCD_DIR	:= $(HOST_BUILDDIR)/$(HOST_OPENOCD)
> +
> +# ----------------------------------------------------------------------------
> +# Prepare
> +# ----------------------------------------------------------------------------
> +
> +#
> +# autoconf
> +#
> +HOST_OPENOCD_CONF_TOOL	:= autoconf
> +HOST_OPENOCD_CONF_ENV	:= \
> +		CCACHE=none \

Indent with on tab.

> +		LDFLAGS="-L$(PTXDIST_SYSROOT_HOST)/usr/lib" \
> +		CFLAGS="-I$(PTXDIST_SYSROOT_HOST)/usr/include"

The flags should be added via HOST_OPENOCD_LDFLAGS / HOST_OPENOCD_CPPFLAGS.
However, why do you need sysroot-host/usr/...? These directories should be
empty.

> +HOST_OPENOCD_CONF_OPT	:= \
> +		$(HOST_AUTOCONF) \

One tab.

Michael

> +		--enable-shared \
> +		--disable-static \
> +		--disable-werror \
> +		--disable-internal-jimtcl \
> +		--disable-internal-libjaylink \
> +		--enable-dummy \
> +		--enable-ftdi \
> +		--enable-stlink \
> +		--disable-ti-icdi \
> +		--disable-ulink \
> +		--disable-usb-blaster-2 \
> +		--disable-ft232r \
> +		--disable-vsllink \
> +		--disable-xds110 \
> +		--disable-osbdm \
> +		--disable-opendous \
> +		--disable-aice \
> +		--disable-usbprog \
> +		--disable-rlink \
> +		--disable-armjtagew \
> +		--disable-cmsis-dap \
> +		--disable-kitprog \
> +		--disable-usb_blaster \
> +		--disable-presto\
> +		--disable-openjtag \
> +		--disable-jlink \
> +		--disable-parport \
> +		--disable-parport-ppdev \
> +		--disable-parport-giveio \
> +		--disable-jtag_vpi \
> +		--disable-amtjtagaccel \
> +		--disable-zy1000 \
> +		--disable-zy1000-master \
> +		--disable-ioutil \
> +		--disable-ep93xx \
> +		--disable-at91rm9200 \
> +		--disable-bcm2835gpio \
> +		--disable-imx_gpio \
> +		--disable-gw16012 \
> +		--disable-oocd_trace \
> +		--disable-buspirate \
> +		--disable-sysfsgpio \
> +		--disable-minidriver-dummy \
> +		--disable-target-64 \
> +		--disable-remote-bitbang \
> +		--disable-doxygen-pdf \
> +		--disable-doxygen-html
> +
> +# vim: syntax=make
> -- 
> 2.20.1
> 
> 
> _______________________________________________
> ptxdist mailing list
> ptxdist@pengutronix.de

-- 
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de

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

* Re: [ptxdist] [PATCH 2/2] host-openocd: add initial support
  2019-06-14  7:18   ` Michael Olbrich
@ 2019-06-14  9:15     ` Michael Grzeschik
  2019-06-14  9:41       ` Michael Olbrich
  0 siblings, 1 reply; 10+ messages in thread
From: Michael Grzeschik @ 2019-06-14  9:15 UTC (permalink / raw)
  To: ptxdist


[-- Attachment #1.1: Type: text/plain, Size: 5828 bytes --]

On Fri, Jun 14, 2019 at 09:18:23AM +0200, Michael Olbrich wrote:
> On Fri, Jun 07, 2019 at 12:19:49AM +0200, Michael Grzeschik wrote:
> > Signed-off-by: Michael Grzeschik <m.grzeschik@pengutronix.de>
> > ---
> >  patches/openocd-af952850/autogen.sh |  3 +
> >  rules/host-openocd.in               | 12 ++++
> >  rules/host-openocd.make             | 89 +++++++++++++++++++++++++++++
> >  3 files changed, 104 insertions(+)
> >  create mode 100755 patches/openocd-af952850/autogen.sh
> >  create mode 100644 rules/host-openocd.in
> >  create mode 100644 rules/host-openocd.make
> > 
> > diff --git a/patches/openocd-af952850/autogen.sh b/patches/openocd-af952850/autogen.sh
> > new file mode 100755
> > index 000000000..7d344d32f
> > --- /dev/null
> > +++ b/patches/openocd-af952850/autogen.sh
> > @@ -0,0 +1,3 @@
> > +#!/bin/bash
> > +
> > +exec ./bootstrap
> > diff --git a/rules/host-openocd.in b/rules/host-openocd.in
> > new file mode 100644
> > index 000000000..8c863598e
> > --- /dev/null
> > +++ b/rules/host-openocd.in
> > @@ -0,0 +1,12 @@
> > +## SECTION=hosttools
> > +
> > +menuconfig HOST_OPENOCD
> > +	tristate
> > +	prompt "openocd"
> > +	select HOST_LIBUSB
> > +	select HOST_JIMTCL
> > +	select HOST_LIBFTDI1
> > +	help
> > +	  The "Open On-Chip Debugger" provides JTAG/SWD access from GDB
> > +	  (or directly with TCL scripts) to processors with ARM and MIPS
> > +	  based cores.
> > diff --git a/rules/host-openocd.make b/rules/host-openocd.make
> > new file mode 100644
> > index 000000000..8a741856e
> > --- /dev/null
> > +++ b/rules/host-openocd.make
> > @@ -0,0 +1,89 @@
> > +# -*-makefile-*-
> > +#
> > +# Copyright (C) 2013 by Michael Grzeschik <mgr@pengutronix.de>
> > +#
> > +# See CREDITS for details about who has contributed to this project.
> > +#
> > +# For further information about the PTXdist project and license conditions
> > +# see the README file.
> > +#
> > +
> > +#
> > +# We provide this package
> > +#
> > +HOST_PACKAGES-$(PTXCONF_HOST_OPENOCD) += host-openocd
> > +
> > +#
> > +# Paths and names
> > +#
> > +HOST_OPENOCD_VERSION	:= af952850
> > +HOST_OPENOCD_MD5	:= fa6841d4e4e76d1626406a99d5b1851d
> > +HOST_OPENOCD		:= openocd-$(HOST_OPENOCD_VERSION)
> > +HOST_OPENOCD_SUFFIX	:= tar.bz2
> > +HOST_OPENOCD_URL	:= git://git.code.sf.net/p/openocd/code;tag=$(HOST_OPENOCD_VERSION)
> > +HOST_OPENOCD_SOURCE	:= $(SRCDIR)/$(HOST_OPENOCD).$(HOST_OPENOCD_SUFFIX)
> > +HOST_OPENOCD_DIR	:= $(HOST_BUILDDIR)/$(HOST_OPENOCD)
> > +
> > +# ----------------------------------------------------------------------------
> > +# Prepare
> > +# ----------------------------------------------------------------------------
> > +
> > +#
> > +# autoconf
> > +#
> > +HOST_OPENOCD_CONF_TOOL	:= autoconf
> > +HOST_OPENOCD_CONF_ENV	:= \
> > +		CCACHE=none \
> 
> Indent with on tab.

Right, will fix.
> 
> > +		LDFLAGS="-L$(PTXDIST_SYSROOT_HOST)/usr/lib" \
> > +		CFLAGS="-I$(PTXDIST_SYSROOT_HOST)/usr/include"
> 
> The flags should be added via HOST_OPENOCD_LDFLAGS / HOST_OPENOCD_CPPFLAGS.
> However, why do you need sysroot-host/usr/...? These directories should be
> empty.

Why should they be empty? Aren't there all host packages installed? This
is needed because otherwise openocd won't find libjim and headers to
compile and link against. I did not see any other way, then setting
these variables.

> 
> > +HOST_OPENOCD_CONF_OPT	:= \
> > +		$(HOST_AUTOCONF) \
> 
> One tab.

will fix

> Michael
> 
> > +		--enable-shared \
> > +		--disable-static \
> > +		--disable-werror \
> > +		--disable-internal-jimtcl \
> > +		--disable-internal-libjaylink \
> > +		--enable-dummy \
> > +		--enable-ftdi \
> > +		--enable-stlink \
> > +		--disable-ti-icdi \
> > +		--disable-ulink \
> > +		--disable-usb-blaster-2 \
> > +		--disable-ft232r \
> > +		--disable-vsllink \
> > +		--disable-xds110 \
> > +		--disable-osbdm \
> > +		--disable-opendous \
> > +		--disable-aice \
> > +		--disable-usbprog \
> > +		--disable-rlink \
> > +		--disable-armjtagew \
> > +		--disable-cmsis-dap \
> > +		--disable-kitprog \
> > +		--disable-usb_blaster \
> > +		--disable-presto\
> > +		--disable-openjtag \
> > +		--disable-jlink \
> > +		--disable-parport \
> > +		--disable-parport-ppdev \
> > +		--disable-parport-giveio \
> > +		--disable-jtag_vpi \
> > +		--disable-amtjtagaccel \
> > +		--disable-zy1000 \
> > +		--disable-zy1000-master \
> > +		--disable-ioutil \
> > +		--disable-ep93xx \
> > +		--disable-at91rm9200 \
> > +		--disable-bcm2835gpio \
> > +		--disable-imx_gpio \
> > +		--disable-gw16012 \
> > +		--disable-oocd_trace \
> > +		--disable-buspirate \
> > +		--disable-sysfsgpio \
> > +		--disable-minidriver-dummy \
> > +		--disable-target-64 \
> > +		--disable-remote-bitbang \
> > +		--disable-doxygen-pdf \
> > +		--disable-doxygen-html
> > +
> > +# vim: syntax=make
> > -- 
> > 2.20.1
> > 
> > 
> > _______________________________________________
> > ptxdist mailing list
> > ptxdist@pengutronix.de
> 
> -- 
> Pengutronix e.K.                           |                             |
> Industrial Linux Solutions                 | http://www.pengutronix.de/  |
> Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
> Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |
> 
> _______________________________________________
> ptxdist mailing list
> ptxdist@pengutronix.de

-- 
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

[-- Attachment #1.2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

[-- Attachment #2: Type: text/plain, Size: 91 bytes --]

_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de

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

* Re: [ptxdist] [PATCH 2/2] host-openocd: add initial support
  2019-06-14  9:15     ` Michael Grzeschik
@ 2019-06-14  9:41       ` Michael Olbrich
  2019-06-17 12:17         ` Michael Olbrich
  0 siblings, 1 reply; 10+ messages in thread
From: Michael Olbrich @ 2019-06-14  9:41 UTC (permalink / raw)
  To: ptxdist

On Fri, Jun 14, 2019 at 11:15:28AM +0200, Michael Grzeschik wrote:
> On Fri, Jun 14, 2019 at 09:18:23AM +0200, Michael Olbrich wrote:
> > On Fri, Jun 07, 2019 at 12:19:49AM +0200, Michael Grzeschik wrote:
> > > Signed-off-by: Michael Grzeschik <m.grzeschik@pengutronix.de>
> > > ---
> > >  patches/openocd-af952850/autogen.sh |  3 +
> > >  rules/host-openocd.in               | 12 ++++
> > >  rules/host-openocd.make             | 89 +++++++++++++++++++++++++++++
> > >  3 files changed, 104 insertions(+)
> > >  create mode 100755 patches/openocd-af952850/autogen.sh
> > >  create mode 100644 rules/host-openocd.in
> > >  create mode 100644 rules/host-openocd.make
> > > 
> > > diff --git a/patches/openocd-af952850/autogen.sh b/patches/openocd-af952850/autogen.sh
> > > new file mode 100755
> > > index 000000000..7d344d32f
> > > --- /dev/null
> > > +++ b/patches/openocd-af952850/autogen.sh
> > > @@ -0,0 +1,3 @@
> > > +#!/bin/bash
> > > +
> > > +exec ./bootstrap
> > > diff --git a/rules/host-openocd.in b/rules/host-openocd.in
> > > new file mode 100644
> > > index 000000000..8c863598e
> > > --- /dev/null
> > > +++ b/rules/host-openocd.in
> > > @@ -0,0 +1,12 @@
> > > +## SECTION=hosttools
> > > +
> > > +menuconfig HOST_OPENOCD
> > > +	tristate
> > > +	prompt "openocd"
> > > +	select HOST_LIBUSB
> > > +	select HOST_JIMTCL
> > > +	select HOST_LIBFTDI1
> > > +	help
> > > +	  The "Open On-Chip Debugger" provides JTAG/SWD access from GDB
> > > +	  (or directly with TCL scripts) to processors with ARM and MIPS
> > > +	  based cores.
> > > diff --git a/rules/host-openocd.make b/rules/host-openocd.make
> > > new file mode 100644
> > > index 000000000..8a741856e
> > > --- /dev/null
> > > +++ b/rules/host-openocd.make
> > > @@ -0,0 +1,89 @@
> > > +# -*-makefile-*-
> > > +#
> > > +# Copyright (C) 2013 by Michael Grzeschik <mgr@pengutronix.de>
> > > +#
> > > +# See CREDITS for details about who has contributed to this project.
> > > +#
> > > +# For further information about the PTXdist project and license conditions
> > > +# see the README file.
> > > +#
> > > +
> > > +#
> > > +# We provide this package
> > > +#
> > > +HOST_PACKAGES-$(PTXCONF_HOST_OPENOCD) += host-openocd
> > > +
> > > +#
> > > +# Paths and names
> > > +#
> > > +HOST_OPENOCD_VERSION	:= af952850
> > > +HOST_OPENOCD_MD5	:= fa6841d4e4e76d1626406a99d5b1851d
> > > +HOST_OPENOCD		:= openocd-$(HOST_OPENOCD_VERSION)
> > > +HOST_OPENOCD_SUFFIX	:= tar.bz2
> > > +HOST_OPENOCD_URL	:= git://git.code.sf.net/p/openocd/code;tag=$(HOST_OPENOCD_VERSION)
> > > +HOST_OPENOCD_SOURCE	:= $(SRCDIR)/$(HOST_OPENOCD).$(HOST_OPENOCD_SUFFIX)
> > > +HOST_OPENOCD_DIR	:= $(HOST_BUILDDIR)/$(HOST_OPENOCD)
> > > +
> > > +# ----------------------------------------------------------------------------
> > > +# Prepare
> > > +# ----------------------------------------------------------------------------
> > > +
> > > +#
> > > +# autoconf
> > > +#
> > > +HOST_OPENOCD_CONF_TOOL	:= autoconf
> > > +HOST_OPENOCD_CONF_ENV	:= \
> > > +		CCACHE=none \
> > 
> > Indent with on tab.
> 
> Right, will fix.
> > 
> > > +		LDFLAGS="-L$(PTXDIST_SYSROOT_HOST)/usr/lib" \
> > > +		CFLAGS="-I$(PTXDIST_SYSROOT_HOST)/usr/include"
> > 
> > The flags should be added via HOST_OPENOCD_LDFLAGS / HOST_OPENOCD_CPPFLAGS.
> > However, why do you need sysroot-host/usr/...? These directories should be
> > empty.
> 
> Why should they be empty? Aren't there all host packages installed? This
> is needed because otherwise openocd won't find libjim and headers to
> compile and link against. I did not see any other way, then setting
> these variables.

It should be (PTXDIST_SYSROOT_HOST)/lib (without /usr). I think host-jimtcl
needs to be fixed. I'm not sure why the prefix is /usr there. I'll run a
build-test to see if it works without /.

Michael

> > 
> > > +HOST_OPENOCD_CONF_OPT	:= \
> > > +		$(HOST_AUTOCONF) \
> > 
> > One tab.
> 
> will fix
> 
> > Michael
> > 
> > > +		--enable-shared \
> > > +		--disable-static \
> > > +		--disable-werror \
> > > +		--disable-internal-jimtcl \
> > > +		--disable-internal-libjaylink \
> > > +		--enable-dummy \
> > > +		--enable-ftdi \
> > > +		--enable-stlink \
> > > +		--disable-ti-icdi \
> > > +		--disable-ulink \
> > > +		--disable-usb-blaster-2 \
> > > +		--disable-ft232r \
> > > +		--disable-vsllink \
> > > +		--disable-xds110 \
> > > +		--disable-osbdm \
> > > +		--disable-opendous \
> > > +		--disable-aice \
> > > +		--disable-usbprog \
> > > +		--disable-rlink \
> > > +		--disable-armjtagew \
> > > +		--disable-cmsis-dap \
> > > +		--disable-kitprog \
> > > +		--disable-usb_blaster \
> > > +		--disable-presto\
> > > +		--disable-openjtag \
> > > +		--disable-jlink \
> > > +		--disable-parport \
> > > +		--disable-parport-ppdev \
> > > +		--disable-parport-giveio \
> > > +		--disable-jtag_vpi \
> > > +		--disable-amtjtagaccel \
> > > +		--disable-zy1000 \
> > > +		--disable-zy1000-master \
> > > +		--disable-ioutil \
> > > +		--disable-ep93xx \
> > > +		--disable-at91rm9200 \
> > > +		--disable-bcm2835gpio \
> > > +		--disable-imx_gpio \
> > > +		--disable-gw16012 \
> > > +		--disable-oocd_trace \
> > > +		--disable-buspirate \
> > > +		--disable-sysfsgpio \
> > > +		--disable-minidriver-dummy \
> > > +		--disable-target-64 \
> > > +		--disable-remote-bitbang \
> > > +		--disable-doxygen-pdf \
> > > +		--disable-doxygen-html
> > > +
> > > +# vim: syntax=make
> > > -- 
> > > 2.20.1
> > > 
> > > 
> > > _______________________________________________
> > > ptxdist mailing list
> > > ptxdist@pengutronix.de
> > 
> > -- 
> > Pengutronix e.K.                           |                             |
> > Industrial Linux Solutions                 | http://www.pengutronix.de/  |
> > Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
> > Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |
> > 
> > _______________________________________________
> > ptxdist mailing list
> > ptxdist@pengutronix.de
> 
> -- 
> Pengutronix e.K.                           |                             |
> Industrial Linux Solutions                 | http://www.pengutronix.de/  |
> Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
> Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |



> _______________________________________________
> ptxdist mailing list
> ptxdist@pengutronix.de


-- 
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de

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

* Re: [ptxdist] [PATCH 2/2] host-openocd: add initial support
  2019-06-14  9:41       ` Michael Olbrich
@ 2019-06-17 12:17         ` Michael Olbrich
  2019-06-17 13:23           ` [ptxdist] [PATCH v2] " Michael Grzeschik
  0 siblings, 1 reply; 10+ messages in thread
From: Michael Olbrich @ 2019-06-17 12:17 UTC (permalink / raw)
  To: ptxdist

On Fri, Jun 14, 2019 at 11:41:34AM +0200, Michael Olbrich wrote:
> On Fri, Jun 14, 2019 at 11:15:28AM +0200, Michael Grzeschik wrote:
> > On Fri, Jun 14, 2019 at 09:18:23AM +0200, Michael Olbrich wrote:
> > > On Fri, Jun 07, 2019 at 12:19:49AM +0200, Michael Grzeschik wrote:
> > > > Signed-off-by: Michael Grzeschik <m.grzeschik@pengutronix.de>
> > > > ---
> > > >  patches/openocd-af952850/autogen.sh |  3 +
> > > >  rules/host-openocd.in               | 12 ++++
> > > >  rules/host-openocd.make             | 89 +++++++++++++++++++++++++++++
> > > >  3 files changed, 104 insertions(+)
> > > >  create mode 100755 patches/openocd-af952850/autogen.sh
> > > >  create mode 100644 rules/host-openocd.in
> > > >  create mode 100644 rules/host-openocd.make
> > > > 
> > > > diff --git a/patches/openocd-af952850/autogen.sh b/patches/openocd-af952850/autogen.sh
> > > > new file mode 100755
> > > > index 000000000..7d344d32f
> > > > --- /dev/null
> > > > +++ b/patches/openocd-af952850/autogen.sh
> > > > @@ -0,0 +1,3 @@
> > > > +#!/bin/bash
> > > > +
> > > > +exec ./bootstrap
> > > > diff --git a/rules/host-openocd.in b/rules/host-openocd.in
> > > > new file mode 100644
> > > > index 000000000..8c863598e
> > > > --- /dev/null
> > > > +++ b/rules/host-openocd.in
> > > > @@ -0,0 +1,12 @@
> > > > +## SECTION=hosttools
> > > > +
> > > > +menuconfig HOST_OPENOCD
> > > > +	tristate
> > > > +	prompt "openocd"
> > > > +	select HOST_LIBUSB
> > > > +	select HOST_JIMTCL
> > > > +	select HOST_LIBFTDI1
> > > > +	help
> > > > +	  The "Open On-Chip Debugger" provides JTAG/SWD access from GDB
> > > > +	  (or directly with TCL scripts) to processors with ARM and MIPS
> > > > +	  based cores.
> > > > diff --git a/rules/host-openocd.make b/rules/host-openocd.make
> > > > new file mode 100644
> > > > index 000000000..8a741856e
> > > > --- /dev/null
> > > > +++ b/rules/host-openocd.make
> > > > @@ -0,0 +1,89 @@
> > > > +# -*-makefile-*-
> > > > +#
> > > > +# Copyright (C) 2013 by Michael Grzeschik <mgr@pengutronix.de>
> > > > +#
> > > > +# See CREDITS for details about who has contributed to this project.
> > > > +#
> > > > +# For further information about the PTXdist project and license conditions
> > > > +# see the README file.
> > > > +#
> > > > +
> > > > +#
> > > > +# We provide this package
> > > > +#
> > > > +HOST_PACKAGES-$(PTXCONF_HOST_OPENOCD) += host-openocd
> > > > +
> > > > +#
> > > > +# Paths and names
> > > > +#
> > > > +HOST_OPENOCD_VERSION	:= af952850
> > > > +HOST_OPENOCD_MD5	:= fa6841d4e4e76d1626406a99d5b1851d
> > > > +HOST_OPENOCD		:= openocd-$(HOST_OPENOCD_VERSION)
> > > > +HOST_OPENOCD_SUFFIX	:= tar.bz2
> > > > +HOST_OPENOCD_URL	:= git://git.code.sf.net/p/openocd/code;tag=$(HOST_OPENOCD_VERSION)
> > > > +HOST_OPENOCD_SOURCE	:= $(SRCDIR)/$(HOST_OPENOCD).$(HOST_OPENOCD_SUFFIX)
> > > > +HOST_OPENOCD_DIR	:= $(HOST_BUILDDIR)/$(HOST_OPENOCD)
> > > > +
> > > > +# ----------------------------------------------------------------------------
> > > > +# Prepare
> > > > +# ----------------------------------------------------------------------------
> > > > +
> > > > +#
> > > > +# autoconf
> > > > +#
> > > > +HOST_OPENOCD_CONF_TOOL	:= autoconf
> > > > +HOST_OPENOCD_CONF_ENV	:= \
> > > > +		CCACHE=none \
> > > 
> > > Indent with on tab.
> > 
> > Right, will fix.
> > > 
> > > > +		LDFLAGS="-L$(PTXDIST_SYSROOT_HOST)/usr/lib" \
> > > > +		CFLAGS="-I$(PTXDIST_SYSROOT_HOST)/usr/include"
> > > 
> > > The flags should be added via HOST_OPENOCD_LDFLAGS / HOST_OPENOCD_CPPFLAGS.
> > > However, why do you need sysroot-host/usr/...? These directories should be
> > > empty.
> > 
> > Why should they be empty? Aren't there all host packages installed? This
> > is needed because otherwise openocd won't find libjim and headers to
> > compile and link against. I did not see any other way, then setting
> > these variables.
> 
> It should be (PTXDIST_SYSROOT_HOST)/lib (without /usr). I think host-jimtcl
> needs to be fixed. I'm not sure why the prefix is /usr there. I'll run a
> build-test to see if it works without /.

I've done this in master. I've not seen any issues with it. So the flags
can be removed now.

Michael

> > > 
> > > > +HOST_OPENOCD_CONF_OPT	:= \
> > > > +		$(HOST_AUTOCONF) \
> > > 
> > > One tab.
> > 
> > will fix
> > 
> > > Michael
> > > 
> > > > +		--enable-shared \
> > > > +		--disable-static \
> > > > +		--disable-werror \
> > > > +		--disable-internal-jimtcl \
> > > > +		--disable-internal-libjaylink \
> > > > +		--enable-dummy \
> > > > +		--enable-ftdi \
> > > > +		--enable-stlink \
> > > > +		--disable-ti-icdi \
> > > > +		--disable-ulink \
> > > > +		--disable-usb-blaster-2 \
> > > > +		--disable-ft232r \
> > > > +		--disable-vsllink \
> > > > +		--disable-xds110 \
> > > > +		--disable-osbdm \
> > > > +		--disable-opendous \
> > > > +		--disable-aice \
> > > > +		--disable-usbprog \
> > > > +		--disable-rlink \
> > > > +		--disable-armjtagew \
> > > > +		--disable-cmsis-dap \
> > > > +		--disable-kitprog \
> > > > +		--disable-usb_blaster \
> > > > +		--disable-presto\
> > > > +		--disable-openjtag \
> > > > +		--disable-jlink \
> > > > +		--disable-parport \
> > > > +		--disable-parport-ppdev \
> > > > +		--disable-parport-giveio \
> > > > +		--disable-jtag_vpi \
> > > > +		--disable-amtjtagaccel \
> > > > +		--disable-zy1000 \
> > > > +		--disable-zy1000-master \
> > > > +		--disable-ioutil \
> > > > +		--disable-ep93xx \
> > > > +		--disable-at91rm9200 \
> > > > +		--disable-bcm2835gpio \
> > > > +		--disable-imx_gpio \
> > > > +		--disable-gw16012 \
> > > > +		--disable-oocd_trace \
> > > > +		--disable-buspirate \
> > > > +		--disable-sysfsgpio \
> > > > +		--disable-minidriver-dummy \
> > > > +		--disable-target-64 \
> > > > +		--disable-remote-bitbang \
> > > > +		--disable-doxygen-pdf \
> > > > +		--disable-doxygen-html
> > > > +
> > > > +# vim: syntax=make
> > > > -- 
> > > > 2.20.1
> > > > 
> > > > 
> > > > _______________________________________________
> > > > ptxdist mailing list
> > > > ptxdist@pengutronix.de
> > > 
> > > -- 
> > > Pengutronix e.K.                           |                             |
> > > Industrial Linux Solutions                 | http://www.pengutronix.de/  |
> > > Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
> > > Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |
> > > 
> > > _______________________________________________
> > > ptxdist mailing list
> > > ptxdist@pengutronix.de
> > 
> > -- 
> > Pengutronix e.K.                           |                             |
> > Industrial Linux Solutions                 | http://www.pengutronix.de/  |
> > Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
> > Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |
> 
> 
> 
> > _______________________________________________
> > ptxdist mailing list
> > ptxdist@pengutronix.de
> 
> 
> -- 
> Pengutronix e.K.                           |                             |
> Industrial Linux Solutions                 | http://www.pengutronix.de/  |
> Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
> Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |
> 
> _______________________________________________
> ptxdist mailing list
> ptxdist@pengutronix.de

-- 
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de

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

* [ptxdist] [PATCH v2] host-openocd: add initial support
  2019-06-17 12:17         ` Michael Olbrich
@ 2019-06-17 13:23           ` Michael Grzeschik
  2019-06-17 14:16             ` Roland Hieber
  0 siblings, 1 reply; 10+ messages in thread
From: Michael Grzeschik @ 2019-06-17 13:23 UTC (permalink / raw)
  To: ptxdist

Signed-off-by: Michael Grzeschik <m.grzeschik@pengutronix.de>
---
v1 -> v2: - fixed indentation
          - removed buildflags

 patches/openocd-af952850/autogen.sh |  3 +
 rules/host-openocd.in               | 12 ++++
 rules/host-openocd.make             | 87 +++++++++++++++++++++++++++++
 3 files changed, 102 insertions(+)
 create mode 100755 patches/openocd-af952850/autogen.sh
 create mode 100644 rules/host-openocd.in
 create mode 100644 rules/host-openocd.make

diff --git a/patches/openocd-af952850/autogen.sh b/patches/openocd-af952850/autogen.sh
new file mode 100755
index 000000000..7d344d32f
--- /dev/null
+++ b/patches/openocd-af952850/autogen.sh
@@ -0,0 +1,3 @@
+#!/bin/bash
+
+exec ./bootstrap
diff --git a/rules/host-openocd.in b/rules/host-openocd.in
new file mode 100644
index 000000000..8c863598e
--- /dev/null
+++ b/rules/host-openocd.in
@@ -0,0 +1,12 @@
+## SECTION=hosttools
+
+menuconfig HOST_OPENOCD
+	tristate
+	prompt "openocd"
+	select HOST_LIBUSB
+	select HOST_JIMTCL
+	select HOST_LIBFTDI1
+	help
+	  The "Open On-Chip Debugger" provides JTAG/SWD access from GDB
+	  (or directly with TCL scripts) to processors with ARM and MIPS
+	  based cores.
diff --git a/rules/host-openocd.make b/rules/host-openocd.make
new file mode 100644
index 000000000..10ac4d12b
--- /dev/null
+++ b/rules/host-openocd.make
@@ -0,0 +1,87 @@
+# -*-makefile-*-
+#
+# Copyright (C) 2013 by Michael Grzeschik <mgr@pengutronix.de>
+#
+# See CREDITS for details about who has contributed to this project.
+#
+# For further information about the PTXdist project and license conditions
+# see the README file.
+#
+
+#
+# We provide this package
+#
+HOST_PACKAGES-$(PTXCONF_HOST_OPENOCD) += host-openocd
+
+#
+# Paths and names
+#
+HOST_OPENOCD_VERSION	:= af952850
+HOST_OPENOCD_MD5	:= fa6841d4e4e76d1626406a99d5b1851d
+HOST_OPENOCD		:= openocd-$(HOST_OPENOCD_VERSION)
+HOST_OPENOCD_SUFFIX	:= tar.bz2
+HOST_OPENOCD_URL	:= git://git.code.sf.net/p/openocd/code;tag=$(HOST_OPENOCD_VERSION)
+HOST_OPENOCD_SOURCE	:= $(SRCDIR)/$(HOST_OPENOCD).$(HOST_OPENOCD_SUFFIX)
+HOST_OPENOCD_DIR	:= $(HOST_BUILDDIR)/$(HOST_OPENOCD)
+
+# ----------------------------------------------------------------------------
+# Prepare
+# ----------------------------------------------------------------------------
+
+#
+# autoconf
+#
+HOST_OPENOCD_CONF_TOOL	:= autoconf
+HOST_OPENOCD_CONF_ENV	:= \
+	CCACHE=none
+HOST_OPENOCD_CONF_OPT	:= \
+	$(HOST_AUTOCONF) \
+	--enable-shared \
+	--disable-static \
+	--disable-werror \
+	--disable-internal-jimtcl \
+	--disable-internal-libjaylink \
+	--enable-dummy \
+	--enable-ftdi \
+	--enable-stlink \
+	--disable-ti-icdi \
+	--disable-ulink \
+	--disable-usb-blaster-2 \
+	--disable-ft232r \
+	--disable-vsllink \
+	--disable-xds110 \
+	--disable-osbdm \
+	--disable-opendous \
+	--disable-aice \
+	--disable-usbprog \
+	--disable-rlink \
+	--disable-armjtagew \
+	--disable-cmsis-dap \
+	--disable-kitprog \
+	--disable-usb_blaster \
+	--disable-presto\
+	--disable-openjtag \
+	--disable-jlink \
+	--disable-parport \
+	--disable-parport-ppdev \
+	--disable-parport-giveio \
+	--disable-jtag_vpi \
+	--disable-amtjtagaccel \
+	--disable-zy1000 \
+	--disable-zy1000-master \
+	--disable-ioutil \
+	--disable-ep93xx \
+	--disable-at91rm9200 \
+	--disable-bcm2835gpio \
+	--disable-imx_gpio \
+	--disable-gw16012 \
+	--disable-oocd_trace \
+	--disable-buspirate \
+	--disable-sysfsgpio \
+	--disable-minidriver-dummy \
+	--disable-target-64 \
+	--disable-remote-bitbang \
+	--disable-doxygen-pdf \
+	--disable-doxygen-html
+
+# vim: syntax=make
-- 
2.20.1


_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de

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

* Re: [ptxdist] [PATCH v2] host-openocd: add initial support
  2019-06-17 13:23           ` [ptxdist] [PATCH v2] " Michael Grzeschik
@ 2019-06-17 14:16             ` Roland Hieber
  2019-06-18 11:28               ` [ptxdist] [PATCH v3] " Michael Grzeschik
  0 siblings, 1 reply; 10+ messages in thread
From: Roland Hieber @ 2019-06-17 14:16 UTC (permalink / raw)
  To: Michael Grzeschik; +Cc: ptxdist

On Mon, Jun 17, 2019 at 03:23:12PM +0200, Michael Grzeschik wrote:
> Signed-off-by: Michael Grzeschik <m.grzeschik@pengutronix.de>
> ---
> v1 -> v2: - fixed indentation
>           - removed buildflags
> 
>  patches/openocd-af952850/autogen.sh |  3 +
>  rules/host-openocd.in               | 12 ++++
>  rules/host-openocd.make             | 87 +++++++++++++++++++++++++++++
>  3 files changed, 102 insertions(+)
>  create mode 100755 patches/openocd-af952850/autogen.sh
>  create mode 100644 rules/host-openocd.in
>  create mode 100644 rules/host-openocd.make
> 
> diff --git a/patches/openocd-af952850/autogen.sh b/patches/openocd-af952850/autogen.sh
> new file mode 100755
> index 000000000..7d344d32f
> --- /dev/null
> +++ b/patches/openocd-af952850/autogen.sh
> @@ -0,0 +1,3 @@
> +#!/bin/bash
> +
> +exec ./bootstrap
> diff --git a/rules/host-openocd.in b/rules/host-openocd.in
> new file mode 100644
> index 000000000..8c863598e
> --- /dev/null
> +++ b/rules/host-openocd.in
> @@ -0,0 +1,12 @@
> +## SECTION=hosttools
> +
> +menuconfig HOST_OPENOCD
> +	tristate
> +	prompt "openocd"
> +	select HOST_LIBUSB
> +	select HOST_JIMTCL
> +	select HOST_LIBFTDI1
> +	help
> +	  The "Open On-Chip Debugger" provides JTAG/SWD access from GDB
> +	  (or directly with TCL scripts) to processors with ARM and MIPS
> +	  based cores.
> diff --git a/rules/host-openocd.make b/rules/host-openocd.make
> new file mode 100644
> index 000000000..10ac4d12b
> --- /dev/null
> +++ b/rules/host-openocd.make
> @@ -0,0 +1,87 @@
> +# -*-makefile-*-
> +#
> +# Copyright (C) 2013 by Michael Grzeschik <mgr@pengutronix.de>
> +#
> +# See CREDITS for details about who has contributed to this project.
> +#
> +# For further information about the PTXdist project and license conditions
> +# see the README file.
> +#
> +
> +#
> +# We provide this package
> +#
> +HOST_PACKAGES-$(PTXCONF_HOST_OPENOCD) += host-openocd
> +
> +#
> +# Paths and names
> +#
> +HOST_OPENOCD_VERSION	:= af952850
> +HOST_OPENOCD_MD5	:= fa6841d4e4e76d1626406a99d5b1851d
> +HOST_OPENOCD		:= openocd-$(HOST_OPENOCD_VERSION)
> +HOST_OPENOCD_SUFFIX	:= tar.bz2
> +HOST_OPENOCD_URL	:= git://git.code.sf.net/p/openocd/code;tag=$(HOST_OPENOCD_VERSION)

When trying to build this package, SF.net seems horribly slow to me.
Care to use repo.or.cz instead? It is about 4 times faster, and openocd
recommends it as a mirror in their README.

Also it would be nice to have a more descriptive version, so I suggest:

HOST_OPENOCD_VERSION := 0.10.0-870-gaf952850b549
HOST_OPENOCD_URL     := git://repo.or.cz/openocd;tag=v$(HOST_OPENOCD_VERSION)

and to move the patches to the appropriate location too.

 - Roland


> +HOST_OPENOCD_SOURCE	:= $(SRCDIR)/$(HOST_OPENOCD).$(HOST_OPENOCD_SUFFIX)
> +HOST_OPENOCD_DIR	:= $(HOST_BUILDDIR)/$(HOST_OPENOCD)
> +
> +# ----------------------------------------------------------------------------
> +# Prepare
> +# ----------------------------------------------------------------------------
> +
> +#
> +# autoconf
> +#
> +HOST_OPENOCD_CONF_TOOL	:= autoconf
> +HOST_OPENOCD_CONF_ENV	:= \
> +	CCACHE=none
> +HOST_OPENOCD_CONF_OPT	:= \
> +	$(HOST_AUTOCONF) \
> +	--enable-shared \
> +	--disable-static \
> +	--disable-werror \
> +	--disable-internal-jimtcl \
> +	--disable-internal-libjaylink \
> +	--enable-dummy \
> +	--enable-ftdi \
> +	--enable-stlink \
> +	--disable-ti-icdi \
> +	--disable-ulink \
> +	--disable-usb-blaster-2 \
> +	--disable-ft232r \
> +	--disable-vsllink \
> +	--disable-xds110 \
> +	--disable-osbdm \
> +	--disable-opendous \
> +	--disable-aice \
> +	--disable-usbprog \
> +	--disable-rlink \
> +	--disable-armjtagew \
> +	--disable-cmsis-dap \
> +	--disable-kitprog \
> +	--disable-usb_blaster \
> +	--disable-presto\
> +	--disable-openjtag \
> +	--disable-jlink \
> +	--disable-parport \
> +	--disable-parport-ppdev \
> +	--disable-parport-giveio \
> +	--disable-jtag_vpi \
> +	--disable-amtjtagaccel \
> +	--disable-zy1000 \
> +	--disable-zy1000-master \
> +	--disable-ioutil \
> +	--disable-ep93xx \
> +	--disable-at91rm9200 \
> +	--disable-bcm2835gpio \
> +	--disable-imx_gpio \
> +	--disable-gw16012 \
> +	--disable-oocd_trace \
> +	--disable-buspirate \
> +	--disable-sysfsgpio \
> +	--disable-minidriver-dummy \
> +	--disable-target-64 \
> +	--disable-remote-bitbang \
> +	--disable-doxygen-pdf \
> +	--disable-doxygen-html
> +
> +# vim: syntax=make
> -- 
> 2.20.1
> 
> 
> _______________________________________________
> ptxdist mailing list
> ptxdist@pengutronix.de

-- 
Roland Hieber                     | r.hieber@pengutronix.de     |
Pengutronix e.K.                  | https://www.pengutronix.de/ |
Peiner Str. 6-8, 31137 Hildesheim | Phone: +49-5121-206917-5086 |
Amtsgericht Hildesheim, HRA 2686  | Fax:   +49-5121-206917-5555 |

_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de

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

* [ptxdist] [PATCH v3] host-openocd: add initial support
  2019-06-17 14:16             ` Roland Hieber
@ 2019-06-18 11:28               ` Michael Grzeschik
  2019-06-20 10:15                 ` Michael Olbrich
  0 siblings, 1 reply; 10+ messages in thread
From: Michael Grzeschik @ 2019-06-18 11:28 UTC (permalink / raw)
  To: ptxdist

Signed-off-by: Michael Grzeschik <m.grzeschik@pengutronix.de>
---
v1 -> v2: - fixed indentation
	  - removed buildflags

v2 -> v3: - using repo.or.cz instead of sourceforge
          - changed version string to be more descriptive
	  - moved patches to changed version dir

 .../autogen.sh                                |  3 +
 rules/host-openocd.in                         | 12 +++
 rules/host-openocd.make                       | 87 +++++++++++++++++++
 3 files changed, 102 insertions(+)
 create mode 100755 patches/openocd-0.10.0-870-gaf952850b549/autogen.sh
 create mode 100644 rules/host-openocd.in
 create mode 100644 rules/host-openocd.make

diff --git a/patches/openocd-0.10.0-870-gaf952850b549/autogen.sh b/patches/openocd-0.10.0-870-gaf952850b549/autogen.sh
new file mode 100755
index 000000000..7d344d32f
--- /dev/null
+++ b/patches/openocd-0.10.0-870-gaf952850b549/autogen.sh
@@ -0,0 +1,3 @@
+#!/bin/bash
+
+exec ./bootstrap
diff --git a/rules/host-openocd.in b/rules/host-openocd.in
new file mode 100644
index 000000000..8c863598e
--- /dev/null
+++ b/rules/host-openocd.in
@@ -0,0 +1,12 @@
+## SECTION=hosttools
+
+menuconfig HOST_OPENOCD
+	tristate
+	prompt "openocd"
+	select HOST_LIBUSB
+	select HOST_JIMTCL
+	select HOST_LIBFTDI1
+	help
+	  The "Open On-Chip Debugger" provides JTAG/SWD access from GDB
+	  (or directly with TCL scripts) to processors with ARM and MIPS
+	  based cores.
diff --git a/rules/host-openocd.make b/rules/host-openocd.make
new file mode 100644
index 000000000..59b4720a3
--- /dev/null
+++ b/rules/host-openocd.make
@@ -0,0 +1,87 @@
+# -*-makefile-*-
+#
+# Copyright (C) 2013 by Michael Grzeschik <mgr@pengutronix.de>
+#
+# See CREDITS for details about who has contributed to this project.
+#
+# For further information about the PTXdist project and license conditions
+# see the README file.
+#
+
+#
+# We provide this package
+#
+HOST_PACKAGES-$(PTXCONF_HOST_OPENOCD) += host-openocd
+
+#
+# Paths and names
+#
+HOST_OPENOCD_VERSION	:= 0.10.0-870-gaf952850b549
+HOST_OPENOCD_MD5	:= 868283eb1622af03f772495c6fcffa82
+HOST_OPENOCD		:= openocd-$(HOST_OPENOCD_VERSION)
+HOST_OPENOCD_SUFFIX	:= tar.bz2
+HOST_OPENOCD_URL	:= git://repo.or.cz/openocd;tag=v$(HOST_OPENOCD_VERSION)
+HOST_OPENOCD_SOURCE	:= $(SRCDIR)/$(HOST_OPENOCD).$(HOST_OPENOCD_SUFFIX)
+HOST_OPENOCD_DIR	:= $(HOST_BUILDDIR)/$(HOST_OPENOCD)
+
+# ----------------------------------------------------------------------------
+# Prepare
+# ----------------------------------------------------------------------------
+
+#
+# autoconf
+#
+HOST_OPENOCD_CONF_TOOL	:= autoconf
+HOST_OPENOCD_CONF_ENV	:= \
+	CCACHE=none
+HOST_OPENOCD_CONF_OPT	:= \
+	$(HOST_AUTOCONF) \
+	--enable-shared \
+	--disable-static \
+	--disable-werror \
+	--disable-internal-jimtcl \
+	--disable-internal-libjaylink \
+	--enable-dummy \
+	--enable-ftdi \
+	--enable-stlink \
+	--disable-ti-icdi \
+	--disable-ulink \
+	--disable-usb-blaster-2 \
+	--disable-ft232r \
+	--disable-vsllink \
+	--disable-xds110 \
+	--disable-osbdm \
+	--disable-opendous \
+	--disable-aice \
+	--disable-usbprog \
+	--disable-rlink \
+	--disable-armjtagew \
+	--disable-cmsis-dap \
+	--disable-kitprog \
+	--disable-usb_blaster \
+	--disable-presto\
+	--disable-openjtag \
+	--disable-jlink \
+	--disable-parport \
+	--disable-parport-ppdev \
+	--disable-parport-giveio \
+	--disable-jtag_vpi \
+	--disable-amtjtagaccel \
+	--disable-zy1000 \
+	--disable-zy1000-master \
+	--disable-ioutil \
+	--disable-ep93xx \
+	--disable-at91rm9200 \
+	--disable-bcm2835gpio \
+	--disable-imx_gpio \
+	--disable-gw16012 \
+	--disable-oocd_trace \
+	--disable-buspirate \
+	--disable-sysfsgpio \
+	--disable-minidriver-dummy \
+	--disable-target-64 \
+	--disable-remote-bitbang \
+	--disable-doxygen-pdf \
+	--disable-doxygen-html
+
+# vim: syntax=make
-- 
2.20.1


_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de

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

* Re: [ptxdist] [PATCH v3] host-openocd: add initial support
  2019-06-18 11:28               ` [ptxdist] [PATCH v3] " Michael Grzeschik
@ 2019-06-20 10:15                 ` Michael Olbrich
  0 siblings, 0 replies; 10+ messages in thread
From: Michael Olbrich @ 2019-06-20 10:15 UTC (permalink / raw)
  To: ptxdist

On Tue, Jun 18, 2019 at 01:28:33PM +0200, Michael Grzeschik wrote:
> Signed-off-by: Michael Grzeschik <m.grzeschik@pengutronix.de>
> ---
> v1 -> v2: - fixed indentation
> 	  - removed buildflags
> 
> v2 -> v3: - using repo.or.cz instead of sourceforge
>           - changed version string to be more descriptive
> 	  - moved patches to changed version dir
> 
>  .../autogen.sh                                |  3 +
>  rules/host-openocd.in                         | 12 +++
>  rules/host-openocd.make                       | 87 +++++++++++++++++++
>  3 files changed, 102 insertions(+)
>  create mode 100755 patches/openocd-0.10.0-870-gaf952850b549/autogen.sh
>  create mode 100644 rules/host-openocd.in
>  create mode 100644 rules/host-openocd.make
> 
> diff --git a/patches/openocd-0.10.0-870-gaf952850b549/autogen.sh b/patches/openocd-0.10.0-870-gaf952850b549/autogen.sh
> new file mode 100755
> index 000000000..7d344d32f
> --- /dev/null
> +++ b/patches/openocd-0.10.0-870-gaf952850b549/autogen.sh
> @@ -0,0 +1,3 @@
> +#!/bin/bash
> +
> +exec ./bootstrap
> diff --git a/rules/host-openocd.in b/rules/host-openocd.in
> new file mode 100644
> index 000000000..8c863598e
> --- /dev/null
> +++ b/rules/host-openocd.in
> @@ -0,0 +1,12 @@
> +## SECTION=hosttools
> +
> +menuconfig HOST_OPENOCD
> +	tristate
> +	prompt "openocd"
> +	select HOST_LIBUSB
> +	select HOST_JIMTCL
> +	select HOST_LIBFTDI1
> +	help
> +	  The "Open On-Chip Debugger" provides JTAG/SWD access from GDB
> +	  (or directly with TCL scripts) to processors with ARM and MIPS
> +	  based cores.
> diff --git a/rules/host-openocd.make b/rules/host-openocd.make
> new file mode 100644
> index 000000000..59b4720a3
> --- /dev/null
> +++ b/rules/host-openocd.make
> @@ -0,0 +1,87 @@
> +# -*-makefile-*-
> +#
> +# Copyright (C) 2013 by Michael Grzeschik <mgr@pengutronix.de>
> +#
> +# See CREDITS for details about who has contributed to this project.
> +#
> +# For further information about the PTXdist project and license conditions
> +# see the README file.
> +#
> +
> +#
> +# We provide this package
> +#
> +HOST_PACKAGES-$(PTXCONF_HOST_OPENOCD) += host-openocd
> +
> +#
> +# Paths and names
> +#
> +HOST_OPENOCD_VERSION	:= 0.10.0-870-gaf952850b549
> +HOST_OPENOCD_MD5	:= 868283eb1622af03f772495c6fcffa82
> +HOST_OPENOCD		:= openocd-$(HOST_OPENOCD_VERSION)
> +HOST_OPENOCD_SUFFIX	:= tar.bz2
> +HOST_OPENOCD_URL	:= git://repo.or.cz/openocd;tag=v$(HOST_OPENOCD_VERSION)
> +HOST_OPENOCD_SOURCE	:= $(SRCDIR)/$(HOST_OPENOCD).$(HOST_OPENOCD_SUFFIX)

We already have a openocd target package. The two should share the version.
Please update the version there and remove the stuff above.

Michael

> +HOST_OPENOCD_DIR	:= $(HOST_BUILDDIR)/$(HOST_OPENOCD)
> +
> +# ----------------------------------------------------------------------------
> +# Prepare
> +# ----------------------------------------------------------------------------
> +
> +#
> +# autoconf
> +#
> +HOST_OPENOCD_CONF_TOOL	:= autoconf
> +HOST_OPENOCD_CONF_ENV	:= \
> +	CCACHE=none
> +HOST_OPENOCD_CONF_OPT	:= \
> +	$(HOST_AUTOCONF) \
> +	--enable-shared \
> +	--disable-static \
> +	--disable-werror \
> +	--disable-internal-jimtcl \
> +	--disable-internal-libjaylink \
> +	--enable-dummy \
> +	--enable-ftdi \
> +	--enable-stlink \
> +	--disable-ti-icdi \
> +	--disable-ulink \
> +	--disable-usb-blaster-2 \
> +	--disable-ft232r \
> +	--disable-vsllink \
> +	--disable-xds110 \
> +	--disable-osbdm \
> +	--disable-opendous \
> +	--disable-aice \
> +	--disable-usbprog \
> +	--disable-rlink \
> +	--disable-armjtagew \
> +	--disable-cmsis-dap \
> +	--disable-kitprog \
> +	--disable-usb_blaster \
> +	--disable-presto\
> +	--disable-openjtag \
> +	--disable-jlink \
> +	--disable-parport \
> +	--disable-parport-ppdev \
> +	--disable-parport-giveio \
> +	--disable-jtag_vpi \
> +	--disable-amtjtagaccel \
> +	--disable-zy1000 \
> +	--disable-zy1000-master \
> +	--disable-ioutil \
> +	--disable-ep93xx \
> +	--disable-at91rm9200 \
> +	--disable-bcm2835gpio \
> +	--disable-imx_gpio \
> +	--disable-gw16012 \
> +	--disable-oocd_trace \
> +	--disable-buspirate \
> +	--disable-sysfsgpio \
> +	--disable-minidriver-dummy \
> +	--disable-target-64 \
> +	--disable-remote-bitbang \
> +	--disable-doxygen-pdf \
> +	--disable-doxygen-html
> +
> +# vim: syntax=make
> -- 
> 2.20.1
> 
> 
> _______________________________________________
> ptxdist mailing list
> ptxdist@pengutronix.de

-- 
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de

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

end of thread, other threads:[~2019-06-20 10:15 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-06-06 22:19 [ptxdist] [PATCH 1/2] host-libftdi1: add new package Michael Grzeschik
2019-06-06 22:19 ` [ptxdist] [PATCH 2/2] host-openocd: add initial support Michael Grzeschik
2019-06-14  7:18   ` Michael Olbrich
2019-06-14  9:15     ` Michael Grzeschik
2019-06-14  9:41       ` Michael Olbrich
2019-06-17 12:17         ` Michael Olbrich
2019-06-17 13:23           ` [ptxdist] [PATCH v2] " Michael Grzeschik
2019-06-17 14:16             ` Roland Hieber
2019-06-18 11:28               ` [ptxdist] [PATCH v3] " Michael Grzeschik
2019-06-20 10:15                 ` Michael Olbrich

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox