Skip to contentSkip to conversation

runqemu: Honor KERNEL and ROOTFS settings from environment

PATCH In review Khem Raj 4 participants 9 messages Aug 22, 2012 – Sep 7, 2012 Arm/actions semi architecture

lore
Share & tools
lore

Khem Raj

author
#0 lore raw

PATCH 1/4 runqemu: Honor KERNEL and ROOTFS settings from environment

Expand the usage to be able to specify KERNEL and ROOTFS on commandline. This helps in using the script for booting images that are essentially not part of OE-Core

---
 scripts/runqemu |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
scripts/runqemu +2 -2
index 90998ae..290f9cc 100755
@@ -54,9 +54,9 @@ error() {
 }
 
 MACHINE=${MACHINE:=""}
-KERNEL=""
+KERNEL=${KERNEL:=""}
+ROOTFS=${ROOTFS:=""}
 FSTYPE=""
-ROOTFS=""
 LAZY_ROOTFS=""
 SCRIPT_QEMU_OPT=""
 SCRIPT_QEMU_EXTRA_OPT=""
Signature · 1 line
1.7.9.5
author
#3 lore raw

PATCH 3/4 kernel.bbclass, module-base.bbclass: Use CC to form KERNEL_CC

kernel compiler is not special and we currently have it so we want to pass -march and -mtune options as CFLAGS to kernel build so that compiler picks the right subarch flags when compiling assembly files in particular. Otherwise defaults are chosen which may not be right in many case e.g. when compiling kernel for collie machine we should use arch=armv4 but it uses toolchain/as defaults which is armv5te

in some case e.g. thumb1 we know that kernel can not be compiled in thumb1 mode so we can provide that information e.g. -marm option through KERNEL_HOST_CC_ARCH variable as we do now

---
 meta/classes/kernel.bbclass      |    9 +++------
 meta/classes/module-base.bbclass |    9 +++------
 2 files changed, 6 insertions(+), 12 deletions(-)
meta/classes/kernel.bbclass +3 -6
index f34e632..766f345 100644
@@ -1,7 +1,7 @@
 inherit linux-kernel-base module_strip
 
 PROVIDES += "virtual/kernel"
-DEPENDS += "virtual/${TARGET_PREFIX}gcc kmod-native virtual/${TARGET_PREFIX}gcc${KERNEL_CCSUFFIX} update-modules"
+DEPENDS += "virtual/${TARGET_PREFIX}gcc kmod-native update-modules"
 
 # we include gcc above, we dont need virtual/libc
 INHIBIT_DEFAULT_DEPS = "1"
@@ -37,9 +37,6 @@ KERNEL_PRIORITY ?= "${@int(d.getVar('PV',1).split('-')[0].split('+')[0].split('.
 
 KERNEL_RELEASE ?= "${KERNEL_VERSION}"
 
-KERNEL_CCSUFFIX ?= ""
-KERNEL_LDSUFFIX ?= ""
-
 # Set TARGET_??_KERNEL_ARCH in the machine .conf to set architecture
 # specific options necessary for building the kernel and modules.
 #FIXME: should be this: TARGET_CC_KERNEL_ARCH ?= "${TARGET_CC_ARCH}"
@@ -48,8 +45,8 @@ HOST_CC_KERNEL_ARCH ?= "${TARGET_CC_KERNEL_ARCH}"
 TARGET_LD_KERNEL_ARCH ?= ""
 HOST_LD_KERNEL_ARCH ?= "${TARGET_LD_KERNEL_ARCH}"
 
-KERNEL_CC = "${CCACHE}${HOST_PREFIX}gcc${KERNEL_CCSUFFIX} ${HOST_CC_KERNEL_ARCH}${TOOLCHAIN_OPTIONS}"
-KERNEL_LD = "${HOST_PREFIX}ld${KERNEL_LDSUFFIX} ${HOST_LD_KERNEL_ARCH}${TOOLCHAIN_OPTIONS}"
+KERNEL_CC = "${CC} ${HOST_CC_KERNEL_ARCH}"
+KERNEL_LD = "${LD} ${HOST_LD_KERNEL_ARCH}"
 
 # Where built kernel lies in the kernel tree
 KERNEL_OUTPUT ?= "arch/${ARCH}/boot/${KERNEL_IMAGETYPE}"
meta/classes/module-base.bbclass +3 -6
index 9379bf8..72a0bff 100644
@@ -7,9 +7,6 @@ export CROSS_COMPILE = "${TARGET_PREFIX}"
 
 export KERNEL_VERSION = "${@base_read_file('${STAGING_KERNEL_DIR}/kernel-abiversion')}"
 KERNEL_OBJECT_SUFFIX = ".ko"
-KERNEL_CCSUFFIX = "${@base_read_file('${STAGING_KERNEL_DIR}/kernel-ccsuffix')}"
-KERNEL_LDSUFFIX = "${@base_read_file('${STAGING_KERNEL_DIR}/kernel-ldsuffix')}"
-KERNEL_ARSUFFIX = "${@base_read_file('${STAGING_KERNEL_DIR}/kernel-arsuffix')}"
 
 # Set TARGET_??_KERNEL_ARCH in the machine .conf to set architecture
 # specific options necessary for building the kernel and modules.
@@ -20,9 +17,9 @@ HOST_LD_KERNEL_ARCH ?= "${TARGET_LD_KERNEL_ARCH}"
 TARGET_AR_KERNEL_ARCH ?= ""
 HOST_AR_KERNEL_ARCH ?= "${TARGET_AR_KERNEL_ARCH}"
 
-KERNEL_CC = "${CCACHE}${HOST_PREFIX}gcc${KERNEL_CCSUFFIX} ${HOST_CC_KERNEL_ARCH}"
-KERNEL_LD = "${HOST_PREFIX}ld${KERNEL_LDSUFFIX} ${HOST_LD_KERNEL_ARCH}"
-KERNEL_AR = "${HOST_PREFIX}ar${KERNEL_ARSUFFIX} ${HOST_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 modules are generally machine specific
 PACKAGE_ARCH = "${MACHINE_ARCH}"
Signature · 1 line
1.7.9.5
author
#1 lore raw

PATCH 2/4 linux-yocto: Remove parens from COMPATIBLE_MACHINE regexp

In reply to Khem Raj

This helps in appending to this regexp from bbappends coming from other layers who want to leverage linux-yocto with minimum tweaks by using a standard prefefined machine from linux-yocto

