upgrade libc-package.bbclass; add libgcc
cover upgrade libc-package.bbclass; add libgcc
I tested on qemux86 and qemumips: bitbake poky-image-sdk and meta-toolchain-sdk can build fine.
The patches are straightforward and should not incur regression. Anyway, please review them carefully in case I made mistakes. :-)
thanks,
-- Dexuan
Pull URL: git://git.pokylinux.org/poky-contrib.git
Branch: dcui/master
Browse: http://git.pokylinux.org/cgit.cgi/poky-contrib/log/?h=dcui/master
Thanks,
Dexuan Cui <[email protected]>
---
Dexuan Cui (2):
libgcc: use the new recipe (rather than gcc-runtime) to install
libgcc_s.so* and crt*.o
libc-package.bbclass: should not rm scsi/*.h
meta/classes/libc-package.bbclass | 3 - meta/conf/distro/include/poky-default.inc | 1 + .../recipes-devtools/gcc/gcc-configure-runtime.inc | 16 +------- meta/recipes-devtools/gcc/gcc-package-runtime.inc | 8 ---- meta/recipes-devtools/gcc/gcc-runtime_4.3.3.bb | 2 +- meta/recipes-devtools/gcc/gcc-runtime_4.5.1.bb | 2 +- meta/recipes-devtools/gcc/libgcc_4.5.1.bb | 43 ++++++++++++++++++++ 7 files changed, 47 insertions(+), 28 deletions(-) create mode 100644 meta/recipes-devtools/gcc/libgcc_4.5.1.bb
Signature · 1 line
1.7.2
PATCH 1/2 libgcc: use the new recipe (rather than gcc-runtime) to install libgcc_s.so* and crt*.o
Currently gcc-runtime installs the files, but actually gcc-runtime's do_configure checks if the files are available, so before we build gcc-runtime, we should have some recipe install the files first! -- currently gcc-cross-intermediate actually does that(gcc-cross also installs the files, but it installs into the gcc-build-internal* directory), but gcc-cross-intermediate will have its own sysroot in future, after that, gcc-runtime won't build. So let us add this new target recipe and move the installation of the files from gcc-runtime into it.
--- meta/conf/distro/include/poky-default.inc | 1 + .../recipes-devtools/gcc/gcc-configure-runtime.inc | 16 +------- meta/recipes-devtools/gcc/gcc-package-runtime.inc | 8 ---- meta/recipes-devtools/gcc/gcc-runtime_4.3.3.bb | 2 +- meta/recipes-devtools/gcc/gcc-runtime_4.5.1.bb | 2 +- meta/recipes-devtools/gcc/libgcc_4.5.1.bb | 43 ++++++++++++++++++++ 6 files changed, 47 insertions(+), 25 deletions(-) create mode 100644 meta/recipes-devtools/gcc/libgcc_4.5.1.bb
meta/conf/distro/include/poky-default.inc +1 -0
@@ -11,6 +11,7 @@ PREFERRED_PROVIDER_virtual/${TARGET_PREFIX}gcc-intermediate = "gcc-cross-interme PREFERRED_PROVIDER_virtual/${TARGET_PREFIX}gcc = "gcc-cross" PREFERRED_PROVIDER_virtual/${TARGET_PREFIX}g++ = "gcc-cross" PREFERRED_PROVIDER_virtual/${TARGET_PREFIX}compilerlibs = "gcc-runtime" +PREFERRED_PROVIDER_virtual/${TARGET_PREFIX}libgcc = "libgcc" PREFERRED_PROVIDER_virtual/${TARGET_PREFIX}libc-initial = "${POKYLIBC}-initial" PREFERRED_PROVIDER_virtual/${SDK_PREFIX}libc-for-gcc-nativesdk ?= "${POKYLIBC}-nativesdk"
meta/recipes-devtools/gcc/gcc-configure-runtime.inc +1 -15
@@ -31,28 +31,14 @@ do_compile () { } do_install () { - target=`echo ${MULTIMACH_TARGET_SYS} | sed -e s#-nativesdk##` - - # Install libgcc from our gcc-cross saved data - install -d ${D}${base_libdir} ${D}${libdir} - cp -fpPR ${STAGING_INCDIR_NATIVE}/gcc-build-internal-$target/* ${D} - for d in ${RUNTIMETARGET}; do cd ${B}/$d/ oe_runmake 'DESTDIR=${D}' install done - - # Move libgcc_s into /lib - mkdir -p ${D}${base_libdir} - if [ -f ${D}${libdir}/nof/libgcc_s.so ]; then - mv ${D}${libdir}/nof/libgcc* ${D}${base_libdir} - else - mv ${D}${libdir}/libgcc* ${D}${base_libdir} || true - fi } INHIBIT_DEFAULT_DEPS = "1" -DEPENDS = "virtual/${TARGET_PREFIX}gcc virtual/${TARGET_PREFIX}g++" +DEPENDS = "virtual/${TARGET_PREFIX}gcc virtual/${TARGET_PREFIX}g++ libgcc" PROVIDES = "virtual/${TARGET_PREFIX}compilerlibs" BBCLASSEXTEND = "nativesdk"
meta/recipes-devtools/gcc/gcc-package-runtime.inc +0 -8
@@ -1,6 +1,4 @@ PACKAGES = "\ - libgcc \ - libgcc-dev \ libstdc++ \ libstdc++-precompile-dev \ libstdc++-dev \
@@ -14,12 +12,6 @@ PACKAGES = "\ libmudflap-dev \ " -FILES_libgcc = "${base_libdir}/libgcc*.so.*" -FILES_libgcc-dev = " \ - ${base_libdir}/libgcc*.so \ - ${libdir}/${TARGET_SYS}/${BINV}/crt* \ - ${libdir}/${TARGET_SYS}/${BINV}/libgcc*" - FILES_libg2c = "${target_libdir}/libg2c.so.*" FILES_libg2c-dev = "\ ${libdir}/libg2c.so \
meta/recipes-devtools/gcc/gcc-runtime_4.3.3.bb +1 -1
@@ -1,4 +1,4 @@ -PR = "r17" +PR = "r18" require gcc-${PV}.inc require gcc-configure-runtime.inc
meta/recipes-devtools/gcc/gcc-runtime_4.5.1.bb +1 -1
@@ -1,4 +1,4 @@ -PR = "r1" +PR = "r2" require gcc-${PV}.inc require gcc-configure-runtime.inc
meta/recipes-devtools/gcc/libgcc_4.5.1.bb new file +43 -0
43 lines not on this page · raw message
Signature · 1 line
1.7.2
Re: [PATCH 1/2] libgcc: use the new recipe (rather than gcc-runtime) to install libgcc_s.so* and crt*.o
Op 15 jan 2011, om 12:23 heeft Dexuan Cui het volgende geschreven:
Quoted 8 lines
Currently gcc-runtime installs the files, but actually gcc-runtime's
do_configurechecks if the files are available, so before we build gcc-runtime, we should have some recipe install the files first! -- currently gcc-cross-intermediate actually doesthat(gcc-cross also installs the files, but it installs into the gcc-build-internal* directory), but gcc-cross-intermediate will have its own sysroot in future, after that, gcc-runtime won't build. So let us add this new target recipe and move the installation of the files from gcc-runtime into it.
I understand the problem, but...
meta/recipes-devtools/gcc/libgcc_4.5.1.bb line 31
Quoted 8 lines
meta/recipes-devtools/gcc/libgcc_4.5.1.bb +6
-0+do_install () { + target=`echo ${MULTIMACH_TARGET_SYS} | sed -e s#-nativesdk##` + + # Install libgcc from our gcc-cross saved data + install -d ${D}${base_libdir} ${D}${libdir} + cp -fpPR ${STAGING_INCDIR_NATIVE}/gcc-build-internal-$target/* ${D}
... why can't gcc-cross create the libgcc(-dev) packages? You're using the exact files gcc-cross installs, so why have an extra recipe? It feels backwards to have one package grab files from another package from sysroots and package those.
regards,
Koen
Re: [PATCH 1/2] libgcc: use the new recipe (rather than gcc-runtime) to install libgcc_s.so* and crt*.o
Quoted 20 lines · Koen Kooi
Op 15 jan 2011, om 12:23 heeft Dexuan Cui het volgende geschreven:
Quoted 4 lines
Currently gcc-runtime installs the files, but actually gcc-runtime's
do_configurechecks if the files are available, so before we build gcc-runtime,
we should have some recipe install the files first! -- currentlyQuoted 8 lines
gcc-cross-intermediate actually does that(gcc-cross also installs the files,
but it installs into the gcc-build-internal* directory), but gcc-cross-intermediate will have its own sysroot in future, after that,
gcc-runtime won't build. So let us add this new target recipe and move the
installation of the files from gcc-runtime into it.I understand the problem, but...
Quoted 3 lines
meta/recipes-devtools/gcc/libgcc_4.5.1.bb +0
-0
Quoted 10 lines
meta/recipes-devtools/gcc/libgcc_4.5.1.bb line 31
Quoted 5 lines
meta/recipes-devtools/gcc/libgcc_4.5.1.bb +5
-0+do_install () { + target=`echo ${MULTIMACH_TARGET_SYS} | sed -e s#-nativesdk##` + + # Install libgcc from our gcc-cross saved data + install -d ${D}${base_libdir} ${D}${libdir} + cp -fpPR ${STAGING_INCDIR_NATIVE}/gcc-build-internal-$target/* ${D}... why can't gcc-cross create the libgcc(-dev) packages? You're using the exact files gcc-cross installs, so why have an extra recipe? It feels backwards to have one package grab files from another package from sysroots and package those.
I discussed this with Richard in the #yocto IRC channel several days ago. Richard thinks the packaging of the files should be in a target recipe rather than a cross one. Cc Richard for further explanation why doing the packaging in a gcc-cross is a mistake. :-)
Thanks,
-- Dexuan
Re: [PATCH 1/2] libgcc: use the new recipe (rather than gcc-runtime) to install libgcc_s.so* and crt*.o
Op 15 jan 2011, om 12:55 heeft Cui, Dexuan het volgende geschreven:
Quoted 31 lines
Quoted 20 lines · Koen Kooi
Op 15 jan 2011, om 12:23 heeft Dexuan Cui het volgende geschreven:
Quoted 4 lines
Currently gcc-runtime installs the files, but actually gcc-runtime's
do_configurechecks if the files are available, so before we build gcc-runtime,
we should have some recipe install the files first! -- currentlyQuoted 8 lines
gcc-cross-intermediate actually does that(gcc-cross also installs the files,
but it installs into the gcc-build-internal* directory), but gcc-cross-intermediate will have its own sysroot in future, after that,
gcc-runtime won't build. So let us add this new target recipe and move the
installation of the files from gcc-runtime into it.I understand the problem, but...
Quoted 3 lines
meta/recipes-devtools/gcc/libgcc_4.5.1.bb +0
-0Quoted 10 lines
meta/recipes-devtools/gcc/libgcc_4.5.1.bb line 31
Quoted 5 lines
meta/recipes-devtools/gcc/libgcc_4.5.1.bb +5
-0+do_install () { + target=`echo ${MULTIMACH_TARGET_SYS} | sed -e s#-nativesdk##` + + # Install libgcc from our gcc-cross saved data + install -d ${D}${base_libdir} ${D}${libdir} + cp -fpPR ${STAGING_INCDIR_NATIVE}/gcc-build-internal-$target/* ${D}... why can't gcc-cross create the libgcc(-dev) packages? You're using the exact files gcc-cross installs, so why have an extra recipe? It feels backwards to have one package grab files from another package from sysroots and package those.
Quoted 3 lines
I discussed this with Richard in the #yocto IRC channel several days ago. Richard thinks the packaging of the files should be in a target recipe rather than a cross one. Cc Richard for further explanation why doing the packaging in a gcc-cross is a mistake. :-)
I know packaging files from gcc-cross leads to all kinds of problems, but you're not using a target recipe, you are now indirectly packaging files from gcc-cross instead of directly.
Since the files are exactly the same, why is this work around better than just packaging them directly. Or the other options, just building a new libgcc with a "real" recipe.
regards,
Koen
Re: [PATCH 1/2] libgcc: use the new recipe (rather than gcc-runtime) to install libgcc_s.so* and crt*.o
Quoted 33 lines · Koen Kooi
Op 15 jan 2011, om 12:55 heeft Cui, Dexuan het volgende geschreven:
Quoted 31 lines
Quoted 30 lines · Koen Kooi
Op 15 jan 2011, om 12:23 heeft Dexuan Cui het volgende geschreven:
Quoted 4 lines
Currently gcc-runtime installs the files, but actually gcc-runtime's
do_configurechecks if the files are available, so before we build gcc-runtime,
we should have some recipe install the files first! -- currentlyQuoted 8 lines
gcc-cross-intermediate actually does that(gcc-cross also installs the files,
but it installs into the gcc-build-internal* directory), but gcc-cross-intermediate will have its own sysroot in future, after that,
gcc-runtime won't build. So let us add this new target recipe and move the
installation of the files from gcc-runtime into it.I understand the problem, but...
meta/recipes-devtools/gcc/libgcc_4.5.1.bb line 31
Quoted 8 lines
meta/recipes-devtools/gcc/libgcc_4.5.1.bb +5
-0+do_install () { + target=`echo ${MULTIMACH_TARGET_SYS} | sed -e s#-nativesdk##` + + # Install libgcc from our gcc-cross saved data + install -d ${D}${base_libdir} ${D}${libdir} + cp -fpPR ${STAGING_INCDIR_NATIVE}/gcc-build-internal-$target/* ${D}... why can't gcc-cross create the libgcc(-dev) packages? You're using the exact files gcc-cross installs, so why have an extra recipe? It feels backwards to have one package grab files from another package from sysroots and package those.
Quoted 7 lines
Quoted 3 lines
I discussed this with Richard in the #yocto IRC channel several days ago. Richard thinks the packaging of the files should be in a target recipe rather than a cross one. Cc Richard for further explanation why doing the packaging in a gcc-cross is a mistake. :-)
I know packaging files from gcc-cross leads to all kinds of problems, but you're not using a target recipe, you are now indirectly packaging files from gcc-cross instead of directly.
Looking at the patch, isn't libgcc a target recipe?
The underlying problem here, highlighted when we dived into the separate sysroots for the toolchain bootstrap is that gcc-runtime builds libstdc ++ against the gcc-cross-intermediate libgcc as its the one in the sysroot, not the one from gcc-cross as it should.
I do think we should package things in the target recipe context and I think this is what Dexuan's patch is doing.
Quoted 3 lines
Since the files are exactly the same, why is this work around better than just packaging them directly. Or the other options, just building a new libgcc with a "real" recipe.
Building libgcc by itself turns out to be quite horrible to do. I live in hope the gcc guys clean it up but until then...
Cheers,
Richard
Re: [PATCH 1/2] libgcc: use the new recipe (rather than gcc-runtime) to install libgcc_s.so* and crt*.o
Quoted 56 lines · Richard Purdie
Quoted 37 lines · Koen Kooi
Op 15 jan 2011, om 12:55 heeft Cui, Dexuan het volgende geschreven:
Quoted 29 lines
Quoted 17 lines · Koen Kooi
Op 15 jan 2011, om 12:23 heeft Dexuan Cui het volgende geschreven:
Quoted 9 lines
Currently gcc-runtime installs the files, but actually gcc-runtime's
do_configurechecks if the files are available, so before we build gcc-runtime, we should have some recipe install the files first! -- currently gcc-cross-intermediate actually doesthat(gcc-cross also installs the files, but it installs into the gcc-build-internal* directory), but gcc-cross-intermediate will have its own sysroot in future, after that, gcc-runtime won't build. So let us add this new target recipe and move the installation of the files from gcc-runtime into it.I understand the problem, but...
Quoted 3 lines
meta/recipes-devtools/gcc/libgcc_4.5.1.bb +0
-0Quoted 11 lines
Quoted 6 lines
meta/recipes-devtools/gcc/libgcc_4.5.1.bb +5
-0+do_install () { + target=`echo ${MULTIMACH_TARGET_SYS} | sed -e s#-nativesdk##` + + # Install libgcc from our gcc-cross saved data + install -d ${D}${base_libdir} ${D}${libdir} + cp -fpPR ${STAGING_INCDIR_NATIVE}/gcc-build-internal-$target/*${D}
... why can't gcc-cross create the libgcc(-dev) packages? You're using the exact files gcc-cross installs, so why have an extra recipe? It feels backwards to have one package grab files from another package from sysroots and package those.
Quoted 5 lines
I discussed this with Richard in the #yocto IRC channel several days ago.
Richard thinks the packaging of the files should be in a target recipe rather than a cross one. Cc Richard for further explanation why doing the packaging in a gcc-cross is a mistake. :-)Quoted 3 lines
I know packaging files from gcc-cross leads to all kinds of problems, but you're not using a target recipe, you are now indirectly packaging files from gcc-cross instead of directly.
Looking at the patch, isn't libgcc a target recipe?
The underlying problem here, highlighted when we dived into the separate sysroots for the toolchain bootstrap is that gcc-runtime builds libstdc ++ against the gcc-cross-intermediate libgcc as its the one in the sysroot, not the one from gcc-cross as it should.
I do think we should package things in the target recipe context and I think this is what Dexuan's patch is doing.
Quoted 3 lines
Since the files are exactly the same, why is this work around better than just packaging them directly. Or the other options, just building a new libgcc with a "real" recipe.
Quoted 6 lines
Building libgcc by itself turns out to be quite horrible to do. I live in hope the gcc guys clean it up but until then...
Cheers,
Richard
Hi Richard, Thanks a lot for the explanation!
BTW: after careful checking, I found the crt*.o files are actually not packaged properly into the target image (the log is below) :-( Looks my patch missed something? But looks the original gcc-runtime recipe also hasn't any special?
I'm debugging this. Any quick hint is appreciate!
NOTE: the following files were installed but not shipped in any package:
/lib/libgcc_s.so
NOTE: /lib/libgcc_s.so
/usr/lib/i586-poky-linux/4.5.1/crtbeginS.o
NOTE: /usr/lib/i586-poky-linux/4.5.1/crtbeginS.o
/usr/lib/i586-poky-linux/4.5.1/crtfastmath.o
NOTE: /usr/lib/i586-poky-linux/4.5.1/crtfastmath.o
/usr/lib/i586-poky-linux/4.5.1/libgcc.a
NOTE: /usr/lib/i586-poky-linux/4.5.1/libgcc.a
/usr/lib/i586-poky-linux/4.5.1/libgcov.a
NOTE: /usr/lib/i586-poky-linux/4.5.1/libgcov.a
/usr/lib/i586-poky-linux/4.5.1/crtend.o
NOTE: /usr/lib/i586-poky-linux/4.5.1/crtend.o
/usr/lib/i586-poky-linux/4.5.1/crtbeginT.o
NOTE: /usr/lib/i586-poky-linux/4.5.1/crtbeginT.o
/usr/lib/i586-poky-linux/4.5.1/crtbegin.o
NOTE: /usr/lib/i586-poky-linux/4.5.1/crtbegin.o
/usr/lib/i586-poky-linux/4.5.1/crtendS.o
NOTE: /usr/lib/i586-poky-linux/4.5.1/crtendS.o
/usr/lib/i586-poky-linux/4.5.1/crtprec32.o
NOTE: /usr/lib/i586-poky-linux/4.5.1/crtprec32.o
/usr/lib/i586-poky-linux/4.5.1/libgcc_eh.a
NOTE: /usr/lib/i586-poky-linux/4.5.1/libgcc_eh.a
/usr/lib/i586-poky-linux/4.5.1/crtprec80.o
NOTE: /usr/lib/i586-poky-linux/4.5.1/crtprec80.o
/usr/lib/i586-poky-linux/4.5.1/crtprec64.o
NOTE: /usr/lib/i586-poky-linux/4.5.1/crtprec64.o
Thanks,
-- Dexuan
Re: [PATCH 1/2] libgcc: use the new recipe (rather than gcc-runtime) to install libgcc_s.so* and crt*.o
Quoted 10 lines · Dexuan
BTW: after careful checking, I found the crt*.o files are actually not packaged properly into the target image (the log is below) :-( Looks my patch missed something? But looks the original gcc-runtime recipe also hasn't any special?
I'm debugging this. Any quick hint is appreciated!NOTE: the following files were installed but not shipped in any
package:/lib/libgcc_s.so
NOTE:/lib/libgcc_s.so
/usr/lib/i586-poky-linux/4.5.1/crtbeginS.o
Hi, the issue was fixed: I didn't define PREFERRED_PROVIDER and PROVIDES properly.
I'll resend the new pull request soon.
Thanks,
-- Dexuan
PATCH 2/2 libc-package.bbclass: should not rm scsi/*.h
In reply to Dexuan Cui{e}glibc should install the scsi/*.h files, which are needed by hal. Currently hal can build because eglibc-initial (which has its own do_install) installs the files. In future eglibc will have its own sysroot, so hal won't build.
BTW: in OE side, eglibc's do_install also doesn't remove the files.
--- meta/classes/libc-package.bbclass | 3 --- 1 files changed, 0 insertions(+), 3 deletions(-)
meta/classes/libc-package.bbclass +0 -3
@@ -95,9 +95,6 @@ do_install() { mv ${WORKDIR}/SUPPORTED.tmp ${WORKDIR}/SUPPORTED done rm -f ${D}{sysconfdir}/rpc - rm -f ${D}${includedir}/scsi/sg.h - rm -f ${D}${includedir}/scsi/scsi_ioctl.h - rm -f ${D}${includedir}/scsi/scsi.h rm -rf ${D}${datadir}/zoneinfo rm -rf ${D}${libexecdir}/getconf }
Signature · 1 line
1.7.2
Re: [PATCH 2/2] libc-package.bbclass: should not rm scsi/*.h
Op 15 jan 2011, om 12:23 heeft Dexuan Cui het volgende geschreven:
Quoted 6 lines
{e}glibc should install the scsi/*.h files, which are needed by hal. Currently hal can build because eglibc-initial (which has its own
do_install) installs the files. In future eglibc will have its own sysroot, so hal won't build.BTW: in OE side, eglibc's
do_installalso doesn't remove the files.
As some background info: There's a conflict between linux-libc-headers-dev and libc-dev when installing on the target. In OE we do this instead:
koen@dominion:/OE/org.openembedded.dev$ grep scsi recipes/linux-libc-headers/ -rn
recipes/linux-libc-headers/linux-libc-headers_2.6.32.bb:23: rm -f ${D}${exec_prefix}/include/scsi/scsi.h
recipes/linux-libc-headers/linux-libc-headers_2.6.31.bb:23: rm -f ${D}${exec_prefix}/include/scsi/scsi.h
recipes/linux-libc-headers/linux-libc-headers_2.6.34.bb:42: rm -f ${D}${exec_prefix}/include/scsi/scsi.hregards,
Koen
Re: [PATCH 2/2] libc-package.bbclass: should not rm scsi/*.h
Quoted 14 lines · Koen Kooi
Op 15 jan 2011, om 12:23 heeft Dexuan Cui het volgende geschreven:
Quoted 7 lines
{e}glibc should install the scsi/*.h files, which are needed by hal. Currently hal can build because eglibc-initial (which has its own
do_install) installs the files. In future eglibc will have its own sysroot, so hal
won't build.BTW: in OE side, eglibc's
do_installalso doesn't remove the files.As some background info: There's a conflict between linux-libc-headers-dev and libc-dev when installing on the target. In OE we do this instead:
Quoted 8 lines
koen@dominion:/OE/org.openembedded.dev$ grep scsi
recipes/linux-libc-headers/ -rn
recipes/linux-libc-headers/linux-libc-headers_2.6.32.bb:23: rm -f
${D}${exec_prefix}/include/scsi/scsi.h
recipes/linux-libc-headers/linux-libc-headers_2.6.31.bb:23: rm -f
${D}${exec_prefix}/include/scsi/scsi.h
recipes/linux-libc-headers/linux-libc-headers_2.6.34.bb:42: rm -f
${D}${exec_prefix}/include/scsi/scsi.h My understanding is:
Linux kernel should not export these files: in OE side see 91d3d92a acked by you. :-)
So {e}glibc should supply the files -- previously poky did supply, but 7379ee77 removed the files -- I think this is incorrect.
BTW: in poky, we can see linux-libc-headers_2.6.36.bb also correctly removes the file.
thanks
-- Dexuan
Re: [PATCH 2/2] libc-package.bbclass: should not rm scsi/*.h
Quoted 8 lines · Dexuan
Quoted 7 lines · Koen Kooi
Op 15 jan 2011, om 12:23 heeft Dexuan Cui het volgende geschreven:
Quoted 5 lines
{e}glibc should install the scsi/*.h files, which are needed by hal. Currently hal can build because eglibc-initial (which has its own
do_install) installs the files. In future eglibc will have its own sysroot, so hal
won't build.
Unrelated, is it on the roadmap already to upgrade things to use devicekit rather than hal?
Quoted 14 lines
Quoted 6 lines
Quoted 1 line
BTW: in OE side, eglibc's
do_installalso doesn't remove the files.As some background info: There's a conflict between linux-libc-headers-dev and libc-dev when installing on the target. In OE we do this instead:
Quoted 8 lines
koen@dominion:/OE/org.openembedded.dev$ grep scsi recipes/linux-libc-headers/ -rn recipes/linux-libc-headers/linux-libc-headers_2.6.32.bb:23: rm -f ${D}${exec_prefix}/include/scsi/scsi.h recipes/linux-libc-headers/linux-libc-headers_2.6.31.bb:23: rm -f ${D}${exec_prefix}/include/scsi/scsi.h recipes/linux-libc-headers/linux-libc-headers_2.6.34.bb:42: rm -f ${D}${exec_prefix}/include/scsi/scsi.h
Quoted 5 lines
My understanding is:
Linux kernel should not export these files: in OE side see91d3d92aacked by you. :-)
So {e}glibc should supply the files -- previously poky did supply, but7379ee77removed the files -- I think this is incorrect.BTW: in poky, we can see linux-libc-headers_2.6.36.bb also correctly removes the file.
Correct. The kernel (incorrectly) re-introduced exporting <scsi/scsi.h>.
Signature · 2 lines
Tom Rini Mentor Graphics Corporation