From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from ptx.hi.pengutronix.de ([2001:6f8:1178:2:5054:ff:fec0:8e10] ident=Debian-exim) by metis.ext.pengutronix.de with esmtp (Exim 4.72) (envelope-from ) id 1Wz4wV-00023A-Jo for ptxdist@pengutronix.de; Mon, 23 Jun 2014 16:09:55 +0200 Received: from mol by ptx.hi.pengutronix.de with local (Exim 4.80) (envelope-from ) id 1Wz4wV-00069r-I5 for ptxdist@pengutronix.de; Mon, 23 Jun 2014 16:09:55 +0200 Date: Mon, 23 Jun 2014 16:09:55 +0200 From: Michael Olbrich Message-ID: <20140623140955.GC21175@pengutronix.de> References: <1403422869-13390-1-git-send-email-m.grzeschik@pengutronix.de> <1403422869-13390-3-git-send-email-m.grzeschik@pengutronix.de> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <1403422869-13390-3-git-send-email-m.grzeschik@pengutronix.de> Subject: Re: [ptxdist] [PATCH 3/3] host-openocd: add new package Reply-To: ptxdist@pengutronix.de List-Id: PTXdist Development Mailing List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: ptxdist-bounces@pengutronix.de Errors-To: ptxdist-bounces@pengutronix.de To: ptxdist@pengutronix.de On Sun, Jun 22, 2014 at 09:41:09AM +0200, Michael Grzeschik wrote: > Signed-off-by: Michael Grzeschik > --- > 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 > +# > +# 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