---
 meta/recipes-kernel/linux/linux-yocto_3.0.bb |    2 +-
 meta/recipes-kernel/linux/linux-yocto_3.2.bb |    2 +-
 meta/recipes-kernel/linux/linux-yocto_3.4.bb |    2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)
meta/recipes-kernel/linux/linux-yocto_3.0.bb +1 -1
index f5e812e..4d19664 100644
@@ -26,7 +26,7 @@ SRC_URI = "git://git.yoctoproject.org/linux-yocto-3.0;protocol=git;bareclone=1;b
 
 SRC_URI += "file://noslang.patch"
 
-COMPATIBLE_MACHINE = "(qemuarm|qemux86|qemuppc|qemumips|qemux86-64)"
+COMPATIBLE_MACHINE = "qemuarm|qemux86|qemuppc|qemumips|qemux86-64"
 
 # Functionality flags
 KERNEL_FEATURES = "features/netfilter"
meta/recipes-kernel/linux/linux-yocto_3.2.bb +1 -1
index b254251..c3fb252 100644
@@ -26,7 +26,7 @@ SRC_URI = "git://git.yoctoproject.org/linux-yocto-3.2;protocol=git;bareclone=1;b
 
 SRC_URI += "file://noslang.patch"
 
-COMPATIBLE_MACHINE = "(qemuarm|qemux86|qemuppc|qemumips|qemux86-64)"
+COMPATIBLE_MACHINE = "qemuarm|qemux86|qemuppc|qemumips|qemux86-64"
 
 # Functionality flags
 KERNEL_FEATURES="features/netfilter"
meta/recipes-kernel/linux/linux-yocto_3.4.bb +1 -1
index 8ac2402..691d789 100644
@@ -22,7 +22,7 @@ PV = "${LINUX_VERSION}+git${SRCPV}"
 
 KMETA = "meta"
 
-COMPATIBLE_MACHINE = "(qemuarm|qemux86|qemuppc|qemumips|qemux86-64)"
+COMPATIBLE_MACHINE = "qemuarm|qemux86|qemuppc|qemumips|qemux86-64"
 
 # Functionality flags
 KERNEL_REVISION_CHECKING=""
Signature · 1 line
1.7.9.5
author
#6 lore raw

PATCH 4/4 eglibc-2.15: Delete

In reply to Khem Raj

eglibc 2.15 is not buildable with current toolchain build sequence and is not used as default on OE-Core. So lets remove it.

---
 .../eglibc/cross-localedef-native_2.15.bb          |   44 --
 .../eglibc/eglibc-2.15/GLRO_dl_debug_mask.patch    |  108 ----
 .../eglibc/eglibc-2.15/IO-acquire-lock-fix.patch   |   17 -
 .../eglibc/eglibc-2.15/add_HAVE_ARM_PCS_VFP.patch  |   28 -
 .../eglibc-2.15/eglibc-rpc-export-again.patch      |   72 ---
 .../eglibc-svn-arm-lowlevellock-include-tls.patch  |   21 -
 .../eglibc_fix_findidx_parameters.patch            |   38 --
 .../eglibc/eglibc-2.15/generate-supported.mk       |   11 -
 .../eglibc-2.15/glibc-2.14-libdl-crash.patch       |  133 -----
 .../eglibc/eglibc-2.15/initgroups_keys.patch       |   20 -
 .../eglibc/eglibc-2.15/ld-search-order.patch       |   56 --
 .../eglibc/eglibc-2.15/ldso_arm_hf_support.patch   |  338 ------------
 .../eglibc/eglibc-2.15/mips-rld-map-check.patch    |   26 -
 .../eglibc/eglibc-2.15/multilib_readlib.patch      |   17 -
 .../recipes-core/eglibc/eglibc-2.15/ppc-sqrt.patch |  538 --------------------
 .../eglibc/eglibc-2.15/ppc-sqrt_finite.patch       |  112 ----
 .../eglibc/eglibc-2.15/relocatable_sdk.patch       |   81 ---
 .../eglibc/eglibc-2.15/stack-protector-test.patch  |   35 --
 .../use-localstatedir-for-vardbdir.patch           |   21 -
 .../eglibc-2.15/use-sysroot-cxx-headers.patch      |   42 --
 .../recipes-core/eglibc/eglibc-2.15/x86_fenv.patch |   36 --
 meta/recipes-core/eglibc/eglibc-initial_2.15.bb    |    6 -
 meta/recipes-core/eglibc/eglibc-locale_2.15.bb     |    1 -
 meta/recipes-core/eglibc/eglibc_2.15.bb            |  239 ---------
 24 files changed, 2040 deletions(-)
 delete mode 100644 meta/recipes-core/eglibc/cross-localedef-native_2.15.bb
 delete mode 100644 meta/recipes-core/eglibc/eglibc-2.15/GLRO_dl_debug_mask.patch
 delete mode 100644 meta/recipes-core/eglibc/eglibc-2.15/IO-acquire-lock-fix.patch
 delete mode 100644 meta/recipes-core/eglibc/eglibc-2.15/add_HAVE_ARM_PCS_VFP.patch
 delete mode 100644 meta/recipes-core/eglibc/eglibc-2.15/eglibc-rpc-export-again.patch
 delete mode 100644 meta/recipes-core/eglibc/eglibc-2.15/eglibc-svn-arm-lowlevellock-include-tls.patch
 delete mode 100644 meta/recipes-core/eglibc/eglibc-2.15/eglibc_fix_findidx_parameters.patch
 delete mode 100644 meta/recipes-core/eglibc/eglibc-2.15/etc/ld.so.conf
 delete mode 100644 meta/recipes-core/eglibc/eglibc-2.15/generate-supported.mk
 delete mode 100644 meta/recipes-core/eglibc/eglibc-2.15/glibc-2.14-libdl-crash.patch
 delete mode 100644 meta/recipes-core/eglibc/eglibc-2.15/initgroups_keys.patch
 delete mode 100644 meta/recipes-core/eglibc/eglibc-2.15/ld-search-order.patch
 delete mode 100644 meta/recipes-core/eglibc/eglibc-2.15/ldso_arm_hf_support.patch
 delete mode 100644 meta/recipes-core/eglibc/eglibc-2.15/mips-rld-map-check.patch
 delete mode 100644 meta/recipes-core/eglibc/eglibc-2.15/multilib_readlib.patch
 delete mode 100644 meta/recipes-core/eglibc/eglibc-2.15/ppc-sqrt.patch
 delete mode 100644 meta/recipes-core/eglibc/eglibc-2.15/ppc-sqrt_finite.patch
 delete mode 100644 meta/recipes-core/eglibc/eglibc-2.15/relocatable_sdk.patch
 delete mode 100644 meta/recipes-core/eglibc/eglibc-2.15/stack-protector-test.patch
 delete mode 100644 meta/recipes-core/eglibc/eglibc-2.15/use-localstatedir-for-vardbdir.patch
 delete mode 100644 meta/recipes-core/eglibc/eglibc-2.15/use-sysroot-cxx-headers.patch
 delete mode 100644 meta/recipes-core/eglibc/eglibc-2.15/x86_fenv.patch
 delete mode 100644 meta/recipes-core/eglibc/eglibc-initial_2.15.bb
 delete mode 100644 meta/recipes-core/eglibc/eglibc-locale_2.15.bb
 delete mode 100644 meta/recipes-core/eglibc/eglibc_2.15.bb
