openocd bump to 0.8.0
PATCH 1/1 openocd bump to 0.8.0
--- .../openocd/001-fix-gcc-warning-in-mini51.patch | 13 ++ package/openocd/Config.in | 191 +++++++++++++++++++-- ...s-compilation-host-libsub-was-used-before.patch | 33 ---- ...002-fix-xscale-uninitialise-breakpoint_pc.patch | 20 --- package/openocd/openocd-0003-force-gnu99.patch | 19 -- .../openocd/openocd-0004-force_jimtcl_static.patch | 25 --- .../openocd/openocd-0005-dont-force-ldflags.patch | 37 ---- package/openocd/openocd-0006-automake-compat.patch | 40 ----- package/openocd/openocd.mk | 150 ++++++++++++++-- 9 files changed, 330 insertions(+), 198 deletions(-) create mode 100644 package/openocd/001-fix-gcc-warning-in-mini51.patch delete mode 100644 package/openocd/openocd-0001-fix-cross-compilation-host-libsub-was-used-before.patch delete mode 100644 package/openocd/openocd-0002-fix-xscale-uninitialise-breakpoint_pc.patch delete mode 100644 package/openocd/openocd-0003-force-gnu99.patch delete mode 100644 package/openocd/openocd-0004-force_jimtcl_static.patch delete mode 100644 package/openocd/openocd-0005-dont-force-ldflags.patch delete mode 100644 package/openocd/openocd-0006-automake-compat.patch
package/openocd/001-fix-gcc-warning-in-mini51.patch new file +13 -0
@@ -0,0 +1,13 @@ +diff --git a/src/flash/nor/mini51.c b/src/flash/nor/mini51.c +index 61aee5d..c7ba13a 100644 +--- a/src/flash/nor/mini51.c ++++ b/src/flash/nor/mini51.c +@@ -397,7 +397,7 @@ static int mini51_write(struct flash_bank *bank, const uint8_t *buffer, uint32_t + + static int mini51_probe(struct flash_bank *bank) + { +- uint32_t flash_size; ++ uint32_t flash_size = 0; + int retval; + int num_pages; + uint32_t offset = 0;
package/openocd/Config.in +181 -10
211 lines not on this page · raw message
package/openocd/openocd-0001-fix-cross-compilation-host-libsub-was-used-before.patch deleted +0 -33
@@ -1,33 +0,0 @@ -From 3728c4af7f6303ccedab56ec220797f8f290580e Mon Sep 17 00:00:00 2001 -From: Jean-Christophe PLAGNIOL-VILLARD <[email protected]> -Date: Wed, 10 Aug 2011 00:17:29 +0800 -Subject: [PATCH] fix cross compilation: host libsub was used before - -tested in buildroot - -Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <[email protected]> ---- - configure.in | 7 +++++-- - 1 files changed, 5 insertions(+), 2 deletions(-) - -diff --git a/configure.in b/configure.in -index dfa1e8f..cfe2218 100644 ---- a/configure.in -+++ b/configure.in -@@ -1046,8 +1046,11 @@ build_usb=no - if test $build_jlink = yes -o $build_vsllink = yes -o $build_usbprog = yes -o \ - $build_rlink = yes -o $build_ulink = yes -o $build_armjtagew = yes - then -- AC_CHECK_HEADERS([usb.h],[], -- [AC_MSG_ERROR([usb.h is required to build some OpenOCD driver(s)])]) -+ dnl check for libusb -+ PKG_CHECK_MODULES(LIBUSB, libusb >= 0.1.11) -+ CFLAGS="$CFLAGS $LIBUSB_CFLAGS" -+ LDFLAGS="$LDFLAGS $LIBUSB_LDFLAGS" -+ LIBS="$LIBS $LIBUSB_LIBS" - build_usb=yes - fi - --- -1.7.5.4 -
package/openocd/openocd-0002-fix-xscale-uninitialise-breakpoint_pc.patch deleted +0 -20
@@ -1,20 +0,0 @@ -xscale: fix uninitialise breakpoint_pc - -Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <[email protected]> ---- - src/target/xscale.c | 2 +- - 1 file changed, 1 insertion(+), 1 deletion(-) - -Index: b/src/target/xscale.c -=================================================================== ---- a/src/target/xscale.c -+++ b/src/target/xscale.c -@@ -2811,7 +2811,7 @@ static int xscale_analyze_trace(struct t - struct xscale_common *xscale = target_to_xscale(target); - struct xscale_trace_data *trace_data = xscale->trace.data; - int i, retval; -- uint32_t breakpoint_pc; -+ uint32_t breakpoint_pc = 0; - struct arm_instruction instruction; - uint32_t current_pc = 0; /* initialized when address determined */ -
package/openocd/openocd-0003-force-gnu99.patch deleted +0 -19
@@ -1,19 +0,0 @@ -force gnu99 - -Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <[email protected]> ---- - configure.in | 1 + - 1 file changed, 1 insertion(+) - -Index: b/configure.in -=================================================================== ---- a/configure.in -+++ b/configure.in -@@ -28,6 +28,7 @@ AC_DISABLE_SHARED - AC_PROG_LIBTOOL - AC_SUBST(LIBTOOL_DEPS) - -+CFLAGS="$CFLAGS -std=gnu99" - - dnl configure checks required for Jim files (these are obsolete w/ C99) - AC_C_CONST
package/openocd/openocd-0004-force_jimtcl_static.patch deleted +0 -25
@@ -1,25 +0,0 @@ -force jimtcl to build static - -Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <[email protected]> ---- - jimtcl/auto.def | 5 ----- - 1 file changed, 5 deletions(-) - -Index: b/jimtcl/auto.def -=================================================================== ---- a/jimtcl/auto.def -+++ b/jimtcl/auto.def -@@ -148,13 +148,8 @@ if {[opt-bool references]} { - msg-result "Enabling references" - define JIM_REFERENCES - } --if {[opt-bool shared with-jim-shared]} { -- msg-result "Building shared library" -- define JIM_LIBTYPE shared --} else { - msg-result "Building static library" - define JIM_LIBTYPE static --} - if {[opt-bool install-jim]} { - define install_jim 1 - } else {
package/openocd/openocd-0005-dont-force-ldflags.patch deleted +0 -37
@@ -1,37 +0,0 @@ -[PATCH] don't force library search path / rpath settings - -openocd adds -L$exec_prefix/lib -Wl,rpath,$exec_prefix/lib to the compile -LDFLAGS if it isn't installed into /usr/local, which breaks cross compilation -as the compiler ends up using host libraries. ---- - configure.in | 17 ----------------- - 1 file changed, 17 deletions(-) - -Index: openocd-0.5.0/configure.in -=================================================================== ---- openocd-0.5.0.orig/configure.in -+++ openocd-0.5.0/configure.in -@@ -174,23 +174,6 @@ - # Let make expand exec_prefix. - test x"$OCDxprefix" = xNONE && OCDxprefix="$OCDprefix" - --# what matters is the "exec-prefix" --if test "$OCDxprefix" != "$ac_default_prefix" --then -- # We are installing in a non-standard place -- # Nonstandard --prefix and/or --exec-prefix -- # We have an override of some sort. -- # use build specific install library dir -- -- LDFLAGS="$LDFLAGS -L$OCDxprefix/lib" -- # RPATH becomes an issue on Linux only -- if test $host_os = linux-gnu || test $host_os = linux ; then -- LDFLAGS="$LDFLAGS -Wl,-rpath,$OCDxprefix/lib" -- fi -- # The "INCDIR" is also usable -- CFLAGS="$CFLAGS -I$includedir" --fi -- - AC_ARG_WITH(ftd2xx, - AS_HELP_STRING([--with-ftd2xx=<PATH>],[This option has been removed.]), - [
package/openocd/openocd-0006-automake-compat.patch deleted +0 -40
@@ -1,40 +0,0 @@ -Backport from openocd commit 737a52d7b22b1774acc5d20f9bd25000a70ac116 -Fix for automake 1.11.2+ - -Signed-off-by: Gustavo Zacarias <[email protected]> - -diff -Nura openocd-0.5.0/src/jtag/drivers/Makefile.am openocd-0.5.0.automake/src/jtag/drivers/Makefile.am ---- openocd-0.5.0/src/jtag/drivers/Makefile.am 2011-08-09 02:34:19.000000000 -0300 -+++ openocd-0.5.0.automake/src/jtag/drivers/Makefile.am 2012-05-01 13:57:01.007561480 -0300 -@@ -5,7 +5,8 @@ - libocdjtagdrivers_la_SOURCES = \ - $(DRIVERFILES) - --nobase_dist_pkglib_DATA = -+ocddatadir = $(pkglibdir) -+nobase_dist_ocddata_DATA = - - ULINK_FIRMWARE = $(srcdir)/OpenULINK - -@@ -64,7 +65,7 @@ - endif - if ULINK - DRIVERFILES += ulink.c --nobase_dist_pkglib_DATA += $(ULINK_FIRMWARE)/ulink_firmware.hex -+nobase_dist_ocddata_DATA += $(ULINK_FIRMWARE)/ulink_firmware.hex - endif - if VSLLINK - DRIVERFILES += vsllink.c -diff -Nura openocd-0.5.0/src/target/Makefile.am openocd-0.5.0.automake/src/target/Makefile.am ---- openocd-0.5.0/src/target/Makefile.am 2011-08-09 02:34:19.000000000 -0300 -+++ openocd-0.5.0.automake/src/target/Makefile.am 2012-05-01 13:57:01.934567076 -0300 -@@ -165,7 +165,7 @@ - avr32_mem.h \ - avr32_regs.h - --nobase_dist_pkglib_DATA = --nobase_dist_pkglib_DATA += ecos/at91eb40a.elf -+ocddatadir = $(pkglibdir) -+nobase_dist_ocddata_DATA = ecos/at91eb40a.elf - - MAINTAINERCLEANFILES = $(srcdir)/Makefile.in
package/openocd/openocd.mk +136 -14
179 lines not on this page · raw message
Signature · 1 line
2.1.1
PATCH 1/1 openocd bump to 0.8.0
Dear Claudio Laurita,
Thanks for this contribution! See some comments below.
Quoted 11 lines · Claudio Laurita
Signed-off-by Claudio Laurita <[email protected]>--- .../openocd/001-fix-gcc-warning-in-mini51.patch | 13 ++ package/openocd/Config.in | 191 +++++++++++++++++++-- ...s-compilation-host-libsub-was-used-before.patch | 33 ---- ...002-fix-xscale-uninitialise-breakpoint_pc.patch | 20 --- package/openocd/openocd-0003-force-gnu99.patch | 19 -- .../openocd/openocd-0004-force_jimtcl_static.patch | 25 --- .../openocd/openocd-0005-dont-force-ldflags.patch | 37 ---- package/openocd/openocd-0006-automake-compat.patch | 40 ----- package/openocd/openocd.mk | 150 ++++++++++++++--
Quoted 8 lines
9 files changed, 330 insertions(+), 198 deletions(-) create mode 100644 package/openocd/001-fix-gcc-warning-in-mini51.patch delete mode 100644 package/openocd/openocd-0001-fix-cross-compilation-host-libsub-was-used-before.patch delete mode 100644 package/openocd/openocd-0002-fix-xscale-uninitialise-breakpoint_pc.patch delete mode 100644 package/openocd/openocd-0003-force-gnu99.patch delete mode 100644 package/openocd/openocd-0004-force_jimtcl_static.patch delete mode 100644 package/openocd/openocd-0005-dont-force-ldflags.patch delete mode 100644 package/openocd/openocd-0006-automake-compat.patch
The patch is doing a lot more than just bumping the version, so it would be good to have some details about the changes that are made.
package/openocd/001-fix-gcc-warning-in-mini51.patch
Quoted 6 lines
package/openocd/001-fix-gcc-warning-in-mini51.patch new file +0
-0
Patches should have a description + Signed-off-by. See
http://buildroot.org/downloads/manual/manual.html#_format_and_licensing_of_the_package_patches.
package/openocd/001-fix-gcc-warning-in-mini51.patch
Quoted 2 lines
package/openocd/001-fix-gcc-warning-in-mini51.patch new file +1
-1-HOST_OPENOCD_DEPENDENCIES = host-libusb-compat host-libftdi +HOST_OPENOCD_CONF_OPTS = $(OPENOCD_CONF_OPTS)
Target options should normally not affect the build of host tools:
remember that someone can enable the host OpenOCD without building the target OpenOCD.
package/openocd/001-fix-gcc-warning-in-mini51.patch
Quoted 2 lines
package/openocd/001-fix-gcc-warning-in-mini51.patch new file +2
-0+# force disabling shared libraries to let jimtcl build its static version +SHARED_STATIC_LIBS_OPTS=
This is clearly not a solution: the namespace of variables in Buildroot is global, so you are not allowed to modify such a global variable. You can always force --enable-static --disable-shared in OPENOCD_CONF_OPTS if needed.
Best regards,
Thomas
Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons Embedded Linux, Kernel and Android engineering http://free-electrons.com
PATCH 1/1 openocd bump to 0.8.0
This is my first tentative of "real" collaboration, so thank you for the patience.
Quoted 1 line
The patch is doing a lot more than just bumping the version, so it
would be good to have some details about the changes that are made.
Ok, I thought it was not a lot ;-)
Quoted 7 lines
package/openocd/001-fix-gcc-warning-in-mini51.patch
Quoted 5 lines
package/openocd/001-fix-gcc-warning-in-mini51.patch new file +0
-0Patches should have a description + Signed-off-by. See
http://buildroot.org/downloads/manual/manual.html#_format_and_licensing_of_the_package_patches.
Ok. I thought it was inherited from the main patch. Silly thought.
Quoted 5 lines
package/openocd/001-fix-gcc-warning-in-mini51.patch
Quoted 2 lines
package/openocd/001-fix-gcc-warning-in-mini51.patch new file +1
-1-HOST_OPENOCD_DEPENDENCIES = host-libusb-compat host-libftdi +HOST_OPENOCD_CONF_OPTS = $(OPENOCD_CONF_OPTS)Target options should normally not affect the build of host tools:
remember that someone can enable the host OpenOCD without building the target OpenOCD.
You're perfectly right, obviously. I made an hard shortcut ;-) I tried to find a way to avoid duplicating the logic of selecting options and finding related real dependencies. In current version it's not allowed any choice for the host and I think it's a limit. Duplicating everything is a bit redundant, but my idea was terribly based on my actual needs. I apologize.
Quoted 7 lines
package/openocd/001-fix-gcc-warning-in-mini51.patch
Quoted 2 lines
package/openocd/001-fix-gcc-warning-in-mini51.patch new file +2
-0+# force disabling shared libraries to let jimtcl build its static version +SHARED_STATIC_LIBS_OPTS=This is clearly not a solution: the namespace of variables in Buildroot is global, so you are not allowed to modify such a global variable. You can always force --enable-static --disable-shared in
OPENOCD_CONF_OPTSif needed.
This is a problem.
If I understand, changing this variable would affect every successive step of the global build. Is this the point? Not bad, as a mistake. I should have studied better the main makefile. Sorry.
Anyway, SHARED_STATIC_LIBS_OPT is added by default to the configure parameters. If your default is having shared preferred, It ends up in a first assignment to --enable-shared (the global) and a second one to --disable-shared (the local). Unfortunately, jimtcl ignores the second one and keeps building only the shared lib, making openocd build fail. The current BR implementation applies a patch to auto.def of jimtcl to force it ignore -enable-shared. I don't like much this approach and tried to find an alternative to avoid the patch. So, the only way is redefining OPENOCD_CONFIGURE_CMDS entirely?
Thank you very much for your attention.
Claudio
PATCH 1/1 openocd bump to 0.8.0
Dear Claudio Laurita,
Quoted 2 lines · Claudio Laurita
This is my first tentative of "real" collaboration, so thank you for the patience.
Sure, no problem. We try to welcome contributions for everyone, and your contribution is very welcome.
Quoted 4 lines
Quoted 1 line
The patch is doing a lot more than just bumping the version, so it
would be good to have some details about the changes that are made.
Ok, I thought it was not a lot ;-)
Well, a patch doing a version bump normally is nothing but a one-liner changing the version. Here you're adding a new patch, removing many patches, adding a large number of configuration options, etc.
Quoted 11 lines
Quoted 5 lines
package/openocd/openocd.mk line 162
Quoted 2 lines
package/openocd/openocd.mk +1
-1-HOST_OPENOCD_DEPENDENCIES = host-libusb-compat host-libftdi +HOST_OPENOCD_CONF_OPTS = $(OPENOCD_CONF_OPTS)Target options should normally not affect the build of host tools:
remember that someone can enable the host OpenOCD without building the target OpenOCD.You're perfectly right, obviously. I made an hard shortcut ;-) I tried to find a way to avoid duplicating the logic of selecting options and finding related real dependencies. In current version it's not allowed any choice for the host and I think it's a limit. Duplicating everything is a bit redundant, but my idea was terribly based on my actual needs. I apologize.
We unfortunately don't really have a very good solution here. My proposal would be the following one:
* For the target version, provide many configuration options to only build what's really needed, as we need to save space on the target and build only the features that will be useful.
* For the host version, just build all the possible features (i.e support for all the JTAG interfaces, etc.). I don't think OpenOCD is that long to build, so it should be a reasonable compromise I believe.
Quoted 5 lines
This is a problem.
If I understand, changing this variable would affect every successive step of the global build. Is this the point? Not bad, as a mistake. I should have studied better the main makefile. Sorry. Anyway,SHARED_STATIC_LIBS_OPTis added by default to the configure
Quoted 8 lines
parameters. If your default is having shared preferred, It ends up in a first assignment to --enable-shared (the global) and a second one to --disable-shared (the local). Unfortunately, jimtcl ignores the second one and keeps building only the shared lib, making openocd build fail. The current BR implementation applies a patch to auto.def of jimtcl to force it ignore -enable-shared. I don't like much this approach and tried to find an alternative to avoid the patch. So, the only way is redefining
OPENOCD_CONFIGURE_CMDSentirely?
Hum. I believe the easiest way is to keep the patch as is. It is really a deficiency of the OpenOCD build system to not build both the static *and* shared versions of jimctl if --enable-shared --enable-static are passed.
Thanks!
Thomas
Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons Embedded Linux, Kernel and Android engineering http://free-electrons.com
PATCH 1/1 openocd bump to 0.8.0
Il 09/10/2014 09:57, Thomas Petazzoni ha scritto:
Quoted 9 lines
Dear Claudio Laurita,
Quoted 2 lines · Claudio Laurita
This is my first tentative of "real" collaboration, so thank you for the patience.
Sure, no problem. We try to welcome contributions for everyone, and your contribution is very welcome.
Thank you very much. BR is doing much for me in my everyday work. I'm trying to do something for BR. I'll do my best.
Quoted 7 lines
Quoted 4 lines
Quoted 1 line
The patch is doing a lot more than just bumping the version, so it
would be good to have some details about the changes that are made.
Ok, I thought it was not a lot ;-)
Well, a patch doing a version bump normally is nothing but a one-liner changing the version. Here you're adding a new patch, removing many patches, adding a large number of configuration options, etc.
Received!
Quoted 14 lines
Quoted 11 lines
Quoted 5 lines
package/openocd/openocd.mk line 162
Quoted 2 lines
package/openocd/openocd.mk +1
-1-HOST_OPENOCD_DEPENDENCIES = host-libusb-compat host-libftdi +HOST_OPENOCD_CONF_OPTS = $(OPENOCD_CONF_OPTS)Target options should normally not affect the build of host tools:
remember that someone can enable the host OpenOCD without building the target OpenOCD.You're perfectly right, obviously. I made an hard shortcut ;-) I tried to find a way to avoid duplicating the logic of selecting options and finding related real dependencies. In current version it's not allowed any choice for the host and I think it's a limit. Duplicating everything is a bit redundant, but my idea was terribly based on my actual needs. I apologize.
We unfortunately don't really have a very good solution here. My proposal would be the following one:
Quoted 8 lines
* For the target version, provide many configuration options to only build what's really needed, as we need to save space on the target and build only the features that will be useful.
* For the host version, just build all the possible features (i.e support for all the JTAG interfaces, etc.). I don't think OpenOCD is that long to build, so it should be a reasonable compromise I believe.
Very wise suggestion. I finally caught the basic philosophy and I like it.
Quoted 13 lines
Quoted 5 lines
This is a problem.
If I understand, changing this variable would affect every successive step of the global build. Is this the point? Not bad, as a mistake. I should have studied better the main makefile. Sorry. Anyway,SHARED_STATIC_LIBS_OPTis added by default to the configureQuoted 8 lines
parameters. If your default is having shared preferred, It ends up in a first assignment to --enable-shared (the global) and a second one to --disable-shared (the local). Unfortunately, jimtcl ignores the second one and keeps building only the shared lib, making openocd build fail. The current BR implementation applies a patch to auto.def of jimtcl to force it ignore -enable-shared. I don't like much this approach and tried to find an alternative to avoid the patch. So, the only way is redefining
OPENOCD_CONFIGURE_CMDSentirely?
Quoted 4 lines
Hum. I believe the easiest way is to keep the patch as is. It is really a deficiency of the OpenOCD build system to not build both the static *and* shared versions of jimctl if --enable-shared --enable-static are passed.
I agree. OpenOCD build system is a bit "particular". But, giving the right options (from their point of view) we get the right result (from our point of view too).
So I'd not define it "buggy", just "different". A buggy thing needs patching, a different one needs flexibility. Maybe this could be the right case to use the overriding features of BR. A custom build system, a custom configure command. It sounds logic to me. Isn't it? Anyway, it would be nice to have a way to modify the standard BR configure command, instead of replacing it totally. This is what I was looking for with my first terrific tentative. A single line solving everything (but destroying all the rest, a modest side effect for the sake of elegance). As this is a sort of exercise/challenge for me, I wasn't looking for the easiest way, but the cleanest one, or the most elegant, if you prefer. But I don't want to abuse of your time, just to learn something.
Thanks for your teaching effort.
Claudio
PATCH 1/1 openocd bump to 0.8.0
Dear Claudio Laurita,
Quoted 2 lines · Claudio Laurita
Thank you very much. BR is doing much for me in my everyday work. I'm trying to do something for BR. I'll do my best.
And that's much appreciated, thanks!
Quoted 9 lines
Quoted 8 lines
* For the target version, provide many configuration options to only build what's really needed, as we need to save space on the target and build only the features that will be useful.
* For the host version, just build all the possible features (i.e support for all the JTAG interfaces, etc.). I don't think OpenOCD is that long to build, so it should be a reasonable compromise I believe.
Very wise suggestion. I finally caught the basic philosophy and I like it.
Ok, great.
Quoted 6 lines
I agree. OpenOCD build system is a bit "particular". But, giving the right options (from their point of view) we get the right result (from our point of view too).
So I'd not define it "buggy", just "different". A buggy thing needs patching, a different one needs flexibility. Maybe this could be the right case to use the overriding features of BR. A custom build system,
Quoted 8 lines
a custom configure command. It sounds logic to me. Isn't it? Anyway, it would be nice to have a way to modify the standard BR configure command, instead of replacing it totally. This is what I was looking for with my first terrific tentative. A single line solving everything (but destroying all the rest, a modest side effect for the sake of elegance). As this is a sort of exercise/challenge for me, I wasn't looking for the easiest way, but the cleanest one, or the most elegant, if you prefer. But I don't want to abuse of your time, just to learn something.
No, it's buggy: the OpenOCD build system is based on the autotools, and the autotools normally guarantee that you can do:
--enable-foo --disable-foo
and be sure that "foo" will be disabled. The fact that OpenOCD doesn't comply with that makes it incorrect.
The reason why we don't allow to change the base options is because you never need to do so: you can override them as I just exposed above.
And the build system of OpenOCD is really buggy: if you specify --enable-shared --enable-static, it builds a shared variant of jimtcl, but OpenOCD tries to link against the static variant. This is not coherent at all.
Another option you could look at is to use the existing Buildroot jimtcl package, instead of relying on the jimtcl implementation built into OpenOCD. I've seen that OpenOCD has an option to use an external jimtcl implementation.
Best regards,
Thomas
Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons Embedded Linux, Kernel and Android engineering http://free-electrons.com
PATCH 1/1 openocd bump to 0.8.0
Il 09/10/2014 13:28, Thomas Petazzoni ha scritto:
Quoted 9 lines
No, it's buggy: the OpenOCD build system is based on the autotools, and the autotools normally guarantee that you can do: --enable-foo --disable-foo and be sure that "foo" will be disabled. The fact that OpenOCD doesn't comply with that makes it incorrect. The reason why we don't allow to change the base options is because you never need to do
so: you can override them as I just exposed above. And the build system of OpenOCD is really buggy: if you specify --enable-shared --enable-static, it builds a shared variant of jimtcl, but OpenOCD tries to link against the static variant. This is not coherent at all.
OK, let's opt for buggy.
Quoted 4 lines
Another option you could look at is to use the existing Buildroot jimtcl package, instead of relying on the jimtcl implementation built into OpenOCD. I've seen that OpenOCD has an option to use an external jimtcl implementation. Best regards, Thomas
I was aware of the external option, but the actual BR package script for jimtcl suffers exactly of the same problem. No patches applied there and no autotools-package called. A custom configure command and generic-package management. But no way to build a static library if --enable-shared is globally adopted.
Anyway, I collected enough information to start working on release 2. Just need some spare hours, now.
Thanks a lot
Claudio
PATCH 1/1 openocd bump to 0.8.0
Dear Claudio Laurita,
Quoted 8 lines · Claudio Laurita
I was aware of the external option, but the actual BR package script for jimtcl suffers exactly of the same problem. No patches applied there and no autotools-package called. A custom configure command and generic-package management. But no way to build a static library if --enable-shared is globally adopted.
Anyway, I collected enough information to start working on release 2. Just need some spare hours, now.
Do you think you will have some time to work on an updated patch to bump OpenOCD to 0.8.0 ?
Thanks!
Thomas
Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons Embedded Linux, Kernel and Android engineering http://free-electrons.com
PATCH 1/1 openocd bump to 0.8.0
Claudio,
Any news about your OpenOCD patch? A bump to 0.8.0 would be very welcome.
Thanks!
Thomas
Quoted 19 lines · Thomas Petazzoni
Dear Claudio Laurita,
Quoted 8 lines · Claudio Laurita
I was aware of the external option, but the actual BR package script for jimtcl suffers exactly of the same problem. No patches applied there and no autotools-package called. A custom configure command and generic-package management. But no way to build a static library if --enable-shared is globally adopted.
Anyway, I collected enough information to start working on release 2. Just need some spare hours, now.
Do you think you will have some time to work on an updated patch to bump OpenOCD to 0.8.0 ?
Thanks!
Thomas
Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons Embedded Linux, Kernel and Android engineering http://free-electrons.com