mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
* [ptxdist] [PATCH] add initial version of host-openocd package
@ 2017-01-17 13:22 fixed-term.Oleksij.Rempel
  2017-01-17 14:56 ` Roland Hieber
  0 siblings, 1 reply; 4+ messages in thread
From: fixed-term.Oleksij.Rempel @ 2017-01-17 13:22 UTC (permalink / raw)
  To: mkl; +Cc: Oleksij Rempel

From: Oleksij Rempel <linux@rempel-privat.de>

openocd 0.10.0-rc2

Signed-off-by: Oleksij Rempel <linux@rempel-privat.de>
---
 rules/host-openocd.in   |  8 ++++++++
 rules/host-openocd.make | 37 +++++++++++++++++++++++++++++++++++++
 2 files changed, 45 insertions(+)
 create mode 100644 rules/host-openocd.in
 create mode 100644 rules/host-openocd.make

diff --git a/rules/host-openocd.in b/rules/host-openocd.in
new file mode 100644
index 0000000..64e50b2
--- /dev/null
+++ b/rules/host-openocd.in
@@ -0,0 +1,8 @@
+## SECTION=hosttools
+
+menuconfig HOST_OPENOCD
+	tristate
+	default ALLYES
+	prompt "host-side openocd             "
+	select HOST_GLIB
+	select HOST_LIBUSB
diff --git a/rules/host-openocd.make b/rules/host-openocd.make
new file mode 100644
index 0000000..ba894ed
--- /dev/null
+++ b/rules/host-openocd.make
@@ -0,0 +1,37 @@
+# -*-makefile-*-
+#
+# Copyright (C) 2016 by Oleksij Rempel <linux@rempel-privat.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-rc2
+HOST_OPENOCD_MD5	:= b5ac2a635e89186779c51a9cbdc01161
+HOST_OPENOCD		:= openocd-$(HOST_OPENOCD_VERSION)
+HOST_OPENOCD_SUFFIX	:= tar.bz2
+HOST_OPENOCD_URL	:= https://downloads.sourceforge.net/project/openocd/openocd/$(HOST_OPENOCD_VERSION)/$(HOST_OPENOCD).$(HOST_OPENOCD_SUFFIX)
+HOST_OPENOCD_SOURCE	:= $(SRCDIR)/$(HOST_OPENOCD).$(HOST_OPENOCD_SUFFIX)
+HOST_OPENOCD_DIR	:= $(HOST_BUILDDIR)/$(HOST_OPENOCD)
+
+# ----------------------------------------------------------------------------
+# Prepare
+# ----------------------------------------------------------------------------
+
+#
+# autoconf
+#
+
+HOST_OPENOCD_CONF_TOOL	:= autoconf
+
+# vim: syntax=make
-- 
1.9.1



_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de

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

* Re: [ptxdist] [PATCH] add initial version of host-openocd package
  2017-01-17 13:22 [ptxdist] [PATCH] add initial version of host-openocd package fixed-term.Oleksij.Rempel
@ 2017-01-17 14:56 ` Roland Hieber
  2017-01-18 21:12   ` Andreas Pretzsch
  0 siblings, 1 reply; 4+ messages in thread
From: Roland Hieber @ 2017-01-17 14:56 UTC (permalink / raw)
  To: ptxdist, Oleksij Rempel; +Cc: mkl

Hi,

On 17.01.2017 14:22, fixed-term.Oleksij.Rempel@de.bosch.com wrote:
> From: Oleksij Rempel <linux@rempel-privat.de>
> 
> openocd 0.10.0-rc2
> 
> Signed-off-by: Oleksij Rempel <linux@rempel-privat.de>
> ---
>  rules/host-openocd.in   |  8 ++++++++
>  rules/host-openocd.make | 37 +++++++++++++++++++++++++++++++++++++
>  2 files changed, 45 insertions(+)
>  create mode 100644 rules/host-openocd.in
>  create mode 100644 rules/host-openocd.make
> 
> diff --git a/rules/host-openocd.in b/rules/host-openocd.in
> new file mode 100644
> index 0000000..64e50b2
> --- /dev/null
> +++ b/rules/host-openocd.in
> @@ -0,0 +1,8 @@
> +## SECTION=hosttools
> +
> +menuconfig HOST_OPENOCD
> +	tristate
> +	default ALLYES
> +	prompt "host-side openocd             "
> +	select HOST_GLIB
> +	select HOST_LIBUSB
> diff --git a/rules/host-openocd.make b/rules/host-openocd.make
> new file mode 100644
> index 0000000..ba894ed
> --- /dev/null
> +++ b/rules/host-openocd.make
> @@ -0,0 +1,37 @@
> +# -*-makefile-*-
> +#
> +# Copyright (C) 2016 by Oleksij Rempel <linux@rempel-privat.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-rc2
> +HOST_OPENOCD_MD5	:= b5ac2a635e89186779c51a9cbdc01161
> +HOST_OPENOCD		:= openocd-$(HOST_OPENOCD_VERSION)
> +HOST_OPENOCD_SUFFIX	:= tar.bz2
> +HOST_OPENOCD_URL	:= https://downloads.sourceforge.net/project/openocd/openocd/$(HOST_OPENOCD_VERSION)/$(HOST_OPENOCD).$(HOST_OPENOCD_SUFFIX)
> +HOST_OPENOCD_SOURCE	:= $(SRCDIR)/$(HOST_OPENOCD).$(HOST_OPENOCD_SUFFIX)
> +HOST_OPENOCD_DIR	:= $(HOST_BUILDDIR)/$(HOST_OPENOCD)
> +
> +# ----------------------------------------------------------------------------
> +# Prepare
> +# ----------------------------------------------------------------------------
> +
> +#
> +# autoconf
> +#
> +
> +HOST_OPENOCD_CONF_TOOL	:= autoconf

Well, that was short and easy :) But I see various enable/disable flags
in the configure help that default to "auto" and are not handled here in
the Makefile. These flags should be included for the build to be
reproducible, or have you checked that they don't depend on the build
order of the system? In any case, it is probably a good idea to include
any configure options in the menu to let the user choose the feature set
(i.e., memory footprint, and additional dependencies, if any).

 - Roland

> +
> +# vim: syntax=make
> 


_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de

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

* Re: [ptxdist] [PATCH] add initial version of host-openocd package
  2017-01-17 14:56 ` Roland Hieber