meta/recipes-core/eglibc/cross-localedef-native_2.15.bb deleted +0 -44
deleted file mode 100644
index 422e0bb..0000000
@@ -1,44 +0,0 @@
-DESCRIPTION = "Cross locale generation tool for eglibc"
-HOMEPAGE = "http://www.eglibc.org/home"
-SECTION = "libs"
-LICENSE = "LGPL"
-
-LIC_DIR = "${WORKDIR}/${EGLIBC_BRANCH}/libc"
-LIC_FILES_CHKSUM = "file://${LIC_DIR}/LICENSES;md5=98a1128c4b58120182cbea3b1752d8b9\
-      file://${LIC_DIR}/COPYING;md5=393a5ca445f6965873eca0259a17f833 \
-      file://${LIC_DIR}/posix/rxspencer/COPYRIGHT;md5=dc5485bb394a13b2332ec1c785f5d83a \
-      file://${LIC_DIR}/COPYING.LIB;md5=bbb461211a33b134d42ed5ee802b37ff "
-
-
-inherit native
-inherit autotools
-
-PR = "r0"
-SRCREV="15225"
-EGLIBC_BRANCH="eglibc-2_14"
-SRC_URI = "svn://www.eglibc.org/svn/branches/;module=${EGLIBC_BRANCH};protocol=http "
-S = "${WORKDIR}/${EGLIBC_BRANCH}/localedef"
-
-do_unpack_append() {
-    bb.build.exec_func('do_move_ports', d)
-}
-
-do_move_ports() {
-        if test -d ${WORKDIR}/${EGLIBC_BRANCH}/ports ; then
-	    rm -rf ${WORKDIR}/libc/ports
-	    mv ${WORKDIR}/${EGLIBC_BRANCH}/ports ${WORKDIR}/libc/
-	fi
-}
-
-EXTRA_OECONF = "--with-glibc=${WORKDIR}/${EGLIBC_BRANCH}/libc"
-CFLAGS += "-DNOT_IN_libc=1"
-
-do_configure () {
-	./configure ${EXTRA_OECONF}
-}
-
-
-do_install() {
-	install -d ${D}${bindir} 
-	install -m 0755 ${S}/localedef ${D}${bindir}/cross-localedef
-}
meta/recipes-core/eglibc/eglibc-2.15/GLRO_dl_debug_mask.patch deleted +0 -108

108 lines not on this page · raw message

