<div dir="ltr"><div dir="ltr"><div dir="ltr">Greetings,<div><br></div><div>I'm trying to alter the openocd package to pull code from a specific git sha. Looking over the manual and searching a bit it seems like the following is the thing to do:</div><div><br></div><div><div>diff --git a/package/openocd/<a href="http://openocd.mk">openocd.mk</a> b/package/openocd/<a href="http://openocd.mk">openocd.mk</a></div><div>index 548d8b8..76594fe 100644</div><div>--- a/package/openocd/<a href="http://openocd.mk">openocd.mk</a></div><div>+++ b/package/openocd/<a href="http://openocd.mk">openocd.mk</a></div><div>@@ -4,9 +4,10 @@</div><div> #</div><div> ################################################################################</div><div> </div><div>-OPENOCD_VERSION = 0.10.0</div><div>+OPENOCD_VERSION = da4b2d5beb</div><div> OPENOCD_SOURCE = openocd-$(OPENOCD_VERSION).tar.bz2</div><div>-OPENOCD_SITE = <a href="http://sourceforge.net/projects/openocd/files/openocd/$(OPENOCD_VERSION)">http://sourceforge.net/projects/openocd/files/openocd/$(OPENOCD_VERSION)</a></div><div>+OPENOCD_SITE = git://<a href="http://git.code.sf.net/p/openocd/code">git.code.sf.net/p/openocd/code</a></div><div>+OPENCOD_SITE_METHOD = git</div><div> OPENOCD_LICENSE = GPL-2.0+</div><div> OPENOCD_LICENSE_FILES = COPYING</div><div> # 0002-configure-enable-build-on-uclinux.patch patches <a href="http://configure.ac">configure.ac</a></div><div><br></div><div><br></div><div>In other words _SITE needs to be the git:// URL and _VERSION should be the branch/tag/sha. However when I build I get:</div><div><br></div><div><div>>>> openocd da4b2d5beb Extracting</div><div>bzcat /usr/src/ventana/buildroot/dl/openocd/openocd-da4b2d5beb.tar.bz2 | tar --s</div><div>trip-components=1 -C /usr/src/ventana/buildroot/output/build/openocd-da4b2d5beb </div><div>  -xf -</div><div>bzcat: /usr/src/ventana/buildroot/dl/openocd/openocd-da4b2d5beb.tar.bz2 is not a</div><div> bzip2 file.</div><div>tar: This does not look like a tar archive  </div><div>tar: Exiting with failure status due to previous errors</div><div>package/<a href="http://pkg-generic.mk:160">pkg-generic.mk:160</a>: recipe for target '/usr/src/ventana/buildroot/output</div><div>/build/openocd-da4b2d5beb/.stamp_extracted' failed</div><div>make[1]: *** [/usr/src/ventana/buildroot/output/build/openocd-da4b2d5beb/.stamp_</div><div>extracted] Error 2</div><div>Makefile:84: recipe for target '_all' failed</div><div>make: *** [_all] Error 2</div></div><div><br></div><div>I thought it was the fact there was an openocd.hash but removing it still fails. Any ideas?</div><div><br></div><div>Best regards,</div><div><br></div><div>Tim</div></div></div></div></div>