glib: disable selinux for native builds
PATCH 1/5 glib: disable selinux for native builds
This improves reusabiliy of sstate-cache across different hosts
Signed-off-by Matthew McClintock <[email protected]>
--- meta/recipes-core/glib-2.0/glib-2.0_2.34.3.bb | 2 +- meta/recipes-core/glib-2.0/glib.inc | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)
meta/recipes-core/glib-2.0/glib-2.0_2.34.3.bb +1 -1
@@ -1,6 +1,6 @@ require glib.inc -PR = "r1" +PR = "r2" PE = "1" DEPENDS += "libffi python-argparse-native zlib"
meta/recipes-core/glib-2.0/glib.inc +1 -1
@@ -29,7 +29,7 @@ CORECONF = "--disable-dtrace --disable-fam --disable-libelf --disable-systemtap" PTEST_CONF = "${@base_contains('DISTRO_FEATURES', 'ptest', '', '--disable-modular-tests', d)}" EXTRA_OECONF = "--enable-included-printf=no ${CORECONF} ${PTEST_CONF}" -EXTRA_OECONF_class-native = "${CORECONF}" +EXTRA_OECONF_class-native = "${CORECONF} --disable-selinux" EXTRA_OECONF_linuxstdbase = "--enable-included-printf=no ${CORECONF}" FILES_${PN} = "${libdir}/lib*${SOLIBS} ${datadir}/glib-2.0/schemas \
Signature · 1 line
1.7.9.7
PATCH 2/5 quota_4.01.bb: add e2fsprogs in DEPENDS
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 <[email protected]>
--- meta/recipes-extended/quota/quota_4.01.bb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
meta/recipes-extended/quota/quota_4.01.bb +2 -2
@@ -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
Signature · 1 line
1.7.9.7
PATCH 3/5 libpfm4_4.3.0.bb: add libpfm4 recipe needed by oprofile for ppc
In reply to Matthew McClintockSigned-off-by Matthew McClintock <[email protected]>
--- 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
meta/recipes-kernel/libpfm/libpfm4_4.3.0.bb new file +26 -0
@@ -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 +}
Signature · 1 line
1.7.9.7
PATCH 4/5 kernel-arch.bbclass: don't pass extra args to KERNEL_{CC, LD, AR}
In reply to Matthew McClintockCommit a3ca06c3b45c791dd38dbf154ad0fc62b4063475 added extra args to KERNEL_CC, these revert that bit while maintaining machine additions in TARGET_??_KERNEL_ARCH
Signed-off-by Matthew McClintock <[email protected]>
--- meta/classes/kernel-arch.bbclass | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
meta/classes/kernel-arch.bbclass +3 -3
@@ -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}"
Signature · 1 line
1.7.9.7
PATCH 5/5 oprofile: fix cross compile on powerpc and add libpfm4 dep
In reply to Matthew McClintockFixes [YOCTO #3717]
Signed-off-by Matthew McClintock <[email protected]>
--- .../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
meta/recipes-kernel/oprofile/oprofile/0001-fix-powerpc-cross-compiling.patch new file +35 -0
@@ -0,0 +1,35 @@ +Upstream-Status: Submitted + +From cd8aafe5ca48e8d809188df6e42f20efd5cbefd1 Mon Sep 17 00:00:00 2001 +From: Matthew McClintock <[email protected]> +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 <[email protected]> +--- + 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 +
meta/recipes-kernel/oprofile/oprofile_0.9.8.bb +5 -2
@@ -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"
Signature · 1 line
1.7.9.7