meta/recipes-core/eglibc/eglibc-2.15/IO-acquire-lock-fix.patch deleted +0 -17
deleted file mode 100644
index cf58035..0000000
@@ -1,17 +0,0 @@
-import http://sourceware.org/ml/libc-ports/2007-12/msg00000.html
-
-Upstream-Status: Pending
-
-Index: libc/bits/stdio-lock.h
-===================================================================
---- libc.orig/bits/stdio-lock.h	2009-10-28 14:34:19.000000000 -0700
-+++ libc/bits/stdio-lock.h	2009-10-28 14:34:54.000000000 -0700
-@@ -50,6 +50,8 @@ __libc_lock_define_recursive (typedef, _
-   _IO_cleanup_region_start ((void (*) (void *)) _IO_funlockfile, (_fp));      \
-   _IO_flockfile (_fp)
- 
-+# define _IO_acquire_lock_clear_flags2(_fp) _IO_acquire_lock (_fp)
-+
- # define _IO_release_lock(_fp) \
-   _IO_funlockfile (_fp);						      \
-   _IO_cleanup_region_end (0)
meta/recipes-core/eglibc/eglibc-2.15/add_HAVE_ARM_PCS_VFP.patch deleted +0 -28
deleted file mode 100644
index 0f95c2f..0000000
@@ -1,28 +0,0 @@
-From: Carlos O'Donell <[email protected]>
-Date: Mon, 7 May 2012 20:04:41 +0000 (-0400)
-Subject: ARM: Define HAVE_ARM_PCS_VFP in config.h.
-X-Git-Url: http://sourceware.org/git/?p=glibc.git;a=commitdiff_plain;h=6a43ec980c5a0500149ef37d4854eac0e270da6f;hp=05c2c9618f583ea4acd69b3fe5ae2a2922dd2ddc
-
-ARM: Define HAVE_ARM_PCS_VFP in config.h.
-
-If the compiler and flags would select the hard-float ABI
-then the ARM configure fragment will set HAVE_ARM_PCS_VFP.
-This is later used by the ARM shlib-versions to select
-the appropriately named dynamic linker.
----
-
-Upstream-Status: Backport
--Khem
-
-Index: libc/config.h.in
-===================================================================
---- libc.orig/config.h.in	2012-01-04 22:06:28.000000000 -0800
-+++ libc/config.h.in	2012-05-08 11:25:56.581079069 -0700
-@@ -233,4 +233,7 @@
- 
- #define HAVE_REGEX 1
- 
-+/* The ARM hard-float ABI is being used.  */
-+#undef HAVE_ARM_PCS_VFP
-+
- #endif
meta/recipes-core/eglibc/eglibc-2.15/eglibc-rpc-export-again.patch deleted +0 -72

72 lines not on this page · raw message

meta/recipes-core/eglibc/eglibc-2.15/eglibc-svn-arm-lowlevellock-include-tls.patch deleted +0 -21
deleted file mode 100644
index 4313aa5..0000000
@@ -1,21 +0,0 @@
-In file included from ../nptl/sysdeps/unix/sysv/linux/libc-lowlevellock.c:21:
-../nptl/sysdeps/unix/sysv/linux/lowlevellock.c: In function '__lll_lock_wait_private':
-../nptl/sysdeps/unix/sysv/linux/lowlevellock.c:34: warning: implicit declaration of function 'THREAD_GETMEM'
-../nptl/sysdeps/unix/sysv/linux/lowlevellock.c:34: error: 'THREAD_SELF' undeclared (first use in this function)
-../nptl/sysdeps/unix/sysv/linux/lowlevellock.c:34: error: (Each undeclared identifier is reported only once
-../nptl/sysdeps/unix/sysv/linux/lowlevellock.c:34: error: for each function it appears in.)
-../nptl/sysdeps/unix/sysv/linux/lowlevellock.c:34: error: 'header' undeclared (first use in this function)
-make[4]: *** [/var/tmp/portage/sys-libs/glibc-2.7-r1/work/build-default-armv4l-unknown-linux-gnu-nptl/nptl/rtld-libc-lowlevellock.os] Error 1
-
-Upstream-Status: Pending
-
---- libc/ports/sysdeps/unix/sysv/linux/arm/nptl/lowlevellock.h.orig
-+++ libc/ports/sysdeps/unix/sysv/linux/arm/nptl/lowlevellock.h
-@@ -25,6 +25,7 @@
- #include <atomic.h>
- #include <sysdep.h>
- #include <kernel-features.h>
-+#include <tls.h>
- 
- #define FUTEX_WAIT		0
- #define FUTEX_WAKE		1
meta/recipes-core/eglibc/eglibc-2.15/eglibc_fix_findidx_parameters.patch deleted +0 -38
deleted file mode 100644
index bbf4605..0000000
@@ -1,38 +0,0 @@
-Upstream-Status: backport
-
-Imported patch from: http://www.eglibc.org/archives/patches/msg01124.html
-
-Signed-Off-By: Nitin A Kamble <[email protected]>
-2012/05/09
-
-Index: libc/posix/xregex.c
-===================================================================
---- libc.orig/posix/xregex.c
-+++ libc/posix/xregex.c
-@@ -2943,7 +2943,7 @@ PREFIX(regex_compile) (const char *ARG_P
- 				  _NL_CURRENT (LC_COLLATE,
- 					       _NL_COLLATE_INDIRECTWC);
- 
--				idx = findidx ((const wint_t**)&cp);
-+				idx = findidx ((const wint_t**)&cp, -1);
- 				if (idx == 0 || cp < (wint_t*) str + c1)
- 				  /* This is no valid character.  */
- 				  FREE_STACK_RETURN (REG_ECOLLATE);
-@@ -3392,7 +3392,7 @@ PREFIX(regex_compile) (const char *ARG_P
- 			    indirect = (const int32_t *)
- 			      _NL_CURRENT (LC_COLLATE, _NL_COLLATE_INDIRECTMB);
- 
--			    idx = findidx (&cp);
-+			    idx = findidx (&cp, -1);
- 			    if (idx == 0 || cp < str + c1)
- 			      /* This is no valid character.  */
- 			      FREE_STACK_RETURN (REG_ECOLLATE);
-@@ -6363,7 +6363,7 @@ byte_re_match_2_internal (struct re_patt
- 		      }
- 		    str_buf[i] = TRANSLATE(*(d+i));
- 		    str_buf[i+1] = '\0'; /* sentinel */
--		    idx2 = findidx ((const wint_t**)&cp);
-+		    idx2 = findidx ((const wint_t**)&cp, -1);
- 		  }
- 
- 		/* Update d, however d will be incremented at
meta/recipes-core/eglibc/eglibc-2.15/etc/ld.so.conf deleted +0 -0
deleted file mode 100644
index e69de29..0000000
meta/recipes-core/eglibc/eglibc-2.15/generate-supported.mk deleted +0 -11
deleted file mode 100644
index d2a28c2..0000000
@@ -1,11 +0,0 @@
-#!/usr/bin/make
-
-include $(IN)
-
-all:
-	rm -f $(OUT)
-	touch $(OUT)
-	for locale in $(SUPPORTED-LOCALES); do \
-		[ $$locale = true ] && continue; \
-		echo $$locale | sed 's,/, ,' >> $(OUT); \
-	done
meta/recipes-core/eglibc/eglibc-2.15/glibc-2.14-libdl-crash.patch deleted +0 -133

133 lines not on this page · raw message

meta/recipes-core/eglibc/eglibc-2.15/initgroups_keys.patch deleted +0 -20
deleted file mode 100644
index be29856..0000000
@@ -1,20 +0,0 @@
-This is needed since initgroups belongs to NET group
-so when NET is disabled in eglibc build then it reports
-as undefined symbol
-
-Signed-off-by: Khem Raj <[email protected]>
-Upstream-Status: Pending
-
-Index: libc/nss/getent.c
-===================================================================
---- libc.orig/nss/getent.c	2012-03-09 09:41:57.099581559 -0800
-+++ libc/nss/getent.c	2012-03-09 09:42:13.095582334 -0800
-@@ -898,7 +898,7 @@
- D(group)
- D(gshadow)
- DN(hosts)
--D(initgroups)
-+DN(initgroups)
- DN(netgroup)
- DN(networks)
- D(passwd)
meta/recipes-core/eglibc/eglibc-2.15/ld-search-order.patch deleted +0 -56

56 lines not on this page · raw message

meta/recipes-core/eglibc/eglibc-2.15/ldso_arm_hf_support.patch deleted +0 -338

338 lines not on this page · raw message

meta/recipes-core/eglibc/eglibc-2.15/mips-rld-map-check.patch deleted +0 -26
deleted file mode 100644
index 9b646fe..0000000
@@ -1,26 +0,0 @@
-
-On mips target, binutils currently sets DT_MIPS_RLD_MAP to 0 in dynamic
-section if a --version-script sets _RLD_MAP to local. This is apparently
-a binutils bug, but libc shouldn't segfault in this case.
-
-see also: http://sourceware.org/bugilla/show_bug.cgi?id=11615
-
-Upstream-Status: Pending
-
-9/19/2010 - added by Qing He <[email protected]>
-
-
----
-diff -ru glibc-2.10.1.orig/ports/sysdeps/mips/dl-machine.h glibc-2.10.1/ports/sysdeps/mips/dl-machine.h
---- glibc-2.10.1.orig/ports/sysdeps/mips/dl-machine.h	2009-05-16 16:36:20.000000000 +0800
-+++ glibc-2.10.1/ports/sysdeps/mips/dl-machine.h	2010-09-19 09:11:53.000000000 +0800
-@@ -70,7 +70,8 @@
- /* If there is a DT_MIPS_RLD_MAP entry in the dynamic section, fill it in
-    with the run-time address of the r_debug structure  */
- #define ELF_MACHINE_DEBUG_SETUP(l,r) \
--do { if ((l)->l_info[DT_MIPS (RLD_MAP)]) \
-+do { if ((l)->l_info[DT_MIPS (RLD_MAP)] && \
-+         (l)->l_info[DT_MIPS (RLD_MAP)]->d_un.d_ptr) \
-        *(ElfW(Addr) *)((l)->l_info[DT_MIPS (RLD_MAP)]->d_un.d_ptr) = \
-        (ElfW(Addr)) (r); \
-    } while (0)
meta/recipes-core/eglibc/eglibc-2.15/multilib_readlib.patch deleted +0 -17
deleted file mode 100644
index 1542b1b..0000000
@@ -1,17 +0,0 @@
-Upstream-Status: Inappropriate [embedded specific]
-
-Replace the OECORE_KNOWN_INTERPRETER_NAMES with the value of 
-variable EGLIBC_KNOWN_INTERPRETER_NAMES.
-
-Lianhao Lu, 08/01/2011
-
---- libc/elf/readlib.c.orig	2011-08-12 17:05:51.864470837 +0800
-+++ libc/elf/readlib.c	2011-08-12 17:06:39.346942074 +0800
-@@ -52,6 +52,7 @@
- #ifdef SYSDEP_KNOWN_INTERPRETER_NAMES
-   SYSDEP_KNOWN_INTERPRETER_NAMES
- #endif
-+  OECORE_KNOWN_INTERPRETER_NAMES
- };
- 
- static struct known_names known_libs[] =
meta/recipes-core/eglibc/eglibc-2.15/ppc-sqrt.patch deleted +0 -538

538 lines not on this page · raw message

meta/recipes-core/eglibc/eglibc-2.15/ppc-sqrt_finite.patch deleted +0 -112

112 lines not on this page · raw message

meta/recipes-core/eglibc/eglibc-2.15/relocatable_sdk.patch deleted +0 -81

81 lines not on this page · raw message

meta/recipes-core/eglibc/eglibc-2.15/stack-protector-test.patch deleted +0 -35
deleted file mode 100644
index dbf70a9..0000000
@@ -1,35 +0,0 @@
-Test for -fstack-protector is compile only test. One might have the option but
-might have build the compiler with --disable-ssp which means ssp should not be
-enabled. Therefore we change the test to a link time test. It will fail if
-libssp is not available.
-
-Upstream-Status: Pending
-
-Signed-off-by: Khem Raj <[email protected]>
-
-Index: libc/configure
-===================================================================
---- libc.orig/configure
-+++ libc/configure
-@@ -6937,7 +6937,7 @@ if test "${libc_cv_ssp+set}" = set; then
-   $as_echo_n "(cached) " >&6
- else
-   if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS -Werror -fstack-protector
--			    -o /dev/null -c -x c /dev/null 1>&5'
-+			    -o /dev/null -x c /dev/null 1>&5'
-   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
-   (eval $ac_try) 2>&5
-   ac_status=$?
-Index: libc/configure.in
-===================================================================
---- libc.orig/configure.in
-+++ libc/configure.in
-@@ -1787,7 +1787,7 @@ AC_SUBST(fno_unit_at_a_time)
- 
- AC_CACHE_CHECK(for -fstack-protector, libc_cv_ssp, [dnl
- if AC_TRY_COMMAND([${CC-cc} $CFLAGS $CPPFLAGS -Werror -fstack-protector
--			    -o /dev/null -c -x c /dev/null 1>&AS_MESSAGE_LOG_FD])
-+			    -o /dev/null -x c /dev/null 1>&AS_MESSAGE_LOG_FD])
- then
-   libc_cv_ssp=yes
- else
meta/recipes-core/eglibc/eglibc-2.15/use-localstatedir-for-vardbdir.patch deleted +0 -21
deleted file mode 100644
index 8392c18..0000000
@@ -1,21 +0,0 @@
-
-localstatedir is set to be the /var directory, so use
-it for the base of the vardbdir so it's properly relocatable.
-
-Upstream-Status: Pending
-
-Signed-off-by: Saul Wold <[email protected]>
-
-Index: libc/Makeconfig
-===================================================================
---- libc.orig/Makeconfig
-+++ libc/Makeconfig
-@@ -293,7 +293,7 @@ inst_sysconfdir = $(install_root)$(sysco
- 
- # Directory for the database files and Makefile for nss_db.
- ifndef vardbdir
--vardbdir = /var/db
-+vardbdir = $(localstatedir)/db
- endif
- inst_vardbdir = $(install_root)$(vardbdir)
- 
meta/recipes-core/eglibc/eglibc-2.15/use-sysroot-cxx-headers.patch deleted +0 -42

42 lines not on this page · raw message

meta/recipes-core/eglibc/eglibc-2.15/x86_fenv.patch deleted +0 -36
deleted file mode 100644
index 7193f98..0000000
@@ -1,36 +0,0 @@
-Without this patch it fails to inline that function
-since we do not have __SSE_MATH__ in OE build.
-
-Signed-off-by: Khem Raj <[email protected]>
-
-Upstream-Status: Inappropriate [OE-specific]
-
---- a/sysdeps/x86_64/fpu/bits/fenv.h
-+++ b/sysdeps/x86_64/fpu/bits/fenv.h
-@@ -112,16 +112,24 @@ __NTH (feraiseexcept (int __excepts))
- 	{
- 	  /* One example of a invalid operation is 0.0 / 0.0.  */
- 	  float __f = 0.0;
--
-+# if defined __SSE_MATH__ || __WORDSIZE == 64
- 	  __asm__ __volatile__ ("divss %0, %0 " : : "x" (__f));
-+# else
-+	 __asm__ __volatile__ ("fdiv %%st, %%st(0); fwait"
-+			       : "=t" (__f) : "0" (__f));
-+# endif
- 	  (void) &__f;
- 	}
-       if ((FE_DIVBYZERO & __excepts) != 0)
- 	{
- 	  float __f = 1.0;
- 	  float __g = 0.0;
--
-+# if defined __SSE_MATH__ || __WORDSIZE == 64
- 	  __asm__ __volatile__ ("divss %1, %0" : : "x" (__f), "x" (__g));
-+# else
-+	  __asm__ __volatile__ ("fdivp %%st(1), %%st; fwait"
-+				: "=t" (__f) : "0" (__f), "u" (__g) : "st(1)");
-+# endif
- 	  (void) &__f;
- 	}
- 
meta/recipes-core/eglibc/eglibc-initial_2.15.bb deleted +0 -6
deleted file mode 100644
index 787c762..0000000
@@ -1,6 +0,0 @@
-require eglibc_${PV}.bb
-require eglibc-initial.inc
-
-do_configure_prepend () {
-        unset CFLAGS
-}
meta/recipes-core/eglibc/eglibc-locale_2.15.bb deleted +0 -1
deleted file mode 100644
index ce6c1d2..0000000
@@ -1 +0,0 @@
-require eglibc-locale.inc
meta/recipes-core/eglibc/eglibc_2.15.bb deleted +0 -239

239 lines not on this page · raw message

Signature · 1 line
1.7.9.5
Acked-by on v1 2/4
#2 lore raw

Re: [PATCH 2/4] linux-yocto: Remove parens from COMPATIBLE_MACHINE regexp

In reply to Khem Raj
Quoted 4 lines · Khem Raj

This helps in appending to this regexp from bbappends coming from other layers who want to leverage linux-yocto with minimum tweaks by using a standard prefefined machine from linux-yocto

Fine with me.

We had a long winded discussion over a year ago about how the parens could be present, and still allow us to easily append, but my search didn't turn it up.

I can't see where this would cause a problem (others may though), so

Cheers,

Bruce

Quoted 55 lines
---
 meta/recipes-kernel/linux/linux-yocto_3.0.bb |    2 +-
 meta/recipes-kernel/linux/linux-yocto_3.2.bb |    2 +-
 meta/recipes-kernel/linux/linux-yocto_3.4.bb |    2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)
meta/recipes-kernel/linux/linux-yocto_3.0.bb +1 -1
index f5e812e..4d19664 100644
@@ -26,7 +26,7 @@ SRC_URI = "git://git.yoctoproject.org/linux-yocto-3.0;protocol=git;bareclone=1;b
 
 SRC_URI += "file://noslang.patch"
 
-COMPATIBLE_MACHINE = "(qemuarm|qemux86|qemuppc|qemumips|qemux86-64)"
+COMPATIBLE_MACHINE = "qemuarm|qemux86|qemuppc|qemumips|qemux86-64"
 
 # Functionality flags
 KERNEL_FEATURES = "features/netfilter"
meta/recipes-kernel/linux/linux-yocto_3.2.bb +1 -1
index b254251..c3fb252 100644
@@ -26,7 +26,7 @@ SRC_URI = "git://git.yoctoproject.org/linux-yocto-3.2;protocol=git;bareclone=1;b
 
 SRC_URI += "file://noslang.patch"
 
-COMPATIBLE_MACHINE = "(qemuarm|qemux86|qemuppc|qemumips|qemux86-64)"
+COMPATIBLE_MACHINE = "qemuarm|qemux86|qemuppc|qemumips|qemux86-64"
 
 # Functionality flags
 KERNEL_FEATURES="features/netfilter"
meta/recipes-kernel/linux/linux-yocto_3.4.bb +1 -2
index 8ac2402..691d789 100644
@@ -22,7 +22,7 @@ PV = "${LINUX_VERSION}+git${SRCPV}"
 
 KMETA = "meta"
 
-COMPATIBLE_MACHINE = "(qemuarm|qemux86|qemuppc|qemumips|qemux86-64)"
+COMPATIBLE_MACHINE = "qemuarm|qemux86|qemuppc|qemumips|qemux86-64"
 
 # Functionality flags
 KERNEL_REVISION_CHECKING=""
--

1.7.9.5

_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core

Signature · 2 lines
"Thou shalt not follow the NULL pointer, for chaos and madness await
thee at its end"
#4 lore raw

Re: [PATCH 3/4] kernel.bbclass, module-base.bbclass: Use CC to form KERNEL_CC

In reply to Khem Raj
Quoted 11 lines · Khem Raj

kernel compiler is not special and we currently have it so we want to pass -march and -mtune options as CFLAGS to kernel build so that compiler picks the right subarch flags when compiling assembly files in particular. Otherwise defaults are chosen which may not be right in many case e.g. when compiling kernel for collie machine we should use arch=armv4 but it uses toolchain/as defaults which is armv5te

in some case e.g. thumb1 we know that kernel can not be compiled in thumb1 mode so we can provide that information e.g. -marm option through KERNEL_HOST_CC_ARCH variable as we do now

Having just fought with this a few months ago myself, I know that I ended up needing to override KERNEL_CC completely, vs using any of the existing variables and options. So I don't see a problem with streamlining the variables.

Some random questions below:

Quoted 31 lines
---
 meta/classes/kernel.bbclass      |    9 +++------
 meta/classes/module-base.bbclass |    9 +++------
 2 files changed, 6 insertions(+), 12 deletions(-)
meta/classes/kernel.bbclass +1 -4
index f34e632..766f345 100644
@@ -1,7 +1,7 @@
 inherit linux-kernel-base module_strip
 
 PROVIDES += "virtual/kernel"
-DEPENDS += "virtual/${TARGET_PREFIX}gcc kmod-native virtual/${TARGET_PREFIX}gcc${KERNEL_CCSUFFIX} update-modules"
+DEPENDS += "virtual/${TARGET_PREFIX}gcc kmod-native update-modules"
 
 # we include gcc above, we dont need virtual/libc
 INHIBIT_DEFAULT_DEPS = "1"
@@ -37,9 +37,6 @@ KERNEL_PRIORITY ?= "${@int(d.getVar('PV',1).split('-')[0].split('+')[0].split('.
 
 KERNEL_RELEASE ?= "${KERNEL_VERSION}"
 
-KERNEL_CCSUFFIX ?= ""
-KERNEL_LDSUFFIX ?= ""
-
 # Set TARGET_??_KERNEL_ARCH in the machine .conf to set architecture
 # specific options necessary for building the kernel and modules.
 #FIXME: should be this: TARGET_CC_KERNEL_ARCH ?= "${TARGET_CC_ARCH}"

meta/classes/kernel.bbclass HOST_CC_KERNEL_ARCH ?= "${TARGET_CC_KERNEL_ARCH}" · line 49

Quoted 7 lines
meta/classes/kernel.bbclass +2 -2
@@ -48,8 +45,8 @@ HOST_CC_KERNEL_ARCH ?= "${TARGET_CC_KERNEL_ARCH}"
 TARGET_LD_KERNEL_ARCH ?= ""
 HOST_LD_KERNEL_ARCH ?= "${TARGET_LD_KERNEL_ARCH}"
 
-KERNEL_CC = "${CCACHE}${HOST_PREFIX}gcc${KERNEL_CCSUFFIX} ${HOST_CC_KERNEL_ARCH}${TOOLCHAIN_OPTIONS}"
-KERNEL_LD = "${HOST_PREFIX}ld${KERNEL_LDSUFFIX} ${HOST_LD_KERNEL_ARCH}${TOOLCHAIN_OPTIONS}"
+KERNEL_CC = "${CC} ${HOST_CC_KERNEL_ARCH}"
+KERNEL_LD = "${LD} ${HOST_LD_KERNEL_ARCH}"

I haven't looked at CC recently, I assume it can contain ccache within it's variable
definition if a person is inclined to use ccache ?

Quoted 18 lines
meta/classes/kernel.bbclass +0 -0
 # Where built kernel lies in the kernel tree
 KERNEL_OUTPUT ?= "arch/${ARCH}/boot/${KERNEL_IMAGETYPE}"
meta/classes/module-base.bbclass +0 -3
index 9379bf8..72a0bff 100644
@@ -7,9 +7,6 @@ export CROSS_COMPILE = "${TARGET_PREFIX}"
 
 export KERNEL_VERSION = "${@base_read_file('${STAGING_KERNEL_DIR}/kernel-abiversion')}"
 KERNEL_OBJECT_SUFFIX = ".ko"
-KERNEL_CCSUFFIX = "${@base_read_file('${STAGING_KERNEL_DIR}/kernel-ccsuffix')}"
-KERNEL_LDSUFFIX = "${@base_read_file('${STAGING_KERNEL_DIR}/kernel-ldsuffix')}"
-KERNEL_ARSUFFIX = "${@base_read_file('${STAGING_KERNEL_DIR}/kernel-arsuffix')}"
 
 # Set TARGET_??_KERNEL_ARCH in the machine .conf to set architecture
 # specific options necessary for building the kernel and modules.

meta/classes/module-base.bbclass HOST_LD_KERNEL_ARCH ?= "${TARGET_LD_KERNEL_ARCH}" · line 22

Quoted 9 lines
meta/classes/module-base.bbclass +3 -3
@@ -20,9 +17,9 @@ HOST_LD_KERNEL_ARCH ?= "${TARGET_LD_KERNEL_ARCH}"
 TARGET_AR_KERNEL_ARCH ?= ""
 HOST_AR_KERNEL_ARCH ?= "${TARGET_AR_KERNEL_ARCH}"
 
-KERNEL_CC = "${CCACHE}${HOST_PREFIX}gcc${KERNEL_CCSUFFIX} ${HOST_CC_KERNEL_ARCH}"
-KERNEL_LD = "${HOST_PREFIX}ld${KERNEL_LDSUFFIX} ${HOST_LD_KERNEL_ARCH}"
-KERNEL_AR = "${HOST_PREFIX}ar${KERNEL_ARSUFFIX} ${HOST_AR_KERNEL_ARCH}"
+KERNEL_CC = "${CC} ${HOST_CC_KERNEL_ARCH}"
+KERNEL_LD = "${LD} ${HOST_LD_KERNEL_ARCH}"
+KERNEL_AR = "${AR} ${HOST_AR_KERNEL_ARCH}"

When I was working through my build issues, I wondered if the module-base and kernel.bbclass
compile definitions could be unified to a single location (say kernel-arch.bbclass). I know
that I found an issue with it, and didn't complete my work, but can you see a way that
we could have a single definition vs the two ? These look to be exactly the same now :)

Cheers,

Bruce

Quoted 11 lines
meta/classes/module-base.bbclass +0 -1
 # kernel modules are generally machine specific
 PACKAGE_ARCH = "${MACHINE_ARCH}"
--

1.7.9.5

_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core

Signature · 2 lines
"Thou shalt not follow the NULL pointer, for chaos and madness await
thee at its end"
Acked-by on v1 1/4
#7 lore raw
In reply to Khem Raj
Quoted 5 lines · Khem Raj

Expand the usage to be able to specify KERNEL and ROOTFS on commandline. This helps in using the script for booting images that are essentially not part of OE-Core

Sure, this looks okay.

Quoted 21 lines
---
  scripts/runqemu |    4 ++--
  1 file changed, 2 insertions(+), 2 deletions(-)
scripts/runqemu +2 -2
index 90998ae..290f9cc 100755
@@ -54,9 +54,9 @@ error() {
  }
 
  MACHINE=${MACHINE:=""}
-KERNEL=""
+KERNEL=${KERNEL:=""}
+ROOTFS=${ROOTFS:=""}
  FSTYPE=""
-ROOTFS=""
  LAZY_ROOTFS=""
  SCRIPT_QEMU_OPT=""
  SCRIPT_QEMU_EXTRA_OPT=""
Signature · 3 lines
Scott Garman
Embedded Linux Engineer - Yocto Project
Intel Open Source Technology Center
#8 lore raw
In reply to Khem Raj
Quoted 16 lines · Khem Raj

Expand the usage to be able to specify KERNEL and ROOTFS on commandline. This helps in using the script for booting images that are essentially not part of OE-Core

---
  scripts/runqemu |    4 ++--
  1 file changed, 2 insertions(+), 2 deletions(-)
scripts/runqemu +0 -0
index 90998ae..290f9cc 100755
@@ -54,9 +54,9 @@ error() {
  }

scripts/runqemu error() { · line 62

Quoted 10 lines
scripts/runqemu +2 -2
 
  MACHINE=${MACHINE:=""}
-KERNEL=""
+KERNEL=${KERNEL:=""}
+ROOTFS=${ROOTFS:=""}
  FSTYPE=""
-ROOTFS=""
  LAZY_ROOTFS=""
  SCRIPT_QEMU_OPT=""
  SCRIPT_QEMU_EXTRA_OPT=""

Merged this along with 2 others, did not merge the the CC/KERNEL_CC change.

Thanks
Sau!

author
#5 lore raw

Re: [PATCH 3/4] kernel.bbclass, module-base.bbclass: Use CC to form KERNEL_CC

In reply to Bruce Ashfield
Quoted 53 lines · Bruce Ashfield
Quoted 11 lines · Khem Raj

kernel compiler is not special and we currently have it so we want to pass -march and -mtune options as CFLAGS to kernel build so that compiler picks the right subarch flags when compiling assembly files in particular. Otherwise defaults are chosen which may not be right in many case e.g. when compiling kernel for collie machine we should use arch=armv4 but it uses toolchain/as defaults which is armv5te

in some case e.g. thumb1 we know that kernel can not be compiled in thumb1 mode so we can provide that information e.g. -marm option through KERNEL_HOST_CC_ARCH variable as we do now

Having just fought with this a few months ago myself, I know that I ended up needing to override KERNEL_CC completely, vs using any of the existing variables and options. So I don't see a problem with streamlining the variables.

Some random questions below:

Quoted 34 lines
---
 meta/classes/kernel.bbclass      |    9 +++------
 meta/classes/module-base.bbclass |    9 +++------
 2 files changed, 6 insertions(+), 12 deletions(-)
meta/classes/kernel.bbclass +1 -4
index f34e632..766f345 100644
@@ -1,7 +1,7 @@
 inherit linux-kernel-base module_strip
 
 PROVIDES += "virtual/kernel"
-DEPENDS += "virtual/${TARGET_PREFIX}gcc kmod-native virtual/${TARGET_PREFIX}gcc${KERNEL_CCSUFFIX} update-modules"
+DEPENDS += "virtual/${TARGET_PREFIX}gcc kmod-native update-modules"
 
 # we include gcc above, we dont need virtual/libc
 INHIBIT_DEFAULT_DEPS = "1"
@@ -37,9 +37,6 @@ KERNEL_PRIORITY ?= "${@int(d.getVar('PV',1).split('-')[0].split('+')[0].split('.
 
 KERNEL_RELEASE ?= "${KERNEL_VERSION}"
 
-KERNEL_CCSUFFIX ?= ""
-KERNEL_LDSUFFIX ?= ""
-
 # Set TARGET_??_KERNEL_ARCH in the machine .conf to set architecture
 # specific options necessary for building the kernel and modules.
 #FIXME: should be this: TARGET_CC_KERNEL_ARCH ?= "${TARGET_CC_ARCH}"
@@ -48,8 +45,8 @@ HOST_CC_KERNEL_ARCH ?= "${TARGET_CC_KERNEL_ARCH}"
 TARGET_LD_KERNEL_ARCH ?= ""
 HOST_LD_KERNEL_ARCH ?= "${TARGET_LD_KERNEL_ARCH}"
 
Quoted 8 lines

meta/classes/kernel.bbclass HOST_CC_KERNEL_ARCH ?= "${TARGET_CC_KERNEL_ARCH}" · line 49

Quoted 4 lines
meta/classes/kernel.bbclass +2 -2
-KERNEL_CC = "${CCACHE}${HOST_PREFIX}gcc${KERNEL_CCSUFFIX} ${HOST_CC_KERNEL_ARCH}${TOOLCHAIN_OPTIONS}"
-KERNEL_LD = "${HOST_PREFIX}ld${KERNEL_LDSUFFIX} ${HOST_LD_KERNEL_ARCH}${TOOLCHAIN_OPTIONS}"
+KERNEL_CC = "${CC} ${HOST_CC_KERNEL_ARCH}"
+KERNEL_LD = "${LD} ${HOST_LD_KERNEL_ARCH}"

I haven't looked at CC recently, I assume it can contain ccache within it's variable
definition if a person is inclined to use ccache ?

yes
meta/conf/bitbake.conf:export CC = "${CCACHE}${HOST_PREFIX}gcc ${HOST_CC_ARCH}${TOOLCHAIN_OPTIONS}"

Quoted 22 lines
Quoted 22 lines
meta/classes/kernel.bbclass +0 -0
 # Where built kernel lies in the kernel tree
 KERNEL_OUTPUT ?= "arch/${ARCH}/boot/${KERNEL_IMAGETYPE}"
meta/classes/module-base.bbclass +0 -3
index 9379bf8..72a0bff 100644
@@ -7,9 +7,6 @@ export CROSS_COMPILE = "${TARGET_PREFIX}"
 
 export KERNEL_VERSION = "${@base_read_file('${STAGING_KERNEL_DIR}/kernel-abiversion')}"
 KERNEL_OBJECT_SUFFIX = ".ko"
-KERNEL_CCSUFFIX = "${@base_read_file('${STAGING_KERNEL_DIR}/kernel-ccsuffix')}"
-KERNEL_LDSUFFIX = "${@base_read_file('${STAGING_KERNEL_DIR}/kernel-ldsuffix')}"
-KERNEL_ARSUFFIX = "${@base_read_file('${STAGING_KERNEL_DIR}/kernel-arsuffix')}"
 
 # Set TARGET_??_KERNEL_ARCH in the machine .conf to set architecture
 # specific options necessary for building the kernel and modules.
@@ -20,9 +17,9 @@ HOST_LD_KERNEL_ARCH ?= "${TARGET_LD_KERNEL_ARCH}"
 TARGET_AR_KERNEL_ARCH ?= ""
 HOST_AR_KERNEL_ARCH ?= "${TARGET_AR_KERNEL_ARCH}"
 
Quoted 16 lines

meta/classes/module-base.bbclass HOST_LD_KERNEL_ARCH ?= "${TARGET_LD_KERNEL_ARCH}" · line 22

Quoted 6 lines
meta/classes/module-base.bbclass +3 -3
-KERNEL_CC = "${CCACHE}${HOST_PREFIX}gcc${KERNEL_CCSUFFIX} ${HOST_CC_KERNEL_ARCH}"
-KERNEL_LD = "${HOST_PREFIX}ld${KERNEL_LDSUFFIX} ${HOST_LD_KERNEL_ARCH}"
-KERNEL_AR = "${HOST_PREFIX}ar${KERNEL_ARSUFFIX} ${HOST_AR_KERNEL_ARCH}"
+KERNEL_CC = "${CC} ${HOST_CC_KERNEL_ARCH}"
+KERNEL_LD = "${LD} ${HOST_LD_KERNEL_ARCH}"
+KERNEL_AR = "${AR} ${HOST_AR_KERNEL_ARCH}"

When I was working through my build issues, I wondered if the module-base and kernel.bbclass
compile definitions could be unified to a single location (say kernel-arch.bbclass). I know
that I found an issue with it, and didn't complete my work, but can you see a way that
we could have a single definition vs the two ? These look to be exactly the same now :)

yes but I feel kernel-arch.bbclass has a different abstraction and its used by few recipes like linux-libc-headers directly adding these variables there will not affect these recipes but kernel-arch will become loaded with unrelated stuff I think.

but then I dont have strong like/dislike may be rename kernel-arch.bbclass to something like kernel-common.bbclass or some such

Quoted 21 lines

Cheers,

Bruce

Quoted 11 lines
meta/classes/module-base.bbclass +0 -1
 # kernel modules are generally machine specific
 PACKAGE_ARCH = "${MACHINE_ARCH}"
--

1.7.9.5

_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core

--
"Thou shalt not follow the NULL pointer, for chaos and madness await thee at its end"