summaryrefslogtreecommitdiffstats
path: root/package/openocd
Commit message (Collapse)AuthorAgeFilesLines
* package/openocd: fix indentation of Config.in help textThomas Petazzoni2019-02-061-2/+2
| | | | | | | | | Fixes the following check-package warnings: package/openocd/Config.in:20: help text: <tab><2 spaces><62 chars> (http://nightly.buildroot.org/#writing-rules-config-in) package/openocd/Config.in:21: help text: <tab><2 spaces><62 chars> (http://nightly.buildroot.org/#writing-rules-config-in) Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
* package/openocd: allow CMSIS-DAP supportMatt Wood2019-02-062-1/+13
| | | | | | | | | | | | | | | | In commit aa441aa84c38ad5319c4ff7fb27c84530e19c204 ("openocd: bump to version 0.8.0"), some logic in openocd.mk was added to enable CMSIS-DAP when BR2_PACKAGE_OPENOCD_CMSIS_DAP is enabled, but this option was not created, because hidapi was not packaged in Buildroot. This package now exists, so we can create BR2_PACKAGE_OPENOCD_CMSIS_DAP and really make it possible to build CMSIS DAP support. Signed-off-by: Matt Wood <mattwood2000@gmail.com> [Thomas: - rework commit log - add missing "depends on" in Config.in] Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
* package/openocd: add missing host-pkgconf dependencyThomas Petazzoni2018-11-161-0/+1
| | | | | | | | | | | | | | | | | | | | | | | The configure.ac script uses PKG_CHECK_MODULES(), and we autoreconf the package, so host-pkgconf should be listed in the dependencies. This issue is seen either with per-package folders, or by doing a clean build with just "make openocd": >>> openocd 0.10.0 Configuring >>> openocd 0.10.0 Autoreconfiguring [...] configure.ac:12: error: possibly undefined macro: AC_MSG_WARN If this token and others are legitimate, please use m4_pattern_allow. See the Autoconf documentation. configure.ac:201: error: possibly undefined macro: AC_DEFINE configure.ac:582: error: possibly undefined macro: AC_MSG_NOTICE Even if the message seems unrelated, it's really the lack of pkg.m4 from host-pkgconf that causes the issue. Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
* package/openocd: fix fallout after no-C++ fixupsYann E. MORIN2018-03-311-1/+6
| | | | | | | | | | | | | | | | | Commit 4cd1ab158 (core: alternate solution to disable C++) made use of a non-existent 'no' binary when C++ is not available in the toolchain. However, some packages, like jimtcl as bundled in opeocd, really want to find the binary that $CXX contains. Revert openocd to use 'false' instead of 'no'. Fixes: http://autobuild.buildroot.org/results/cbd/cbd5ab97fb0659968ff628461130627cf1745955/ Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr> Cc: Ezequiel Garcia <ezequiel@vanguardiasur.com.ar> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
* openocd: add security fix for CVE-2018-5704Peter Korsgaard2018-01-291-0/+50
| | | | | | | | | | | | Open On-Chip Debugger (OpenOCD) 0.10.0 does not block attempts to use HTTP POST for sending data to 127.0.0.1 port 4444, which allows remote attackers to conduct cross-protocol scripting attacks, and consequently execute arbitrary commands, via a crafted web site. For more details, see: https://sourceforge.net/p/openocd/mailman/message/36188041/ Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
* package/openocd: add license infosBernd Kuhls2017-08-172-0/+3
| | | | | Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
* package/openocd: fix uclinux buildBernd Kuhls2017-08-172-1/+28
| | | | | | | | Fixes http://autobuild.buildroot.net/results/cd3/cd3f5b7329f45c2b75ed319caef3c6aa0e94ee2e/ Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
* Globally replace $(HOST_DIR)/usr/include with $(HOST_DIR)/includeArnout Vandecappelle2017-07-051-2/+2
| | | | | | | | | | | Since things are no longer installed in $(HOST_DIR)/usr, the callers should also not refer to it. This is a mechanical change with git grep -l '$(HOST_DIR)/usr/include' | xargs sed -i 's%$(HOST_DIR)/usr/include%$(HOST_DIR)/include%g' Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
* package/o*/Config.in: fix ordering of statementsAdam Duskett2017-05-011-16/+16
| | | | | | | | | | | | | The check-package script when ran gives warnings on ordering issues on all of these Config files. This patch cleans up all warnings related to the ordering in the Config files for packages starting with the letter o in the package directory. The appropriate ordering is: type, default, depends on, select, help See http://nightly.buildroot.org/#_config_files for more information. Signed-off-by: Adam Duskett <Adamduskett@outlook.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
* openocd: renumber patchThomas Petazzoni2017-04-291-0/+0
| | | | | | Patch 0001 was removed a while ago, so rename the 0002 patch to 0001. Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
* openocd: bump to 0.10.0Christophe PRIOUZEAU2017-04-293-19/+10
| | | | | | | | | | | Some configure options have been renamed. Support for the deprecated FT2232 devices has been removed in this release, so remove this option. Signed-off-by: Christophe Priouzeau <christophe.priouzeau@st.com> [Thomas: - Add Config.in.legacy handling, suggested by Arnout. - Improve commit log with more details, suggested by Arnout.] Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
* package: remove consecutive empty linesRicardo Martincoski2017-04-061-1/+0
| | | | | | | | | | | Occurrences were searched using [1]: check-package --include-only ConsecutiveEmptyLines $(find * -type f) and manually removed. [1] http://patchwork.ozlabs.org/patch/729666/ Signed-off-by: Ricardo Martincoski <ricardo.martincoski@gmail.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
* package/openocd: indentation cleanupJerzy Grzegorek2017-03-191-1/+1
| | | | | Signed-off-by: Jerzy Grzegorek <jerzy.grzegorek@trzebnica.net> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
* openocd: avoid documentation rebuild to fix build issuesThomas Petazzoni2017-02-281-0/+15
| | | | | | | | | | | | | | | | | | | | On PowerPC64(le), we patch all configure scripts. Due to this, the version.texi in OpenOCD files gets regenerated, and then since it has a newer date than openocd.info, openocd build system rebuilds the documentation. Unfortunately, this documentation rebuild fails on old machines. We work around this by faking the date of the generated version.texi file, to make the build system believe the documentation doesn't need to be regenerated. Fixes: http://autobuild.buildroot.net/results/3cbe65a46e75b8e67846d593884c96df97dec7a4 Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Reviewed-by: Sam Bobroff <sam.bobroff@au1.ibm.com> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
* openocd: remove BR2_ARCH_HAS_ATOMICS dependencyThomas Petazzoni2016-01-261-4/+0
| | | | | | | | | | | | | | | | | For some reason, since when openocd was introduced, it was using a BR2_ARCH_HAS_ATOMICS dependency for all sub-options that selected BR2_PACKAGE_LIBFTDI1, even if the libftdi1 package did not have any atomics dependency. Maybe it was confused with the libftdi package, which did have a BR2_ARCH_HAS_ATOMICS dependency ? Regardless, openocd with all four sub-options that currently depend on BR2_ARCH_HAS_ATOMICS builds perfectly fine with a toolchain that does not implement any of the __sync atomic built-ins, so we can remove the BR2_ARCH_HAS_ATOMICS dependency. Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Acked-by: "Yann E. MORIN" <yann.morin.1998@free.fr> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
* package/openocd: select libusb when selecting libusb-compatRomain Naour2016-01-011-0/+5
| | | | | | | | | | | | | | | | | | | | | libusb-compat depends on libusb package, so we need to select libusb package at the same time as libusb-compat to avoid an unmet dependency. Since 28f67899e54f15c6e48484ea2976c3e431756bcb, the build stop if a package build is trigged at Makefile level without being selected at Config.in level. This is the case here with BR2_PACKAGE_OPENOCD_USBPROG which select BR2_PACKAGE_LIBUSB_COMPAT without selecting BR2_PACKAGE_LIBUSB. Fixes: http://autobuild.buildroot.net/results/b4a/b4a8c54eed6bf75ab8ade0653953d19792155727/ Signed-off-by: Romain Naour <romain.naour@gmail.com> Acked-by: "Yann E. MORIN" <yann.morin.1998@free.fr> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
* openocd: bump to 0.9.0Yegor Yefremov2015-12-014-46/+8
| | | | | | | Remove obsolete compilation error patch and update jimtcl related patch. Signed-off-by: Yegor Yefremov <yegorslists@googlemail.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
* package: update some home page URLs in Config.in.host filesRobert P. J. Day2015-04-181-1/+1
| | | | | | | Some URLs for package/*/Config.in.host files could use some updating. Signed-off-by: Robert P. J. Day <rpjday@crashcourse.ca> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
* openocd: openjtag needs libusb-compatBaruch Siach2015-03-251-0/+1
| | | | | | | | | | | | | | | | | | | Since commit 9bdf5926 (package/openocd: depends on libftdi1 instead of libftdi) the OpenJTAG Programmer can be built without libusb-compat, that is a dependency of libftdi (but not libftdi1). This breaks the build, because openjtag.c uses libusb-compat headers. Select BR2_PACKAGE_LIBUSB_COMPAT to fix this. Fixes: http://autobuild.buildroot.net/results/d19/d1969e6df56835568fb908b7f252aec0915d9fa4/ http://autobuild.buildroot.net/results/f06/f06ed6df6138ab399036c397c3f72d33d64fe0a3/ http://autobuild.buildroot.net/results/bd7/bd7f90f3cc1d2b395f9849eb0630c2602a075bf5/ ... Cc: Samuel Martin <s.martin49@gmail.com> Signed-off-by: Baruch Siach <baruch@tkos.co.il> Reviewed-by: Samuel Martin <s.martin49@gmail.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
* package/openocd: depends on libftdi1 instead of libftdiSamuel Martin2015-03-202-5/+5
| | | | | | | | | Note that, if both libftdi and libftdi1 are available, openocd will prefer libftdi1, so does Buildroot. ;-) Signed-off-by: Samuel Martin <s.martin49@gmail.com> Reviewed-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
* package/openocd: disable aice programmer on non-MMU architectureSamuel Martin2015-01-031-0/+1
| | | | | | | | aice sources use fork function, which is only available on architecture with MMU. Signed-off-by: Samuel Martin <s.martin49@gmail.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
* package/openocd: explicitly disable unselected adaptersSamuel Martin2015-01-031-29/+29
| | | | | | | | Some adapters are automatically enabled, but may not be built because of missing (archecture) dependencies. So, just set the options symetrically. Signed-off-by: Samuel Martin <s.martin49@gmail.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
* openocd: pass --disable-werror to fix build issuesThomas Petazzoni2015-01-021-2/+4
| | | | | | | | | | Should fix: http://autobuild.buildroot.org/results/91d/91d2ae34f14f1978e0985e75f803055d51201a93/ and similar build problems. Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
* openocd: bump to version 0.8.0claurita2015-01-0211-215/+339
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch adds the management of (almost) all the config options of openocd 0.8.0. A BR config variable is added for (almost) every adapter known to openocd and all the dependencies are automatically calculated from the chosen adapters, so only the necessary libraries are built. Note that CMSIS_DAP adapter requires hidapi (not libhid) and hidapi is not actually included in buildroot, so it has been removed. Also zy1000 adapters are actually broken in openocd and have been removed. The host version of the package enables all the possible adapters and the related libraries. [Thomas: - Slightly fixup the commit log. - Rename the patches to the new patch naming convention. - Update hash file using a contribution from Vincent Stehlé. - Move the thread dependency from the OpenOCD option down to each sub-option that actually needs it (when it needs libusb, libusb-compat or libftdi). We keep only one comment, as we would otherwise have to add too many repeatitive comments. - Remove commented options. - Add missing dependency on BR2_ARCH_HAS_ATOMICS when selecting BR2_PACKAGE_LIBFTDI. - Remove trailing white spaces. - Pass -std=gnu99, needed to build with a basic toolchain. - Write the OPENOCD_DEPENDENCIES and OPENOCD_CONF_OPTS conditions in a more compact way. - Adjust indentation for HOST_OPENOCD_CONF_OPTS. - Reword the comment above HOST_OPENOCD_CONF_OPTS.] Signed-off-by: Claudio Laurita <claudio.laurita@integrazionetotale.it> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
* package: add hashes for SourceForge-hosted packagesYann E. MORIN2014-12-281-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Since SourceForge sometimes serves us faulty tarballs, we can tons of autobuild failures: http://autobuild.buildroot.org/results/9fb/9fba5bf086a4e7a29e5f7156ec43847db7aacfc4/ http://autobuild.buildroot.org/results/6c8/6c837b244c45ac3b3a887734a371cd6d226cf216/ ... Fix that by adding hash files for all SourceForge-hosted packages (thos etht did not already have it). We normally prefer to use hashes published by upstream, but hunting them all one by one is a tedious task, so those hashes were all locally computed with a script that searched for SF-hosted packages, downloades the associated tarball, computed the hash, and stored it in the corresponding .hash file. Also, SF publishes sha1 hashes, while I used the stronger sha256, since sha1 is now considered to be relatively weak. Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr> Cc: Peter Korsgaard <jacmet@uclibc.org> Cc: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Cc: Maxime Hadjinlian <maxime.hadjinlian@gmail.com> Cc: Richard Braun <rbraun@sceen.net> Cc: Nathaniel Roach <nroach44@gmail.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
* packages: rename FOO_CONF_OPT into FOO_CONF_OPTSThomas De Schampheleire2014-10-041-5/+5
| | | | | | | | | | | | To be consistent with the recent change of FOO_MAKE_OPT into FOO_MAKE_OPTS, make the same change for FOO_CONF_OPT. Sed command used: find * -type f | xargs sed -i 's#_CONF_OPT\>#&S#g' Signed-off-by: Thomas De Schampheleire <thomas.de.schampheleire@gmail.com> Reviewed-by: "Yann E. MORIN" <yann.morin.1998@free.fr> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
* libftdi: add dependency on atomic operationsAnton Kolesov2014-08-181-0/+1
| | | | | | | | | | This fixes: http://autobuild.buildroot.net/results/6cb25ed954840109c9d0e582e922b0ba9d07e174/ Signed-off-by: Anton Kolesov <Anton.Kolesov@synopsys.com> [yann.morin.1998@free.fr: use the new symbol; remove comment strings] Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
* openocd: add license informationGustavo Zacarias2014-06-251-0/+2
| | | | | Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
* openocd: switch homepage now that berlios is goneGustavo Zacarias2014-06-181-1/+1
| | | | | Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
* Config.in files: unify comments of toolchain option dependenciesThomas De Schampheleire2013-10-141-1/+1
| | | | | | | | This patch lines up the comments in Config.in files that clarify which toolchain options the package depends on. Signed-off-by: Thomas De Schampheleire <thomas.de.schampheleire@gmail.com> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
* Normalize separator size to 80Alexandre Belloni2013-06-061-2/+2
| | | | | Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
* packages: remove all := signsThomas Petazzoni2013-01-201-1/+2
| | | | | | | | | | | Finally get rid of all := used for variable definitions in packages, as we suggest in our manual and during the review of new packages. While I was at it, I also sometimes added a few missing new lines between the header and the first variable definition. Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
* remove rest of the BR2_SOURCEFORGE_MIRROR referencesStefan Fröberg2012-08-281-1/+1
| | | | | Signed-off-by: Stefan Fröberg <stefan.froberg@petroprogram.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
* libusb: needs thread supportGustavo Zacarias2012-07-301-0/+4
| | | | | | | | | | libusb needs thread support, and so do other packages that depend on it. [thomas.petazzoni@free-electrons.com: adds threads dependency to libnfc-llp, which selects libnfc.] Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
* all packages: rename XXXTARGETS to xxx-packageArnout Vandecappelle (Essensium/Mind)2012-07-171-1/+1
| | | | | | | | | | | | | Also remove the redundant $(call ...). This is a purely mechanical change, performed with find package linux toolchain boot -name \*.mk | \ xargs sed -i -e 's/$(eval $(call GENTARGETS))/$(eval $(generic-package))/' \ -e 's/$(eval $(call AUTOTARGETS))/$(eval $(autotools-package))/' \ -e 's/$(eval $(call CMAKETARGETS))/$(eval $(cmake-package))/' Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
* all packages: use new host-xxx-package macrosArnout Vandecappelle (Essensium/Mind)2012-07-171-1/+1
| | | | | | | | | | | This is a purely mechanical change, performed with find package linux toolchain boot -name \*.mk | \ xargs sed -i -e 's/$(eval $(call GENTARGETS,host))/$(eval $(host-generic-package))/' \ -e 's/$(eval $(call AUTOTARGETS,host))/$(eval $(host-autotools-package))/' \ -e 's/$(eval $(call CMAKETARGETS,host))/$(eval $(host-cmake-package))/' Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
* openocd: fix breakage with newer autotoolsGustavo Zacarias2012-06-241-0/+40
| | | | | Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
* openocd: fix libftdi dependency if _FT2XXX option is selectedPeter Korsgaard2012-02-021-0/+1
| | | | Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
* openocd: add host variantThomas Petazzoni2012-02-022-0/+16
| | | | | | | Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Acked-by: Luca Ceresoli <luca@lucaceresoli.net> Acked-by: Thomas De Schampheleire <thomas.de.schampheleire@gmail.com> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
* openocd: libusb patch: append rather than override LDFLAGSPeter Korsgaard2011-10-091-1/+1
| | | | Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
* openocd: remove fixed ldflags breaking buildPeter Korsgaard2011-10-051-0/+37
| | | | | | | The openocd configure script would forcibly add -L/usr/lib to LDFLAGS, causing the cross compiler to use host libraries, breaking the build. Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
* package: remove useless arguments from AUTOTARGETSThomas Petazzoni2011-09-291-1/+1
| | | | | | | | | | Thanks to the pkgparentdir and pkgname functions, we can rewrite the AUTOTARGETS macro in a way that avoids the need for each package to repeat its name and the directory in which it is present. [Peter: pkgdir->pkgparentdir] Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
* package: add openocd supportJean-Christophe PLAGNIOL-VILLARD2011-09-216-0/+158
with only the following Adapters - FTDI FT2xxx/FT4xxx - J-Link (Segger and Atmel SAM-ICE) - Versaloon-Link JTAG Adapter [Peter: Config.in tweaks] Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Cc: Nicolas Ferre <nicolas.ferre@atmel.com> Cc: Patrice Vilchez <patrice.vilchez@atmel.com> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
OpenPOWER on IntegriCloud