@ 2017-01-18 21:12   ` Andreas Pretzsch
  2017-01-19  5:10     ` fixed-term.Oleksij.Rempel
  0 siblings, 1 reply; 4+ messages in thread
From: Andreas Pretzsch @ 2017-01-18 21:12 UTC (permalink / raw)
  To: ptxdist

On Di, 2017-01-17 at 15:56 +0100, Roland Hieber wrote:
> On 17.01.2017 14:22, fixed-term.Oleksij.Rempel@de.bosch.com wrote:
> > From: Oleksij Rempel <linux@rempel-privat.de>
> > 
> > openocd 0.10.0-rc2
> > 
> > Signed-off-by: Oleksij Rempel <linux@rempel-privat.de>
> > ---
> >  rules/host-openocd.in   |  8 ++++++++
> >  rules/host-openocd.make | 37 +++++++++++++++++++++++++++++++++++++
> > [...]
> >
> 
> Well, that was short and easy :) But I see various enable/disable flags
> in the configure help that default to "auto" and are not handled here in
> the Makefile. These flags should be included for the build to be
> reproducible, or have you checked that they don't depend on the build
> order of the system? In any case, it is probably a good idea to include
> any configure options in the menu to let the user choose the feature set
> (i.e., memory footprint, and additional dependencies, if any).

Back in 2014, I prepared a host package for openocd 0.8.0, which you
might use as a template. Essentially the same as the target one (which
got included mainline), just in a host variant. The host package was not
really needed by anyone (me included), so it did not went in.

You can find the threads on the mailinglist resp. there:

[ptxdist] [PATCH] openocd: new package for openocd-0.8.0 (host, target)
https://www.mail-archive.com/ptxdist@pengutronix.de/msg08936.html

[ptxdist] [PATCH v2 2/2] host-openocd: new package for openocd-0.8.0
https://www.mail-archive.com/ptxdist@pengutronix.de/msg08969.html

Best regards,
  Andreas

-- 

carpe noctem engineering
Ingenieurbuero fuer Hard- & Software-Entwicklung Andreas Pretzsch
Dipl.-Ing. (FH) Andreas Pretzsch        Tel. +49-(0)7307-936088-1
Lange Strasse 28a                       Fax: +49-(0)7307-936088-9
89250 Senden, Germany                   email: apr@cn-eng.de


_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de

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

* Re: [ptxdist] [PATCH] add initial version of host-openocd package
  2017-01-18 21:12   ` Andreas Pretzsch
@ 2017-01-19  5:10     ` fixed-term.Oleksij.Rempel
  0 siblings, 0 replies; 4+ messages in thread
From: fixed-term.Oleksij.Rempel @ 2017-01-19  5:10 UTC (permalink / raw)
  To: ptxdist


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

Hallo Andreas,

On 18.01.2017 22:12, Andreas Pretzsch wrote:
> On Di, 2017-01-17 at 15:56 +0100, Roland Hieber wrote:
>> On 17.01.2017 14:22, fixed-term.Oleksij.Rempel@de.bosch.com wrote:
>>> From: Oleksij Rempel <linux@rempel-privat.de>
>>>
>>> openocd 0.10.0-rc2
>>>
>>> Signed-off-by: Oleksij Rempel <linux@rempel-privat.de>
>>> ---
>>>  rules/host-openocd.in   |  8 ++++++++
>>>  rules/host-openocd.make | 37 +++++++++++++++++++++++++++++++++++++
>>> [...]
>>>
>>
>> Well, that was short and easy :) But I see various enable/disable flags
>> in the configure help that default to "auto" and are not handled here in
>> the Makefile. These flags should be included for the build to be
>> reproducible, or have you checked that they don't depend on the build
>> order of the system? In any case, it is probably a good idea to include
>> any configure options in the menu to let the user choose the feature set
>> (i.e., memory footprint, and additional dependencies, if any).
> 
> Back in 2014, I prepared a host package for openocd 0.8.0, which you
> might use as a template. Essentially the same as the target one (which
> got included mainline), just in a host variant. The host package was not
> really needed by anyone (me included), so it did not went in.
> 
> You can find the threads on the mailinglist resp. there:

Thank you, i'll take a look on it.

Right now i have some problems to build clean latest PTXdist from git:

 ./p get host-openocd
mkfifo: cannot create fifo '/tmp/ptxdist.X7jGIC/get-fifo': File exists
ptxdist: error: failed to source lib:
/home/bob/tmp/ptxdist/ptxdist/scripts/lib/ptxd_make_serialize.sh

Any one any idea why?


[-- Attachment #1.2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 230 bytes --]

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

_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de

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

end of thread, other threads:[~2017-01-19  5:10 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-01-17 13:22 [ptxdist] [PATCH] add initial version of host-openocd package fixed-term.Oleksij.Rempel
2017-01-17 14:56 ` Roland Hieber
2017-01-18 21:12   ` Andreas Pretzsch
2017-01-19  5:10     ` fixed-term.Oleksij.Rempel

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