From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from ptx.hi.pengutronix.de ([2001:67c:670:100:1d::c0] ident=Debian-exim) by metis.ext.pengutronix.de with esmtp (Exim 4.72) (envelope-from ) id 1XoxZU-0007Kl-Hd for ptxdist@pengutronix.de; Thu, 13 Nov 2014 17:48:36 +0100 Received: from mol by ptx.hi.pengutronix.de with local (Exim 4.80) (envelope-from ) id 1XoxZU-0000AM-GI for ptxdist@pengutronix.de; Thu, 13 Nov 2014 17:48:36 +0100 Date: Thu, 13 Nov 2014 17:48:36 +0100 From: Michael Olbrich Message-ID: <20141113164836.GP30196@pengutronix.de> References: <1412010731-18154-1-git-send-email-apr@cn-eng.de> <1412637505-21528-1-git-send-email-apr@cn-eng.de> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <1412637505-21528-1-git-send-email-apr@cn-eng.de> Subject: Re: [ptxdist] [PATCH v2 2/2] host-openocd: new package for openocd-0.8.0 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 Tue, Oct 07, 2014 at 01:18:25AM +0200, Andreas Pretzsch wrote: > Signed-off-by: Andreas Pretzsch I think the host package should just enable all drivers. The two mini drivers that cannot be enabled with the rest are either broken, or just a dummy driver, so I think it's ok. Michael > --- > rules/host-openocd.in | 211 ++++++++++++++++++++++++++++++++++++++++++++++++ > rules/host-openocd.make | 69 ++++++++++++++++ > 2 files changed, 280 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..ba5b072 > --- /dev/null > +++ b/rules/host-openocd.in > @@ -0,0 +1,211 @@ > +## SECTION=hosttools > + > +menuconfig HOST_OPENOCD > + tristate > + prompt "OpenOCD " > + > + # libusb-1.x > + select HOST_LIBUSB if HOST_OPENOCD_FTDI || HOST_OPENOCD_STLINK || HOST_OPENOCD_TI_ICDI || HOST_OPENOCD_ULINK || HOST_OPENOCD_USB_BLASTER_2 > + # libusb-1.x or libusb-0.1 > + select HOST_LIBUSB if HOST_OPENOCD_JLINK || HOST_OPENOCD_OSBDM || HOST_OPENOCD_OPENDOUS || HOST_OPENOCD_AICE > + # libusb-0.1 ; currently no package in ptxdist, so disable it > + #select HOST_LIBUSB_COMPAT if HOST_OPENOCD_VSLLINK || HOST_OPENOCD_USBPROG || HOST_OPENOCD_RLINK || HOST_OPENOCD_ARMJTAGEW > + # libhidapi ; currently no package in ptxdist, so disable it > + #select HOST_HIDAPI if HOST_OPENOCD_CMSIS_DAP > + # libftdi1 or libftdi, with libftdi1 preferred ; currently no package in ptxdist, so disable it > + #select HOST_LIBFTDI1 if HOST_OPENOCD_USB_BLASTER_LIBFTDI || HOST_OPENOCD_PRESTO_LIBFTDI || HOST_OPENOCD_OPENJTAG_FTDI > + > + help > + The Open On-Chip Debugger (OpenOCD) provides debugging, in-system > + programming and boundary-scan testing for embedded target devices. > + It supports JTAG and SWD (direct or via dongle) to access targets. > + Flash writing is supported for various internal and external types. > + It is controlled with TCL scripts and can act as gdbserver. > + > +if HOST_OPENOCD > + > +# ===== interface drivers ===== > + > +config HOST_OPENOCD_DUMMY > + bool > + prompt "dummy port driver" > + > +# --- libusb-1.x based > + > +config HOST_OPENOCD_FTDI > + bool > + prompt "MPSSE mode of FTDI based devices" > + > +config HOST_OPENOCD_STLINK > + bool > + prompt "ST-Link JTAG Programmer" > + > +config HOST_OPENOCD_TI_ICDI > + bool > + prompt "TI ICDI JTAG Programmer" > + > +config HOST_OPENOCD_ULINK > + bool > + prompt "Keil ULINK JTAG Programmer" > + > +config HOST_OPENOCD_USB_BLASTER_2 > + bool > + prompt "Altera USB-Blaster II Compatible" > + > +# --- libusb-1.x or libusb-0.1 based > + > +config HOST_OPENOCD_JLINK > + bool > + prompt "Segger J-Link JTAG Programmer" > + > +config HOST_OPENOCD_OSBDM > + bool > + prompt "OSBDM (JTAG only) Programmer" > + > +config HOST_OPENOCD_OPENDOUS > + bool > + prompt "eStick/opendous JTAG Programmer" > + > +config HOST_OPENOCD_AICE > + bool > + prompt "Andes JTAG Programmer" > + > +# --- libusb-0.1 based > + > +config HOST_OPENOCD_VSLLINK > + bool > + # needs libusb-0.1 > + depends on BROKEN > + prompt "Versaloon-Link JTAG Programmer" > + > +config HOST_OPENOCD_USBPROG > + bool > + # needs libusb-0.1 > + depends on BROKEN > + prompt "USBProg JTAG Programmer" > + > +config HOST_OPENOCD_RLINK > + bool > + # needs libusb-0.1 > + depends on BROKEN > + prompt "Raisonance RLink JTAG Programmer" > + > +config HOST_OPENOCD_ARMJTAGEW > + bool > + # needs libusb-0.1 > + depends on BROKEN > + prompt "Olimex ARM-JTAG-EW Programmer" > + > +# --- hidapi based > +config HOST_OPENOCD_CMSIS_DAP > + bool > + # needs libhidapi > + depends on BROKEN > + prompt "CMSIS-DAP Compliant Debugger" > + > +# --- various > + > +config HOST_OPENOCD_PARPORT > + bool > + prompt "pc parallel port driver" > + > +if HOST_OPENOCD_PARPORT > + config HOST_OPENOCD_PARPORT_DISABLE_PARPORT_PPDEV > + bool > + prompt "Disable use of ppdev (/dev/parportN) (x86 only)" > + > + config HOST_OPENOCD_PARPORT_GIVEIO > + bool > + depends on HOST_OPENOCD_PARPORT > + prompt "Enable use of giveio (CygWin only)" > +endif > + > +config HOST_OPENOCD_JTAG_VPI > + bool > + prompt "JTAG VPI" > + > +config HOST_OPENOCD_USB_BLASTER_LIBFTDI > + bool > + prompt "Altera USB-Blaster (libftdi driver, opensource)" > + > +config HOST_OPENOCD_USB_BLASTER_FTD2XX > + bool > + # needs ftd2xx > + depends on BROKEN > + prompt "Altera USB-Blaster (FTD2XX driver from ftdichip.com)" > + > +config HOST_OPENOCD_AMTJTAGACCEL > + bool > + prompt "Amontec JTAG-Accelerator driver" > + > +config HOST_OPENOCD_ZY1000 > + bool > + prompt "ZY1000 interface" > + > +if HOST_OPENOCD_ZY1000 > + config HOST_OPENOCD_ZY1000_MASTER > + bool > + prompt "Use ZY1000 JTAG master registers" > +endif > + > +config HOST_OPENOCD_IOUTIL > + bool > + prompt "ioutil functions - for standalone OpenOCD implementations" > + > +config HOST_OPENOCD_EP93XX > + bool > + prompt "EP93xx based SBCs" > + > +config HOST_OPENOCD_AT91RM9200 > + bool > + prompt "AT91RM9200 based SBCs" > + > +config HOST_OPENOCD_BCM2835GPIO > + bool > + prompt "bitbanging on BCM2835 (as found in Raspberry Pi)" > + > +config HOST_OPENOCD_GW16012 > + bool > + prompt "Gateworks GW16012 JTAG Programmer" > + > +config HOST_OPENOCD_PRESTO_LIBFTDI > + bool > + prompt "ASIX Presto Programmer using the libftdi driver" > + > +config HOST_OPENOCD_PRESTO_FTD2XX > + # needs ftd2xx > + depends on BROKEN > + bool > + prompt "ASIX Presto Programmer using the FTD2XX driver" > + > +config HOST_OPENOCD_OPENJTAG_FTD2XX > + # needs ftd2xx > + depends on BROKEN > + bool > + prompt "OpenJTAG Programmer with ftd2xx driver" > + > +config HOST_OPENOCD_OPENJTAG_FTDI > + bool > + prompt "OpenJTAG Programmer with ftdi driver" > + > +config HOST_OPENOCD_OOCD_TRACE > + bool > + prompt "prototype OpenOCD+trace ETM capture hardware" > + > +config HOST_OPENOCD_BUSPIRATE > + bool > + prompt "Buspirate" > + > +config HOST_OPENOCD_SYSFSGPIO > + bool > + prompt "programming driven via sysfs gpios" > + > +config HOST_OPENOCD_MINIDRIVER_DUMMY > + bool > + prompt "dummy minidriver" > + > +config HOST_OPENOCD_REMOTE_BITBANG > + bool > + prompt "Remote Bitbang jtag driver" > + > +endif > diff --git a/rules/host-openocd.make b/rules/host-openocd.make > new file mode 100644 > index 0000000..d72dd38 > --- /dev/null > +++ b/rules/host-openocd.make > @@ -0,0 +1,69 @@ > +# -*-makefile-*- > +# > +# Copyright (C) 2014 by Andreas Pretzsch > +# > +# 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. > +# > + > +HOST_PACKAGES-$(PTXCONF_HOST_OPENOCD) += host-openocd > + > +HOST_OPENOCD_VERSION := 0.8.0 > +HOST_OPENOCD_MD5 := 6d83c34763a5f1d1ac7ad83c5a11f4fb > +HOST_OPENOCD := openocd-$(HOST_OPENOCD_VERSION) > +HOST_OPENOCD_SUFFIX := tar.bz2 > +HOST_OPENOCD_URL := $(call ptx/mirror, SF, openocd/$(HOST_OPENOCD).$(HOST_OPENOCD_SUFFIX)) > +HOST_OPENOCD_SOURCE := $(SRCDIR)/$(HOST_OPENOCD).$(HOST_OPENOCD_SUFFIX) > +HOST_OPENOCD_DIR := $(HOST_BUILDDIR)/$(HOST_OPENOCD) > +# License: OpenOCD: GPLv2+, jimtcl: BSD > +HOST_OPENOCD_LICENSE := LGPLv2, BSD > + > +# ---------------------------------------------------------------------------- > +# Prepare > +# ---------------------------------------------------------------------------- > + > +HOST_OPENOCD_CONF_TOOL := autoconf > +HOST_OPENOCD_CONF_OPT := $(HOST_AUTOCONF) \ > + --$(call ptx/endis, PTXCONF_HOST_OPENOCD_DUMMY)-dummy \ > + --$(call ptx/endis, PTXCONF_HOST_OPENOCD_FTDI)-ftdi \ > + --$(call ptx/endis, PTXCONF_HOST_OPENOCD_STLINK)-stlink \ > + --$(call ptx/endis, PTXCONF_HOST_OPENOCD_TI_ICDI)-ti-icdi \ > + --$(call ptx/endis, PTXCONF_HOST_OPENOCD_ULINK)-ulink \ > + --$(call ptx/endis, PTXCONF_HOST_OPENOCD_USB_BLASTER_2)-usb-blaster-2 \ > + --$(call ptx/endis, PTXCONF_HOST_OPENOCD_JLINK)-jlink \ > + --$(call ptx/endis, PTXCONF_HOST_OPENOCD_OSBDM)-osbdm \ > + --$(call ptx/endis, PTXCONF_HOST_OPENOCD_OPENDOUS)-opendous \ > + --$(call ptx/endis, PTXCONF_HOST_OPENOCD_AICE)-aice \ > + --$(call ptx/endis, PTXCONF_HOST_OPENOCD_VSLLINK)-vsllink \ > + --$(call ptx/endis, PTXCONF_HOST_OPENOCD_USBPROG)-usbprog \ > + --$(call ptx/endis, PTXCONF_HOST_OPENOCD_RLINK)-rlink \ > + --$(call ptx/endis, PTXCONF_HOST_OPENOCD_ARMJTAGEW)-armjtagew \ > + --$(call ptx/endis, PTXCONF_HOST_OPENOCD_CMSIS_DAP)-cmsis-dap \ > + --$(call ptx/endis, PTXCONF_HOST_OPENOCD_PARPORT)-parport \ > + --$(call ptx/disen, PTXCONF_HOST_OPENOCD_PARPORT_DISABLE_PARPORT_PPDEV)-parport-ppdev \ > + --$(call ptx/endis, PTXCONF_HOST_OPENOCD_PARPORT_GIVEIO)-parport-giveio \ > + --$(call ptx/endis, PTXCONF_HOST_OPENOCD_JTAG_VPI)-jtag_vpi \ > + --$(call ptx/endis, PTXCONF_HOST_OPENOCD_USB_BLASTER_LIBFTDI)-usb_blaster_libftdi \ > + --$(call ptx/endis, PTXCONF_HOST_OPENOCD_USB_BLASTER_FTD2XX)-usb_blaster_ftd2xx \ > + --$(call ptx/endis, PTXCONF_HOST_OPENOCD_AMTJTAGACCEL)-amtjtagaccel \ > + --$(call ptx/endis, PTXCONF_HOST_OPENOCD_ZY1000)-zy1000 \ > + --$(call ptx/endis, PTXCONF_HOST_OPENOCD_ZY1000_MASTER)-zy1000-master \ > + --$(call ptx/endis, PTXCONF_HOST_OPENOCD_IOUTIL)-ioutil \ > + --$(call ptx/endis, PTXCONF_HOST_OPENOCD_EP93XX)-ep93xx \ > + --$(call ptx/endis, PTXCONF_HOST_OPENOCD_AT91RM9200)-at91rm9200 \ > + --$(call ptx/endis, PTXCONF_HOST_OPENOCD_BCM2835GPIO)-bcm2835gpio \ > + --$(call ptx/endis, PTXCONF_HOST_OPENOCD_GW16012)-gw16012 \ > + --$(call ptx/endis, PTXCONF_HOST_OPENOCD_PRESTO_LIBFTDI)-presto_libftdi \ > + --$(call ptx/endis, PTXCONF_HOST_OPENOCD_PRESTO_FTD2XX)-presto_ftd2xx \ > + --$(call ptx/endis, PTXCONF_HOST_OPENOCD_OPENJTAG_FTD2XX)-openjtag_ftd2xx \ > + --$(call ptx/endis, PTXCONF_HOST_OPENOCD_OPENJTAG_FTDI)-openjtag_ftdi \ > + --$(call ptx/endis, PTXCONF_HOST_OPENOCD_OOCD_TRACE)-oocd_trace \ > + --$(call ptx/endis, PTXCONF_HOST_OPENOCD_BUSPIRATE)-buspirate \ > + --$(call ptx/endis, PTXCONF_HOST_OPENOCD_SYSFSGPIO)-sysfsgpio \ > + --$(call ptx/endis, PTXCONF_HOST_OPENOCD_MINIDRIVER_DUMMY)-minidriver-dummy \ > + --$(call ptx/endis, PTXCONF_HOST_OPENOCD_REMOTE_BITBANG)-remote-bitbang \ > + > + > +# vim: syntax=make > -- > 2.1.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