openocd: added v0.4.0
PATCH 1/1 openocd: added v0.4.0
* includes patch to prevent CROSS COMPILE Badness
* configure requires --enable-maintainer-mode to generate version.texi
Signed-off-by Neil MacMunn <[email protected]>
--- .../openocd/files/make-include-path-relative.patch | 13 +++++++++++ recipes/openocd/openocd_0.4.bb | 23 ++++++++++++++++++++ 2 files changed, 36 insertions(+), 0 deletions(-) create mode 100644 recipes/openocd/files/make-include-path-relative.patch create mode 100644 recipes/openocd/openocd_0.4.bb
recipes/openocd/files/make-include-path-relative.patch new file +13 -0
@@ -0,0 +1,13 @@ +diff --git a/configure.in.orig b/configure.in +index 4681aeb..07f57f3 100644 +--- a/configure.in ++++ b/configure.in.modified +@@ -186,7 +186,7 @@ then + LDFLAGS="$LDFLAGS -Wl,-rpath,$OCDxprefix/lib" + fi + # The "INCDIR" is also usable +- CFLAGS="$CFLAGS -I$includedir" ++ CFLAGS="$CFLAGS -I$sysroot/include" + fi + + AC_ARG_WITH(ftd2xx,
recipes/openocd/openocd_0.4.bb new file +23 -0
@@ -0,0 +1,23 @@ +DESCRIPTION = "Free and Open On-Chip Debugging, In-System Programming and Boundary-Scan Testing" +HOMEPAGE = "http://openocd.berlios.de/" +LICENSE = "GPL" +SRCREV = "56e74908d17d740db0a376f354c21e6608e8af8d" +PV = "0.4" +PR = "r0" + +DEPENDS = "libftdi" +EXTRA_OECONF = " --enable-ft2232_libftdi --disable-werror --enable-maintainer-mode" + +SRC_URI = "git://openocd.git.sourceforge.net/gitroot/openocd/openocd;protocol=http;branch=master \ + file://make-include-path-relative.patch" +S = "${WORKDIR}/git" + +inherit autotools + +do_configure_append() { + for i in $(find ${S} -name Makefile) ; do + sed -i -e 's:-I/usr/include:${STAGING_INCDIR}:g' $i + sed -i -e 's:-L/usr/lib:-L${STAGING_LIBDIR}:g' $i + done +} +
Signature · 1 line
1.7.1