* [PATCH 2/5] quota_4.01.bb: add e2fsprogs in DEPENDS
2013-02-05 17:46 [PATCH 1/5] glib: disable selinux for native builds Matthew McClintock
@ 2013-02-05 17:46 ` Matthew McClintock
2013-02-05 17:46 ` [PATCH 3/5] libpfm4_4.3.0.bb: add libpfm4 recipe needed by oprofile for ppc Matthew McClintock
` (2 subsequent siblings)
3 siblings, 0 replies; 5+ messages in thread
From: Matthew McClintock @ 2013-02-05 17:46 UTC (permalink / raw)
To: openembedded-core
Fixes:
| /local/home/mattsm/git/poky/build-master/tmp/sysroots/x86_64-linux/usr/libexec/ppce300c3-poky-linux/gcc/powerpc-poky-linux/4.7.2/ld: cannot find -lext2fs
Signed-off-by: Matthew McClintock <msm@freescale.com>
---
meta/recipes-extended/quota/quota_4.01.bb | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/meta/recipes-extended/quota/quota_4.01.bb b/meta/recipes-extended/quota/quota_4.01.bb
index 1cb6650..80159a9 100644
--- a/meta/recipes-extended/quota/quota_4.01.bb
+++ b/meta/recipes-extended/quota/quota_4.01.bb
@@ -6,7 +6,7 @@ LICENSE = "BSD & GPLv2+ & LGPLv2.1+"
LIC_FILES_CHKSUM = "file://quota.c;beginline=1;endline=33;md5=331c7d77744bfe0ad24027f0651028ec \
file://rquota_server.c;beginline=1;endline=20;md5=fe7e0d7e11c6f820f8fa62a5af71230f \
file://svc_socket.c;beginline=1;endline=17;md5=24d5a8792da45910786eeac750be8ceb"
-PR = "r0"
+PR = "r1"
SRC_URI = "${SOURCEFORGE_MIRROR}/project/linuxquota/quota-tools/${PV}/quota-${PV}.tar.gz"
@@ -15,7 +15,7 @@ SRC_URI[sha256sum] = "a36300bbc126b79b745bf937245092808b4585aa3309ef3335d4ab9d87
S = "${WORKDIR}/quota-tools"
-DEPENDS = "gettext-native"
+DEPENDS = "gettext-native e2fsprogs"
inherit autotools gettext
--
1.7.9.7
^ permalink raw reply related [flat|nested] 5+ messages in thread* [PATCH 3/5] libpfm4_4.3.0.bb: add libpfm4 recipe needed by oprofile for ppc
2013-02-05 17:46 [PATCH 1/5] glib: disable selinux for native builds Matthew McClintock
2013-02-05 17:46 ` [PATCH 2/5] quota_4.01.bb: add e2fsprogs in DEPENDS Matthew McClintock
@ 2013-02-05 17:46 ` Matthew McClintock
2013-02-05 17:46 ` [PATCH 4/5] kernel-arch.bbclass: don't pass extra args to KERNEL_{CC, LD, AR} Matthew McClintock
2013-02-05 17:46 ` [PATCH 5/5] oprofile: fix cross compile on powerpc and add libpfm4 dep Matthew McClintock
3 siblings, 0 replies; 5+ messages in thread
From: Matthew McClintock @ 2013-02-05 17:46 UTC (permalink / raw)
To: openembedded-core
Signed-off-by: Matthew McClintock <msm@freescale.com>
---
meta/recipes-kernel/libpfm/libpfm4_4.3.0.bb | 26 ++++++++++++++++++++++++++
1 file changed, 26 insertions(+)
create mode 100644 meta/recipes-kernel/libpfm/libpfm4_4.3.0.bb
diff --git a/meta/recipes-kernel/libpfm/libpfm4_4.3.0.bb b/meta/recipes-kernel/libpfm/libpfm4_4.3.0.bb
new file mode 100644
index 0000000..460029f
--- /dev/null
+++ b/meta/recipes-kernel/libpfm/libpfm4_4.3.0.bb
@@ -0,0 +1,26 @@
+SUMMARY = "Monitoring tools exploiting the performance monitoring events"
+DESCRIPTION = "This package provides a library, called libpfm4 which is used to develop \
+monitoring tools exploiting the performance monitoring events such as those \
+provided by the Performance Monitoring Unit (PMU) of modern processors."
+HOMEPAGE = "http://perfmon2.sourceforge.net/"
+BUGTRACKER = "http://sourceforge.net/tracker/?group_id=144822&atid=759953&source=navbar"
+
+LICENSE = "MIT"
+LIC_FILES_CHKSUM = "file://COPYING;md5=0de488f3bd4424e308e2e399cb99c788"
+
+SECTION = "devel"
+
+SRC_URI = "http://downloads.sourceforge.net/project/perfmon2/libpfm4/libpfm-4.3.0.tar.gz"
+
+SRC_URI[md5sum] = "0ab272dbdbb759b852ba8bd06db030ef"
+SRC_URI[sha256sum] = "a23eb9affbff279e13563a39317c0ad71c4de28908d4243c8bc109138430cc3b"
+
+EXTRA_OEMAKE = "DESTDIR=\"${D}\" PREFIX=\"${prefix}\" LIBDIR=\"${libdir}\" LDCONFIG=\"true\""
+EXTRA_OEMAKE_append_powerpc = " ARCH=\"powerpc\""
+EXTRA_OEMAKE_append_powerpc64 = " ARCH=\"powerpc\" BITMODE=\"64\""
+
+S = "${WORKDIR}/libpfm-${PV}"
+
+do_install () {
+ oe_runmake install
+}
--
1.7.9.7
^ permalink raw reply related [flat|nested] 5+ messages in thread* [PATCH 4/5] kernel-arch.bbclass: don't pass extra args to KERNEL_{CC, LD, AR}
2013-02-05 17:46 [PATCH 1/5] glib: disable selinux for native builds Matthew McClintock
2013-02-05 17:46 ` [PATCH 2/5] quota_4.01.bb: add e2fsprogs in DEPENDS Matthew McClintock
2013-02-05 17:46 ` [PATCH 3/5] libpfm4_4.3.0.bb: add libpfm4 recipe needed by oprofile for ppc Matthew McClintock
@ 2013-02-05 17:46 ` Matthew McClintock
2013-02-05 17:46 ` [PATCH 5/5] oprofile: fix cross compile on powerpc and add libpfm4 dep Matthew McClintock
3 siblings, 0 replies; 5+ messages in thread
From: Matthew McClintock @ 2013-02-05 17:46 UTC (permalink / raw)
To: openembedded-core
Commit a3ca06c3b45c791dd38dbf154ad0fc62b4063475 added extra args to
KERNEL_CC, these revert that bit while maintaining machine additions
in TARGET_??_KERNEL_ARCH
Signed-off-by: Matthew McClintock <msm@freescale.com>
---
meta/classes/kernel-arch.bbclass | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/meta/classes/kernel-arch.bbclass b/meta/classes/kernel-arch.bbclass
index a51e82b..b3b71ba 100644
--- a/meta/classes/kernel-arch.bbclass
+++ b/meta/classes/kernel-arch.bbclass
@@ -52,7 +52,7 @@ HOST_LD_KERNEL_ARCH ?= "${TARGET_LD_KERNEL_ARCH}"
TARGET_AR_KERNEL_ARCH ?= ""
HOST_AR_KERNEL_ARCH ?= "${TARGET_AR_KERNEL_ARCH}"
-KERNEL_CC = "${CC} ${HOST_CC_KERNEL_ARCH}"
-KERNEL_LD = "${LD} ${HOST_LD_KERNEL_ARCH}"
-KERNEL_AR = "${AR} ${HOST_AR_KERNEL_ARCH}"
+KERNEL_CC = "${CCACHE}${HOST_PREFIX}gcc ${HOST_CC_KERNEL_ARCH}"
+KERNEL_LD = "${CCACHE}${HOST_PREFIX}ld ${HOST_LD_KERNEL_ARCH}"
+KERNEL_AR = "${CCACHE}${HOST_PREFIX}ar ${HOST_AR_KERNEL_ARCH}"
--
1.7.9.7
^ permalink raw reply related [flat|nested] 5+ messages in thread* [PATCH 5/5] oprofile: fix cross compile on powerpc and add libpfm4 dep
2013-02-05 17:46 [PATCH 1/5] glib: disable selinux for native builds Matthew McClintock
` (2 preceding siblings ...)
2013-02-05 17:46 ` [PATCH 4/5] kernel-arch.bbclass: don't pass extra args to KERNEL_{CC, LD, AR} Matthew McClintock
@ 2013-02-05 17:46 ` Matthew McClintock
3 siblings, 0 replies; 5+ messages in thread
From: Matthew McClintock @ 2013-02-05 17:46 UTC (permalink / raw)
To: openembedded-core
Fixes [YOCTO #3717]
Signed-off-by: Matthew McClintock <msm@freescale.com>
---
.../0001-fix-powerpc-cross-compiling.patch | 35 ++++++++++++++++++++
meta/recipes-kernel/oprofile/oprofile_0.9.8.bb | 7 ++--
2 files changed, 40 insertions(+), 2 deletions(-)
create mode 100644 meta/recipes-kernel/oprofile/oprofile/0001-fix-powerpc-cross-compiling.patch
diff --git a/meta/recipes-kernel/oprofile/oprofile/0001-fix-powerpc-cross-compiling.patch b/meta/recipes-kernel/oprofile/oprofile/0001-fix-powerpc-cross-compiling.patch
new file mode 100644
index 0000000..d4dffb1
--- /dev/null
+++ b/meta/recipes-kernel/oprofile/oprofile/0001-fix-powerpc-cross-compiling.patch
@@ -0,0 +1,35 @@
+Upstream-Status: Submitted
+
+From cd8aafe5ca48e8d809188df6e42f20efd5cbefd1 Mon Sep 17 00:00:00 2001
+From: Matthew McClintock <msm@freescale.com>
+Date: Tue, 5 Feb 2013 11:05:00 -0600
+Subject: [PATCH] fix powerpc cross compiling
+
+You can't determine the target for running on by running uname
+on the build machine. Use a better method instead.
+
+Signed-off-by: Matthew McClintock <msm@freescale.com>
+---
+ configure.ac | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/configure.ac b/configure.ac
+index a9b1ee4..4b73cdd 100644
+--- a/configure.ac
++++ b/configure.ac
+@@ -155,10 +155,10 @@ fi
+
+ AC_DEFINE_UNQUOTED(HAVE_PERF_EVENTS, $HAVE_PERF_EVENTS, [Kernel support for perf_events exists])
+
++AC_CANONICAL_HOST
+ if test "$HAVE_PERF_EVENTS" = "1"; then
+ PFM_LIB=
+- arch="`uname -m`"
+- if test "$arch" = "ppc64" || test "$arch" = "ppc"; then
++ if test "$host_cpu" = "powerpc"; then
+ AC_CHECK_HEADER(perfmon/pfmlib.h,,[AC_MSG_ERROR([pfmlib.h not found; usually provided in papi devel package])])
+ AC_CHECK_LIB(pfm,pfm_get_os_event_encoding, HAVE_LIBPFM3='0'; HAVE_LIBPFM='1', [
+ AC_CHECK_LIB(pfm, pfm_get_event_name, HAVE_LIBPFM3='1'; HAVE_LIBPFM='1',
+--
+1.7.9.7
+
diff --git a/meta/recipes-kernel/oprofile/oprofile_0.9.8.bb b/meta/recipes-kernel/oprofile/oprofile_0.9.8.bb
index 6075163..79363a6 100644
--- a/meta/recipes-kernel/oprofile/oprofile_0.9.8.bb
+++ b/meta/recipes-kernel/oprofile/oprofile_0.9.8.bb
@@ -1,15 +1,18 @@
require oprofile.inc
-PR = "${INC_PR}.1"
+PR = "${INC_PR}.2"
DEPENDS += "virtual/kernel"
+DEPENDS_append_powerpc = " libpfm4"
+DEPENDS_append_powerpc64 = " libpfm4"
SRC_URI += "${SOURCEFORGE_MIRROR}/${BPN}/${BPN}-${PV}.tar.gz \
file://0001-Add-rmb-definition-for-AArch64-architecture.patch \
file://0001-OProfile-doesn-t-build-for-32-bit-ppc-the-operf_util.patch \
file://0001-Handle-early-perf_events-kernel-without-PERF_RECORD_.patch \
file://0001-Fix-up-configure-to-handle-architectures-that-do-not.patch \
- file://0001-Change-configure-to-look-for-libpfm4-function-first-.patch"
+ file://0001-Change-configure-to-look-for-libpfm4-function-first-.patch \
+ file://0001-fix-powerpc-cross-compiling.patch "
SRC_URI[md5sum] = "6d127023af1dd1cf24e15411229f3cc8"
SRC_URI[sha256sum] = "ab45900fa1a23e5d5badf3c0a55f26c17efe6e184efcf00b371433751fa761bc"
--
1.7.9.7
^ permalink raw reply related [flat|nested] 5+ messages in thread