From 21f33cf59e5ab2fa056310b681a4b3a569bfcf62 Mon Sep 17 00:00:00 2001 From: Waldemar Brodkorb Date: Tue, 23 Jul 2013 16:33:20 +0200 Subject: update valgrind, add debian patches for armv6 support, works on raspberry pi now --- package/valgrind/patches/patch-configure_in | 41 +++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 package/valgrind/patches/patch-configure_in (limited to 'package/valgrind/patches/patch-configure_in') diff --git a/package/valgrind/patches/patch-configure_in b/package/valgrind/patches/patch-configure_in new file mode 100644 index 000000000..418898ecf --- /dev/null +++ b/package/valgrind/patches/patch-configure_in @@ -0,0 +1,41 @@ +--- valgrind-3.7.0.orig/configure.in 2011-11-05 12:13:30.000000000 +0100 ++++ valgrind-3.7.0/configure.in 2013-07-23 12:27:45.000000000 +0200 +@@ -140,6 +140,8 @@ esac + # configure-time, and distinguishes them from the VGA_*/VGO_*/VGP_* + # variables used when compiling C files. + ++VGCONF_PLATFORM_ARM_ARCH= ++ + AC_CANONICAL_HOST + + AC_MSG_CHECKING([for a supported CPU]) +@@ -176,15 +178,26 @@ case "${host_cpu}" in + ;; + + armv7*) +- AC_MSG_RESULT([ok (${host_cpu})]) +- ARCH_MAX="arm" +- ;; ++ # This means we use a armv7 toolchain - at least Cortex-A8 ++ AC_MSG_RESULT([ok (${host_cpu} using armv7 codepath)]) ++ ARCH_MAX="arm" ++ VGCONF_PLATFORM_ARM_ARCH="-march=armv7 -mcpu=cortex-a8" ++ ;; ++ ++ arm*) ++ # Generic arm toolchain - we will target armv6 ++ AC_MSG_RESULT([(${host_cpu}) - no armv7 toolchain specified, will enforce armv6 when compiling]) ++ ARCH_MAX="arm" ++ VGCONF_PLATFORM_ARM_ARCH="-march=armv6" ++ AC_DEFINE(ARM_ARCH_V6,1,"Defined for v6 architectures") ++ ;; + + *) + AC_MSG_RESULT([no (${host_cpu})]) + AC_MSG_ERROR([Unsupported host architecture. Sorry]) + ;; + esac ++AC_SUBST(VGCONF_PLATFORM_ARM_ARCH) + + #---------------------------------------------------------------------------- + -- cgit v1.2.3