openocd_git.bb 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. SUMMARY = "Free and Open On-Chip Debugging, In-System Programming and Boundary-Scan Testing"
  2. LICENSE = "GPL-2.0-only"
  3. LIC_FILES_CHKSUM = "file://COPYING;md5=599d2d1ee7fc84c0467b3d19801db870"
  4. DEPENDS = "libusb-compat libftdi"
  5. RDEPENDS:${PN} = "libusb1"
  6. SRC_URI = " \
  7. git://repo.or.cz/openocd.git;protocol=http;name=openocd;branch=master \
  8. git://repo.or.cz/r/git2cl.git;protocol=http;destsuffix=tools/git2cl;name=git2cl;branch=master \
  9. git://github.com/msteveb/jimtcl.git;protocol=https;destsuffix=git/jimtcl;name=jimtcl;branch=master \
  10. git://repo.or.cz/r/libjaylink.git;protocol=http;destsuffix=git/src/jtag/drivers/libjaylink;name=libjaylink;branch=master \
  11. "
  12. SRCREV_FORMAT = "openocd"
  13. SRCREV_openocd = "91bd4313444c5a949ce49d88ab487608df7d6c37"
  14. SRCREV_git2cl = "8373c9f74993e218a08819cbcdbab3f3564bbeba"
  15. SRCREV_jimtcl = "fcbb4499a6b46ef69e7a95da53e30796e20817f0"
  16. SRCREV_libjaylink = "9aa7a5957c07bb6e862fc1a6d3153d109c7407e4"
  17. PV = "0.12+gitr"
  18. S = "${WORKDIR}/git"
  19. inherit pkgconfig autotools-brokensep gettext
  20. BBCLASSEXTEND += "native nativesdk"
  21. EXTRA_OECONF = "--enable-ftdi --enable-jtag_vpi --enable-buspirate --disable-doxygen-html --disable-werror"
  22. do_configure() {
  23. ./bootstrap nosubmodule
  24. install -m 0755 ${STAGING_DATADIR_NATIVE}/gnu-config/config.guess ${S}/jimtcl/autosetup
  25. install -m 0755 ${STAGING_DATADIR_NATIVE}/gnu-config/config.sub ${S}/jimtcl/autosetup
  26. oe_runconf ${EXTRA_OECONF}
  27. }
  28. do_install() {
  29. oe_runmake DESTDIR=${D} install
  30. if [ -e "${D}${infodir}" ]; then
  31. rm -Rf ${D}${infodir}
  32. fi
  33. if [ -e "${D}${mandir}" ]; then
  34. rm -Rf ${D}${mandir}
  35. fi
  36. if [ -e "${D}${bindir}/.debug" ]; then
  37. rm -Rf ${D}${bindir}/.debug
  38. fi
  39. }
  40. FILES:${PN} = " \
  41. ${datadir}/openocd/* \
  42. ${bindir}/openocd \
  43. "
  44. PACKAGECONFIG[sysfsgpio] = "--enable-sysfsgpio,--disable-sysfsgpio"
  45. PACKAGECONFIG[remote-bitbang] = "--enable-remote-bitbang,--disable-remote-bitbang"
  46. PACKAGECONFIG ??= "sysfsgpio remote-bitbang"
  47. # Can't be built with ccache
  48. CCACHE_DISABLE = "1"