<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <p>Hi Tim,</p>
    <p><br>
    </p>
    <div class="moz-cite-prefix">On 07/11/2018 10.17, Tim Harvey wrote:<br>
    </div>
    <blockquote type="cite"
cite="mid:CAJ+vNU2bzK3AD8BV6u_F-eXGdyKjGrrmGkyGT-e2kyRNxEE+zg@mail.gmail.com">
      <meta http-equiv="content-type" content="text/html; charset=UTF-8">
      <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" moz-do-not-send="true">openocd.mk</a>
                b/package/openocd/<a href="http://openocd.mk"
                  moz-do-not-send="true">openocd.mk</a></div>
              <div>index 548d8b8..76594fe 100644</div>
              <div>--- a/package/openocd/<a href="http://openocd.mk"
                  moz-do-not-send="true">openocd.mk</a></div>
              <div>+++ b/package/openocd/<a href="http://openocd.mk"
                  moz-do-not-send="true">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)"
                  moz-do-not-send="true">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"
                  moz-do-not-send="true">git.code.sf.net/p/openocd/code</a></div>
              <div>+OPENCOD_SITE_METHOD = git</div>
            </div>
          </div>
        </div>
      </div>
    </blockquote>
    <p><br>
    </p>
    <p>
    </p>
    <p>Note your spelling error:</p>
    <p>OPENCOD_SITE_METHOD</p>
    <p><br>
    </p>
    <p>Cheers,</p>
    <p>Brad<br>
    </p>
    <p><br>
    </p>
    <p><br>
    </p>
    <blockquote type="cite"
cite="mid:CAJ+vNU2bzK3AD8BV6u_F-eXGdyKjGrrmGkyGT-e2kyRNxEE+zg@mail.gmail.com">
      <div dir="ltr">
        <div dir="ltr">
          <div dir="ltr">
            <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"
                  moz-do-not-send="true">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"
                    moz-do-not-send="true">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>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <pre class="moz-quote-pre" wrap="">_______________________________________________
buildroot mailing list
<a class="moz-txt-link-abbreviated" href="mailto:buildroot@busybox.net">buildroot@busybox.net</a>
<a class="moz-txt-link-freetext" href="http://lists.busybox.net/mailman/listinfo/buildroot">http://lists.busybox.net/mailman/listinfo/buildroot</a>
</pre>
    </blockquote>
  </body>
</html>