* [ptxdist] [PATCH 1/3] host-libftdi1: add new package @ 2014-06-22 7:41 Michael Grzeschik 2014-06-22 7:41 ` [ptxdist] [PATCH 2/3] host-libusb-compat: " Michael Grzeschik ` (2 more replies) 0 siblings, 3 replies; 7+ messages in thread From: Michael Grzeschik @ 2014-06-22 7:41 UTC (permalink / raw) To: ptxdist Signed-off-by: Michael Grzeschik <m.grzeschik@pengutronix.de> --- rules/host-libftdi1.in | 7 +++++++ rules/host-libftdi1.make | 27 +++++++++++++++++++++++++++ 2 files changed, 34 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 0000000..ee800c8 --- /dev/null +++ b/rules/host-libftdi1.in @@ -0,0 +1,7 @@ +## SECTION=hosttools_noprompt +## SECTION=hosttools_platform + +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 0000000..7ae6f8a --- /dev/null +++ b/rules/host-libftdi1.make @@ -0,0 +1,27 @@ +# -*-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) \ + -DCMAKE_SKIP_RPATH=ON \ + -DDOCUMENTATION=OFF \ + -DPYTHON_BINDINGS=OFF \ + -DEXAMPLES=$(call ptx/ifdef,PTXCONF_LIBFTDI1_EXAMPLES,ON,OFF) \ + -DFTDIPP=$(call ptx/ifdef,PTXCONF_LIBFTDI1_CPP_WRAPPER,ON,OFF) \ + -DFTDI_EEPROM=$(call ptx/ifdef,PTXCONF_LIBFTDI1_FTDI_EEPROM,ON,OFF) + + +# vim: syntax=make -- 2.0.0 -- ptxdist mailing list ptxdist@pengutronix.de ^ permalink raw reply [flat|nested] 7+ messages in thread
* [ptxdist] [PATCH 2/3] host-libusb-compat: add new package 2014-06-22 7:41 [ptxdist] [PATCH 1/3] host-libftdi1: add new package Michael Grzeschik @ 2014-06-22 7:41 ` Michael Grzeschik 2014-06-23 14:06 ` Michael Olbrich 2014-06-22 7:41 ` [ptxdist] [PATCH 3/3] host-openocd: " Michael Grzeschik 2014-06-23 14:03 ` [ptxdist] [PATCH 1/3] host-libftdi1: " Michael Olbrich 2 siblings, 1 reply; 7+ messages in thread From: Michael Grzeschik @ 2014-06-22 7:41 UTC (permalink / raw) To: ptxdist Signed-off-by: Michael Grzeschik <m.grzeschik@pengutronix.de> --- rules/host-libusb-compat.in | 6 ++++++ rules/host-libusb-compat.make | 16 ++++++++++++++++ 2 files changed, 22 insertions(+) create mode 100644 rules/host-libusb-compat.in create mode 100644 rules/host-libusb-compat.make diff --git a/rules/host-libusb-compat.in b/rules/host-libusb-compat.in new file mode 100644 index 0000000..db16857 --- /dev/null +++ b/rules/host-libusb-compat.in @@ -0,0 +1,6 @@ +## SECTION=hosttools_noprompt +## SECTION=hosttools_platform + +config HOST_LIBUSB_COMPAT + tristate + default ALLYES diff --git a/rules/host-libusb-compat.make b/rules/host-libusb-compat.make new file mode 100644 index 0000000..bba09f3 --- /dev/null +++ b/rules/host-libusb-compat.make @@ -0,0 +1,16 @@ +# -*-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_LIBUSB_COMPAT) += host-libusb-compat + +# vim: syntax=make -- 2.0.0 -- ptxdist mailing list ptxdist@pengutronix.de ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [ptxdist] [PATCH 2/3] host-libusb-compat: add new package 2014-06-22 7:41 ` [ptxdist] [PATCH 2/3] host-libusb-compat: " Michael Grzeschik @ 2014-06-23 14:06 ` Michael Olbrich 0 siblings, 0 replies; 7+ messages in thread From: Michael Olbrich @ 2014-06-23 14:06 UTC (permalink / raw) To: ptxdist On Sun, Jun 22, 2014 at 09:41:08AM +0200, Michael Grzeschik wrote: > Signed-off-by: Michael Grzeschik <m.grzeschik@pengutronix.de> > --- > rules/host-libusb-compat.in | 6 ++++++ > rules/host-libusb-compat.make | 16 ++++++++++++++++ > 2 files changed, 22 insertions(+) > create mode 100644 rules/host-libusb-compat.in > create mode 100644 rules/host-libusb-compat.make > > diff --git a/rules/host-libusb-compat.in b/rules/host-libusb-compat.in > new file mode 100644 > index 0000000..db16857 > --- /dev/null > +++ b/rules/host-libusb-compat.in > @@ -0,0 +1,6 @@ > +## SECTION=hosttools_noprompt > +## SECTION=hosttools_platform Same here. > + > +config HOST_LIBUSB_COMPAT > + tristate > + default ALLYES > diff --git a/rules/host-libusb-compat.make b/rules/host-libusb-compat.make > new file mode 100644 > index 0000000..bba09f3 > --- /dev/null > +++ b/rules/host-libusb-compat.make > @@ -0,0 +1,16 @@ > +# -*-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_LIBUSB_COMPAT) += host-libusb-compat > + # ---------------------------------------------------------------------------- # Prepare # ---------------------------------------------------------------------------- and at least set HOST_LIBUSB_COMPAT_CONF_TOOL and mayby any sane configure options. Michael > +# vim: syntax=make > -- > 2.0.0 > > > -- > 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] 7+ messages in thread
* [ptxdist] [PATCH 3/3] host-openocd: add new package 2014-06-22 7:41 [ptxdist] [PATCH 1/3] host-libftdi1: add new package Michael Grzeschik 2014-06-22 7:41 ` [ptxdist] [PATCH 2/3] host-libusb-compat: " Michael Grzeschik @ 2014-06-22 7:41 ` Michael Grzeschik 2014-06-23 14:09 ` Michael Olbrich 2014-06-23 14:03 ` [ptxdist] [PATCH 1/3] host-libftdi1: " Michael Olbrich 2 siblings, 1 reply; 7+ messages in thread From: Michael Grzeschik @ 2014-06-22 7:41 UTC (permalink / raw) To: ptxdist Signed-off-by: Michael Grzeschik <m.grzeschik@pengutronix.de> --- rules/host-openocd.in | 184 ++++++++++++++++++++++++++++++++++++++++++++++++ rules/host-openocd.make | 71 +++++++++++++++++++ 2 files changed, 255 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..8071f3c --- /dev/null +++ b/rules/host-openocd.in @@ -0,0 +1,184 @@ +## SECTION=hosttools + +menuconfig HOST_OOCD + tristate + prompt "openocd" + select HOST_LIBUSB + select HOST_LIBUSB_COMPAT + 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. + +if HOST_OOCD + +config HOST_OOCD_DUMMY + prompt "dummy support" + bool + +config HOST_OOCD_FTDI + prompt "ftdi support" + bool + +config HOST_OOCD_STLINK + prompt "stlink support" + bool + +config HOST_OOCD_TI_ICDI + prompt "ti_icdi support" + bool + +config HOST_OOCD_ULINK + prompt "ulink support" + bool + +config HOST_OOCD_USBBLASTER2 + prompt "usb blaster 2 support" + bool + +config HOST_OOCD_JLINK + prompt "jlink support" + bool + +config HOST_OOCD_OSBDM + prompt "osbdm support" + bool + +config HOST_OOCD_OPENDOUS + prompt "opendous support" + bool + +config HOST_OOCD_AICE + prompt "aice support" + bool + +config HOST_OOCD_VSLLINK + prompt "vsllink support" + bool + +config HOST_OOCD_USBPROG + prompt "usbprog support" + bool + +config HOST_OOCD_RLINK + prompt "rlink support" + bool + +config HOST_OOCD_ARMJTAGEW + prompt "armjtagew support" + bool + +config HOST_OOCD_CMSIS_DAP + prompt "cbsis-dap support" + bool + +config HOST_OOCD_PARPORT + prompt "parport support" + bool + +config HOST_OOCD_LEGACY_FT2232_LIBFTDI + prompt "legacy ft2232 libftdi support" + bool + +config HOST_OOCD_LEGACY_FT2232_FTD2XX + prompt "legacy ft2232 ftd2xx support" + bool + +config HOST_OOCD_JTAG_VPI + prompt "jtag vpi support" + bool + +config HOST_OOCD_LIBFTDI_USBBLASTER + prompt "libftdi usb blaster support" + bool + +config HOST_OOCD_FTD2XX_USBBLASTER + prompt "ftd2xx usb blaster support" + bool + +config HOST_OOCD_AMTJTAGA + prompt "amontec jtag accel support" + bool + +config HOST_OOCD_ZY1000M + prompt "zy1000 Master support" + bool + +config HOST_OOCD_ZY1000 + prompt "zy1000 interface support" + bool + +config HOST_OOCD_IOUTIL + prompt "ioutil support" + bool + +config HOST_OOCD_EP93XX + prompt "ep93xx support" + bool + +config HOST_OOCD_AT91RM9200 + prompt "at91rm9200 support" + bool + +config HOST_OOCD_BCM2835_GPIO + prompt "bcm2835 gpio support" + bool + +config HOST_OOCD_GW16012 + prompt "gw16012 support" + bool + +config HOST_OOCD_PRESTO_LIBFTDI + prompt "presto_libftdi support" + bool + +config HOST_OOCD_PRESTO_FTD2XX + prompt "presto_ftd2xx support" + bool + +config HOST_OOCD_OPENJTAG_FTD2XX + prompt "openjtag_ftd2xx support" + bool + +config HOST_OOCD_OPENJTAG_FTDI + prompt "openjtag_ftdi support" + bool + +config HOST_OOCD_TRACE + prompt "oocd trace support" + bool + +config HOST_OOCD_BUSPIRATE + prompt "buspirate support" + bool + +config HOST_OOCD_SYSFS_GPIO + prompt "sysfs gpio support" + bool + +config HOST_OOCD_MINIDRIVER_DUMMY + prompt "minidriver dummy support" + bool + +config HOST_OOCD_LIBUSB0 + prompt "libusb0 support" + bool + +config HOST_OOCD_REMOTE_BITBANG + prompt "remote bitbang support" + bool + +config HOST_OOCD_JTAG + string + prompt "target jtag device" + default "interface/ti-icdi.cfg" + +config HOST_OOCD_BOARD + string + prompt "target board to jtag" + default "board/ek-lm4f120xl.cfg" + +endif +~ +~ diff --git a/rules/host-openocd.make b/rules/host-openocd.make new file mode 100644 index 0000000..2a87408 --- /dev/null +++ b/rules/host-openocd.make @@ -0,0 +1,71 @@ +# -*-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_OOCD) += host-oocd + +# +# Paths and names +# +HOST_OOCD_VERSION := 0.8.0 +HOST_OOCD_MD5 := 6d83c34763a5f1d1ac7ad83c5a11f4fb +HOST_OOCD := openocd-$(HOST_OOCD_VERSION) +HOST_OOCD_SUFFIX := tar.bz2 +HOST_OOCD_URL := $(call ptx/mirror, SF, openocd/$(HOST_OOCD).$(HOST_OOCD_SUFFIX)) +HOST_OOCD_SOURCE := $(SRCDIR)/$(HOST_OOCD).$(HOST_OOCD_SUFFIX) +HOST_OOCD_DIR := $(HOST_BUILDDIR)/$(HOST_OOCD) + +# ---------------------------------------------------------------------------- +# Prepare +# ---------------------------------------------------------------------------- + +# +# autoconf +# +HOST_OOCD_CONF_TOOL := autoconf +HOST_OOCD_CONF_OPT := \ + $(HOST_AUTOCONF) \ + --$(call ptx/endis, PTXCONF_HOST_OOCD_DUMMY)-dummy \ + --$(call ptx/endis, PTXCONF_HOST_OOCD_PARPORT)-parport \ + --$(call ptx/endis, PTXCONF_HOST_OOCD_LIBFTDI)-ft2232_libftdi \ + --$(call ptx/endis, PTXCONF_HOST_OOCD_FTD2XX)-ft2232_ftd2xx \ + --$(call ptx/endis, PTXCONF_HOST_OOCD_FTDI_MPSSE)-ftdi \ + --$(call ptx/endis, PTXCONF_HOST_OOCD_FTDI_USBBLASTER)-usb_blaster_libftdi \ + --$(call ptx/endis, PTXCONF_HOST_OOCD_FTD2XX_USBBLASTER)-usb_blaster_ftd2xx \ + --$(call ptx/endis, PTXCONF_HOST_OOCD_AMTJTAGA)-amtjtagaccel \ + --$(call ptx/endis, PTXCONF_HOST_OOCD_XY1000M)-zy1000-master \ + --$(call ptx/endis, PTXCONF_HOST_OOCD_XY1000)-zy1000 \ + --$(call ptx/endis, PTXCONF_HOST_OOCD_IOUTIL)-ioutil \ + --$(call ptx/endis, PTXCONF_HOST_OOCD_EB93XX)-ep93xx \ + --$(call ptx/endis, PTXCONF_HOST_OOCD_AT91RM9200)-at91rm9200 \ + --$(call ptx/endis, PTXCONF_HOST_OOCD_GW16012)-gw16012 \ + --$(call ptx/endis, PTXCONF_HOST_OOCD_PRESTO_LIBFTDI)-presto_libftdi \ + --$(call ptx/endis, PTXCONF_HOST_OOCD_PRESTO_FTD2XX)-presto_ftd2xx \ + --$(call ptx/endis, PTXCONF_HOST_OOCD_USBPROG)-usbprog \ + --$(call ptx/endis, PTXCONF_HOST_OOCD_TRACE)-oocd_trace \ + --$(call ptx/endis, PTXCONF_HOST_OOCD_JLINK)-jlink \ + --$(call ptx/endis, PTXCONF_HOST_OOCD_VSLLINK)-vsllink \ + --$(call ptx/endis, PTXCONF_HOST_OOCD_RLINK)-rlink \ + --$(call ptx/endis, PTXCONF_HOST_OOCD_ULINK)-ulink \ + --$(call ptx/endis, PTXCONF_HOST_OOCD_ARM_JTAG_EW)-arm-jtag-ew \ + --$(call ptx/endis, PTXCONF_HOST_OOCD_BUSPIRATE)-buspirate \ + --$(call ptx/endis, PTXCONF_HOST_OOCD_STLINK)-stlink \ + --$(call ptx/endis, PTXCONF_HOST_OOCD_TI_ICDI)-ti-icdi \ + --$(call ptx/endis, PTXCONF_HOST_OOCD_OSBDM)-osbdm \ + --$(call ptx/endis, PTXCONF_HOST_OOCD_OPENDOUS)-opendous \ + --$(call ptx/endis, PTXCONF_HOST_OOCD_SYSFS_GPIO)-sysfsgpio \ + --$(call ptx/endis, PTXCONF_HOST_OOCD_MINIDRIVER_DUMMY)-minidriver-dummy \ + --$(call ptx/endis, PTXCONF_HOST_OOCD_LIBUSB0)-libusb0 \ + --$(call ptx/endis, PTXCONF_HOST_OOCD_REMOTE_BITBANG)-remote-bitbang + + +# vim: syntax=make -- 2.0.0 -- ptxdist mailing list ptxdist@pengutronix.de ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [ptxdist] [PATCH 3/3] host-openocd: add new package 2014-06-22 7:41 ` [ptxdist] [PATCH 3/3] host-openocd: " Michael Grzeschik @ 2014-06-23 14:09 ` Michael Olbrich 2014-09-29 17:27 ` Andreas Pretzsch 0 siblings, 1 reply; 7+ messages in thread From: Michael Olbrich @ 2014-06-23 14:09 UTC (permalink / raw) To: ptxdist On Sun, Jun 22, 2014 at 09:41:09AM +0200, Michael Grzeschik wrote: > Signed-off-by: Michael Grzeschik <m.grzeschik@pengutronix.de> > --- > rules/host-openocd.in | 184 ++++++++++++++++++++++++++++++++++++++++++++++++ > rules/host-openocd.make | 71 +++++++++++++++++++ > 2 files changed, 255 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..8071f3c > --- /dev/null > +++ b/rules/host-openocd.in > @@ -0,0 +1,184 @@ > +## SECTION=hosttools > + > +menuconfig HOST_OOCD > + tristate > + prompt "openocd" > + select HOST_LIBUSB > + select HOST_LIBUSB_COMPAT > + 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. > + > +if HOST_OOCD > + This is a host tool, so we don't have any real space constraints. And no extra dependencies. Does it take a lot longer, when everything is enabled? If not, then I'd suggest to just enable everything and drop the options. Michael > +config HOST_OOCD_DUMMY > + prompt "dummy support" > + bool > + > +config HOST_OOCD_FTDI > + prompt "ftdi support" > + bool > + > +config HOST_OOCD_STLINK > + prompt "stlink support" > + bool > + > +config HOST_OOCD_TI_ICDI > + prompt "ti_icdi support" > + bool > + > +config HOST_OOCD_ULINK > + prompt "ulink support" > + bool > + > +config HOST_OOCD_USBBLASTER2 > + prompt "usb blaster 2 support" > + bool > + > +config HOST_OOCD_JLINK > + prompt "jlink support" > + bool > + > +config HOST_OOCD_OSBDM > + prompt "osbdm support" > + bool > + > +config HOST_OOCD_OPENDOUS > + prompt "opendous support" > + bool > + > +config HOST_OOCD_AICE > + prompt "aice support" > + bool > + > +config HOST_OOCD_VSLLINK > + prompt "vsllink support" > + bool > + > +config HOST_OOCD_USBPROG > + prompt "usbprog support" > + bool > + > +config HOST_OOCD_RLINK > + prompt "rlink support" > + bool > + > +config HOST_OOCD_ARMJTAGEW > + prompt "armjtagew support" > + bool > + > +config HOST_OOCD_CMSIS_DAP > + prompt "cbsis-dap support" > + bool > + > +config HOST_OOCD_PARPORT > + prompt "parport support" > + bool > + > +config HOST_OOCD_LEGACY_FT2232_LIBFTDI > + prompt "legacy ft2232 libftdi support" > + bool > + > +config HOST_OOCD_LEGACY_FT2232_FTD2XX > + prompt "legacy ft2232 ftd2xx support" > + bool > + > +config HOST_OOCD_JTAG_VPI > + prompt "jtag vpi support" > + bool > + > +config HOST_OOCD_LIBFTDI_USBBLASTER > + prompt "libftdi usb blaster support" > + bool > + > +config HOST_OOCD_FTD2XX_USBBLASTER > + prompt "ftd2xx usb blaster support" > + bool > + > +config HOST_OOCD_AMTJTAGA > + prompt "amontec jtag accel support" > + bool > + > +config HOST_OOCD_ZY1000M > + prompt "zy1000 Master support" > + bool > + > +config HOST_OOCD_ZY1000 > + prompt "zy1000 interface support" > + bool > + > +config HOST_OOCD_IOUTIL > + prompt "ioutil support" > + bool > + > +config HOST_OOCD_EP93XX > + prompt "ep93xx support" > + bool > + > +config HOST_OOCD_AT91RM9200 > + prompt "at91rm9200 support" > + bool > + > +config HOST_OOCD_BCM2835_GPIO > + prompt "bcm2835 gpio support" > + bool > + > +config HOST_OOCD_GW16012 > + prompt "gw16012 support" > + bool > + > +config HOST_OOCD_PRESTO_LIBFTDI > + prompt "presto_libftdi support" > + bool > + > +config HOST_OOCD_PRESTO_FTD2XX > + prompt "presto_ftd2xx support" > + bool > + > +config HOST_OOCD_OPENJTAG_FTD2XX > + prompt "openjtag_ftd2xx support" > + bool > + > +config HOST_OOCD_OPENJTAG_FTDI > + prompt "openjtag_ftdi support" > + bool > + > +config HOST_OOCD_TRACE > + prompt "oocd trace support" > + bool > + > +config HOST_OOCD_BUSPIRATE > + prompt "buspirate support" > + bool > + > +config HOST_OOCD_SYSFS_GPIO > + prompt "sysfs gpio support" > + bool > + > +config HOST_OOCD_MINIDRIVER_DUMMY > + prompt "minidriver dummy support" > + bool > + > +config HOST_OOCD_LIBUSB0 > + prompt "libusb0 support" > + bool > + > +config HOST_OOCD_REMOTE_BITBANG > + prompt "remote bitbang support" > + bool > + > +config HOST_OOCD_JTAG > + string > + prompt "target jtag device" > + default "interface/ti-icdi.cfg" > + > +config HOST_OOCD_BOARD > + string > + prompt "target board to jtag" > + default "board/ek-lm4f120xl.cfg" > + > +endif > +~ > +~ > diff --git a/rules/host-openocd.make b/rules/host-openocd.make > new file mode 100644 > index 0000000..2a87408 > --- /dev/null > +++ b/rules/host-openocd.make > @@ -0,0 +1,71 @@ > +# -*-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_OOCD) += host-oocd > + > +# > +# Paths and names > +# > +HOST_OOCD_VERSION := 0.8.0 > +HOST_OOCD_MD5 := 6d83c34763a5f1d1ac7ad83c5a11f4fb > +HOST_OOCD := openocd-$(HOST_OOCD_VERSION) > +HOST_OOCD_SUFFIX := tar.bz2 > +HOST_OOCD_URL := $(call ptx/mirror, SF, openocd/$(HOST_OOCD).$(HOST_OOCD_SUFFIX)) > +HOST_OOCD_SOURCE := $(SRCDIR)/$(HOST_OOCD).$(HOST_OOCD_SUFFIX) > +HOST_OOCD_DIR := $(HOST_BUILDDIR)/$(HOST_OOCD) > + > +# ---------------------------------------------------------------------------- > +# Prepare > +# ---------------------------------------------------------------------------- > + > +# > +# autoconf > +# > +HOST_OOCD_CONF_TOOL := autoconf > +HOST_OOCD_CONF_OPT := \ > + $(HOST_AUTOCONF) \ > + --$(call ptx/endis, PTXCONF_HOST_OOCD_DUMMY)-dummy \ > + --$(call ptx/endis, PTXCONF_HOST_OOCD_PARPORT)-parport \ > + --$(call ptx/endis, PTXCONF_HOST_OOCD_LIBFTDI)-ft2232_libftdi \ > + --$(call ptx/endis, PTXCONF_HOST_OOCD_FTD2XX)-ft2232_ftd2xx \ > + --$(call ptx/endis, PTXCONF_HOST_OOCD_FTDI_MPSSE)-ftdi \ > + --$(call ptx/endis, PTXCONF_HOST_OOCD_FTDI_USBBLASTER)-usb_blaster_libftdi \ > + --$(call ptx/endis, PTXCONF_HOST_OOCD_FTD2XX_USBBLASTER)-usb_blaster_ftd2xx \ > + --$(call ptx/endis, PTXCONF_HOST_OOCD_AMTJTAGA)-amtjtagaccel \ > + --$(call ptx/endis, PTXCONF_HOST_OOCD_XY1000M)-zy1000-master \ > + --$(call ptx/endis, PTXCONF_HOST_OOCD_XY1000)-zy1000 \ > + --$(call ptx/endis, PTXCONF_HOST_OOCD_IOUTIL)-ioutil \ > + --$(call ptx/endis, PTXCONF_HOST_OOCD_EB93XX)-ep93xx \ > + --$(call ptx/endis, PTXCONF_HOST_OOCD_AT91RM9200)-at91rm9200 \ > + --$(call ptx/endis, PTXCONF_HOST_OOCD_GW16012)-gw16012 \ > + --$(call ptx/endis, PTXCONF_HOST_OOCD_PRESTO_LIBFTDI)-presto_libftdi \ > + --$(call ptx/endis, PTXCONF_HOST_OOCD_PRESTO_FTD2XX)-presto_ftd2xx \ > + --$(call ptx/endis, PTXCONF_HOST_OOCD_USBPROG)-usbprog \ > + --$(call ptx/endis, PTXCONF_HOST_OOCD_TRACE)-oocd_trace \ > + --$(call ptx/endis, PTXCONF_HOST_OOCD_JLINK)-jlink \ > + --$(call ptx/endis, PTXCONF_HOST_OOCD_VSLLINK)-vsllink \ > + --$(call ptx/endis, PTXCONF_HOST_OOCD_RLINK)-rlink \ > + --$(call ptx/endis, PTXCONF_HOST_OOCD_ULINK)-ulink \ > + --$(call ptx/endis, PTXCONF_HOST_OOCD_ARM_JTAG_EW)-arm-jtag-ew \ > + --$(call ptx/endis, PTXCONF_HOST_OOCD_BUSPIRATE)-buspirate \ > + --$(call ptx/endis, PTXCONF_HOST_OOCD_STLINK)-stlink \ > + --$(call ptx/endis, PTXCONF_HOST_OOCD_TI_ICDI)-ti-icdi \ > + --$(call ptx/endis, PTXCONF_HOST_OOCD_OSBDM)-osbdm \ > + --$(call ptx/endis, PTXCONF_HOST_OOCD_OPENDOUS)-opendous \ > + --$(call ptx/endis, PTXCONF_HOST_OOCD_SYSFS_GPIO)-sysfsgpio \ > + --$(call ptx/endis, PTXCONF_HOST_OOCD_MINIDRIVER_DUMMY)-minidriver-dummy \ > + --$(call ptx/endis, PTXCONF_HOST_OOCD_LIBUSB0)-libusb0 \ > + --$(call ptx/endis, PTXCONF_HOST_OOCD_REMOTE_BITBANG)-remote-bitbang > + > + > +# vim: syntax=make > -- > 2.0.0 > > > -- > 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] 7+ messages in thread
* Re: [ptxdist] [PATCH 3/3] host-openocd: add new package 2014-06-23 14:09 ` Michael Olbrich @ 2014-09-29 17:27 ` Andreas Pretzsch 0 siblings, 0 replies; 7+ messages in thread From: Andreas Pretzsch @ 2014-09-29 17:27 UTC (permalink / raw) To: ptxdist On Mo, 2014-06-23 at 16:09 +0200, Michael Olbrich wrote: > On Sun, Jun 22, 2014 at 09:41:09AM +0200, Michael Grzeschik wrote: > > Signed-off-by: Michael Grzeschik <m.grzeschik@pengutronix.de> > > --- > > rules/host-openocd.in | 184 ++++++++++++++++++++++++++++++++++++++++++++++++ > > rules/host-openocd.make | 71 +++++++++++++++++++ > > 2 files changed, 255 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..8071f3c > > --- /dev/null > > +++ b/rules/host-openocd.in > > @@ -0,0 +1,184 @@ > > +## SECTION=hosttools > > + > > +menuconfig HOST_OOCD > > + tristate > > + prompt "openocd" > > + select HOST_LIBUSB > > + select HOST_LIBUSB_COMPAT > > + 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. > > + > > +if HOST_OOCD > > + > > This is a host tool, so we don't have any real space constraints. And no > extra dependencies. Does it take a lot longer, when everything is enabled? > If not, then I'd suggest to just enable everything and drop the options. Not my patch, but I just send a similar one to the list, so I'll comment on this (dead) discussion, too. First, while there is some kind of default set selected by OpenOCD configure depending on the present libs on the system, I doubt it will be suitable for everyone. Either things are missing or (won't harm) too broad. And, I wouldn't bet everything will always compile on all hosts. Second, in the end, it's a pure development tool, which is probably externally compiled by many users already. So integrating this as host tool into ptxdist is more like a convenience thing, if at all. Coming to Michael Grzeschiks patchset (thanks for that), I intended to polish it a bit for my usage here (OpenOCD on the target). Unfortunately, there are quite a few typos in the options, some are only in the Kconfig, some only in the makefile. And others were missing. Looks like the usual result of a patch living off-tree for quite some version interations :-) Anyway, due to this, I just rewrote the whole thing from scratch. Mainly for OpenOCD on target, the host part is more a by-product, albeit working. In both cases, there are no options selected at all by default. For the target, this won't make sense anyway, for the host it is debatable, see above. Left as an exercise to the reader ;-) In this respect I also ignored his patches for host-libftdi1 and host-libusb-compat, which did not went mainline. I'd suppose anybody needing them will pick them up, but that won't be me today. Regarding my patch and comments to details, please see the mail "[ptxdist] [PATCH] openocd: new package for openocd-0.8.0 (host, target)" from "Mon, 29 Sep 2014 19:12:11 +0200" on the list. -- carpe noctem engineering Ingenieurbuero fuer Hard- & Software-Entwicklung Andreas Pretzsch Dipl.-Ing. (FH) Andreas Pretzsch Tel. +49-(0)731-5521572 Hahnengasse 3 Fax: +49-(0)731-5521571 89073 Ulm, Germany email: apr@cn-eng.de -- ptxdist mailing list ptxdist@pengutronix.de ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [ptxdist] [PATCH 1/3] host-libftdi1: add new package 2014-06-22 7:41 [ptxdist] [PATCH 1/3] host-libftdi1: add new package Michael Grzeschik 2014-06-22 7:41 ` [ptxdist] [PATCH 2/3] host-libusb-compat: " Michael Grzeschik 2014-06-22 7:41 ` [ptxdist] [PATCH 3/3] host-openocd: " Michael Grzeschik @ 2014-06-23 14:03 ` Michael Olbrich 2 siblings, 0 replies; 7+ messages in thread From: Michael Olbrich @ 2014-06-23 14:03 UTC (permalink / raw) To: ptxdist On Sun, Jun 22, 2014 at 09:41:07AM +0200, Michael Grzeschik wrote: > Signed-off-by: Michael Grzeschik <m.grzeschik@pengutronix.de> > --- > rules/host-libftdi1.in | 7 +++++++ > rules/host-libftdi1.make | 27 +++++++++++++++++++++++++++ > 2 files changed, 34 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 0000000..ee800c8 > --- /dev/null > +++ b/rules/host-libftdi1.in > @@ -0,0 +1,7 @@ > +## SECTION=hosttools_noprompt > +## SECTION=hosttools_platform Don't add this unless it's used in the platform > + > +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 0000000..7ae6f8a > --- /dev/null > +++ b/rules/host-libftdi1.make > @@ -0,0 +1,27 @@ > +# -*-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 > + # ---------------------------------------------------------------------------- # Prepare # ---------------------------------------------------------------------------- > +HOST_LIBFTDI1_CONF_TOOL := cmake > +HOST_LIBFTDI1_CONF_OPT := \ > + $(HOST_CMAKE_USR) \ > + -DCMAKE_SKIP_RPATH=ON \ I don't think that this is correct for host packages. > + -DDOCUMENTATION=OFF \ > + -DPYTHON_BINDINGS=OFF \ > + -DEXAMPLES=$(call ptx/ifdef,PTXCONF_LIBFTDI1_EXAMPLES,ON,OFF) \ > + -DFTDIPP=$(call ptx/ifdef,PTXCONF_LIBFTDI1_CPP_WRAPPER,ON,OFF) \ > + -DFTDI_EEPROM=$(call ptx/ifdef,PTXCONF_LIBFTDI1_FTDI_EEPROM,ON,OFF) Don't use the options for the target package. Choose sane defaults. Michael > + > + > +# vim: syntax=make > -- > 2.0.0 > > > -- > 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] 7+ messages in thread
end of thread, other threads:[~2014-09-29 17:27 UTC | newest] Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2014-06-22 7:41 [ptxdist] [PATCH 1/3] host-libftdi1: add new package Michael Grzeschik 2014-06-22 7:41 ` [ptxdist] [PATCH 2/3] host-libusb-compat: " Michael Grzeschik 2014-06-23 14:06 ` Michael Olbrich 2014-06-22 7:41 ` [ptxdist] [PATCH 3/3] host-openocd: " Michael Grzeschik 2014-06-23 14:09 ` Michael Olbrich 2014-09-29 17:27 ` Andreas Pretzsch 2014-06-23 14:03 ` [ptxdist] [PATCH 1/3] host-libftdi1: " Michael Olbrich
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox