mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
From: Michael Grzeschik <m.grzeschik@pengutronix.de>
To: ptxdist@pengutronix.de
Subject: [ptxdist] [PATCH 2/2] host-openocd: add initial support
Date: Fri,  7 Jun 2019 00:19:49 +0200	[thread overview]
Message-ID: <20190606221949.14709-2-m.grzeschik@pengutronix.de> (raw)
In-Reply-To: <20190606221949.14709-1-m.grzeschik@pengutronix.de>

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

  reply	other threads:[~2019-06-06 22:19 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-06-06 22:19 [ptxdist] [PATCH 1/2] host-libftdi1: add new package Michael Grzeschik
2019-06-06 22:19 ` Michael Grzeschik [this message]
2019-06-14  7:18   ` [ptxdist] [PATCH 2/2] host-openocd: add initial support 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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20190606221949.14709-2-m.grzeschik@pengutronix.de \
    --to=m.grzeschik@pengutronix.de \
    --cc=ptxdist@pengutronix.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox