mtd-utils: do not stage headers in sysroot
PATCH 1/1 mtd-utils: do not stage headers in sysroot
* Headers are included in the package for compatibility
* but have not yet been synched with linux 3.0
* The actual issue was that ubi-user.h in sysroot
* was overwritten by the older version.
* Unfortunately one ioctl was renamed:
* http://lists.infradead.org/pipermail/linux-mtd/
* 2011-March/034419.html
* Note: the recipe will still use its own older header,
* following upstream.
--- meta/recipes-devtools/mtd/mtd-utils_1.5.0.bb | 6 +----- 1 files changed, 1 insertions(+), 5 deletions(-)
meta/recipes-devtools/mtd/mtd-utils_1.5.0.bb +1 -5
@@ -11,16 +11,12 @@ SRC_URI = "git://git.infradead.org/mtd-utils.git;protocol=git;tag=ca39eb1d98e736 S = "${WORKDIR}/git/" -PR = "r0" +PR = "r1" EXTRA_OEMAKE = "'CC=${CC}' 'RANLIB=${RANLIB}' 'AR=${AR}' 'CFLAGS=${CFLAGS} -I${S}/include -DWITHOUT_XATTR' 'BUILDDIR=${S}'" do_install () { oe_runmake install DESTDIR=${D} SBINDIR=${sbindir} MANDIR=${mandir} INCLUDEDIR=${includedir} - install -d ${D}${includedir}/mtd/ - for f in ${S}/include/mtd/*.h; do - install -m 0644 $f ${D}${includedir}/mtd/ - done } PARALLEL_MAKE = ""
Signature · 1 line
1.7.3.4
Quoted 25 lines · Andrea Adami
* Headers are included in the package for compatibility
* but have not yet been synched with linux 3.0
* The actual issue was thatubi-user.hin sysroot
* was overwritten by the older version.
* Unfortunately one ioctl was renamed:
* http://lists.infradead.org/pipermail/linux-mtd/
* 2011-March/034419.html
* Note: the recipe will still use its own older header,
* following upstream.Signed-off-by Andrea Adami<[email protected]>--- meta/recipes-devtools/mtd/mtd-utils_1.5.0.bb | 6 +----- 1 files changed, 1 insertions(+), 5 deletions(-)meta/recipes-devtools/mtd/mtd-utils_1.5.0.bb +1
-1@@ -11,16 +11,12 @@ SRC_URI = "git://git.infradead.org/mtd-utils.git;protocol=git;tag=ca39eb1d98e736 S = "${WORKDIR}/git/" -PR = "r0" +PR = "r1"
meta/recipes-devtools/mtd/mtd-utils_1.5.0.bb SRC_URI = "git://git.infradead.org/mtd-utils.git;protocol=git;tag=ca39eb1d98e736 · line 20
Quoted 10 lines
meta/recipes-devtools/mtd/mtd-utils_1.5.0.bb +0
-4EXTRA_OEMAKE = "'CC=${CC}' 'RANLIB=${RANLIB}' 'AR=${AR}' 'CFLAGS=${CFLAGS} -I${S}/include -DWITHOUT_XATTR' 'BUILDDIR=${S}'" do_install () { oe_runmake install DESTDIR=${D} SBINDIR=${sbindir} MANDIR=${mandir} INCLUDEDIR=${includedir} - install -d ${D}${includedir}/mtd/ - for f in ${S}/include/mtd/*.h; do - install -m 0644 $f ${D}${includedir}/mtd/ - done }
Just curious how this was tested?
I did a couple of different builds and on one clean rebuild, I found that udev failed because it could not find mtd/mtd-user.h
Thanks
Sau!
Quoted 2 lines
meta/recipes-devtools/mtd/mtd-utils_1.5.0.bb +0
-0PARALLEL_MAKE = ""
Quoted 44 lines · Saul Wold
Quoted 32 lines · Andrea Adami
* Headers are included in the package for compatibility
* but have not yet been synched with linux 3.0
* The actual issue was thatubi-user.hin sysroot
* was overwritten by the older version.
* Unfortunately one ioctl was renamed:
* http://lists.infradead.org/pipermail/linux-mtd/
* 2011-March/034419.html
* Note: the recipe will still use its own older header,
* following upstream.Signed-off-by Andrea Adami<[email protected]>---
meta/recipes-devtools/mtd/mtd-utils_1.5.0.bb | 6 +-----1 files changed, 1 insertions(+), 5 deletions(-)meta/recipes-devtools/mtd/mtd-utils_1.5.0.bb +0
-0@@ -11,16 +11,12 @@ SRC_URI ="
git://git.infradead.org/mtd-utils.git;protocol=git;tag=ca39eb1d98e736S = "${WORKDIR}/git/"
meta/recipes-devtools/mtd/mtd-utils_1.5.0.bb +1
-1-PR = "r0" +PR = "r1"EXTRA_OEMAKE = "'CC=${CC}' 'RANLIB=${RANLIB}' 'AR=${AR}' 'CFLAGS=${CFLAGS} -I${S}/include -DWITHOUT_XATTR' 'BUILDDIR=${S}'"
Quoted 8 lines
do_install () {
oe_runmake install DESTDIR=${D} SBINDIR=${sbindir} MANDIR=${mandir} INCLUDEDIR=${includedir}
- install -d ${D}${includedir}/mtd/
- for f in ${S}/include/mtd/*.h; do
- install -m 0644 $f ${D}${includedir}/mtd/
- done
}Just curious how this was tested?
Quoted 9 lines
I did a couple of different builds and on one clean rebuild, I found that udev failed because it could not find
mtd/mtd-user.hThanks
Sau!Quoted 2 lines
PARALLEL_MAKE = ""
Strange...
I've done build from scratch of core-image-base to test and all was built just fine, included udev_164.
It would be indeed bizarre if udev would depend on headers provided by mtd-utils, though.
Finally, mtd-user.h belongs to linux-libc-headers(-dev) package.
Regards
Andrea
Quoted 55 lines · Andrea Adami
Quoted 44 lines · Saul Wold
Quoted 35 lines · Andrea Adami
* Headers are included in the package for compatibility
* but have not yet been synched with linux 3.0
* The actual issue was thatubi-user.hin sysroot
* was overwritten by the older version.
* Unfortunately one ioctl was renamed:
* http://lists.infradead.org/pipermail/linux-mtd/
* 2011-March/034419.html
* Note: the recipe will still use its own older header,
* following upstream.Signed-off-by Andrea Adami<[email protected]>--- meta/recipes-devtools/mtd/mtd-utils_1.5.0.bb | 6 +----- 1 files changed, 1 insertions(+), 5 deletions(-)meta/recipes-devtools/mtd/mtd-utils_1.5.0.bb +0
-0@@ -11,16 +11,12 @@ SRC_URI ="
git://git.infradead.org/mtd-utils.git;protocol=git;tag=ca39eb1d98e736S = "${WORKDIR}/git/"meta/recipes-devtools/mtd/mtd-utils_1.5.0.bb +1
-1-PR = "r0" +PR = "r1" EXTRA_OEMAKE = "'CC=${CC}' 'RANLIB=${RANLIB}' 'AR=${AR}''CFLAGS=${CFLAGS} -I${S}/include -DWITHOUT_XATTR' 'BUILDDIR=${S}'"
do_install () { oe_runmake install DESTDIR=${D} SBINDIR=${sbindir} MANDIR=${mandir}INCLUDEDIR=${includedir}
meta/recipes-devtools/mtd/mtd-utils_1.5.0.bb SRC_URI = "git://git.infradead.org/mtd-utils.git;protocol=git;tag=ca39eb1d98e736 · line 20
Quoted 5 lines
meta/recipes-devtools/mtd/mtd-utils_1.5.0.bb +0
-4- install -d ${D}${includedir}/mtd/ - for f in ${S}/include/mtd/*.h; do - install -m 0644 $f ${D}${includedir}/mtd/ - done }Just curious how this was tested?
Quoted 9 lines
I did a couple of different builds and on one clean rebuild, I found that udev failed because it could not find
mtd/mtd-user.hThanks
Sau!Quoted 2 lines
PARALLEL_MAKE= ""
Quoted 8 lines
Strange...
I've done build from scratch of core-image-base to test and all was built just fine, includedudev_164.
It would be indeed bizarre if udev would depend on headers provided by mtd-utils, though.Finally,
mtd-user.hbelongs to linux-libc-headers(-dev) package.
If that's the case, then maybe there's a race condition as to or we need to also add linux-libc-headers to the udev package to ensure they are installed correctly before udev is built.
Sau!
Quoted 10 lines
Regards
Andrea
_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core
Quoted 68 lines · Saul Wold
Quoted 67 lines · Andrea Adami
Quoted 48 lines · Saul Wold
Quoted 33 lines · Andrea Adami
* Headers are included in the package for compatibility
* but have not yet been synched with linux 3.0
* The actual issue was thatubi-user.hin sysroot
* was overwritten by the older version.
* Unfortunately one ioctl was renamed:
* http://lists.infradead.org/pipermail/linux-mtd/
* 2011-March/034419.html
* Note: the recipe will still use its own older header,
* following upstream.Signed-off-by Andrea Adami<[email protected]>---
meta/recipes-devtools/mtd/mtd-utils_1.5.0.bb | 6 +-----1 files changed, 1 insertions(+), 5 deletions(-)meta/recipes-devtools/mtd/mtd-utils_1.5.0.bb +0
-0@@ -11,16 +11,12 @@ SRC_URI ="
git://git.infradead.org/mtd-utils.git;protocol=git;tag=ca39eb1d98e736S = "${WORKDIR}/git/"
meta/recipes-devtools/mtd/mtd-utils_1.5.0.bb +1
-1-PR = "r0" +PR = "r1"EXTRA_OEMAKE = "'CC=${CC}' 'RANLIB=${RANLIB}' 'AR=${AR}' 'CFLAGS=${CFLAGS} -I${S}/include -DWITHOUT_XATTR' 'BUILDDIR=${S}'"
Quoted 9 lines
do_install () {
oe_runmake install DESTDIR=${D} SBINDIR=${sbindir} MANDIR=${mandir}
INCLUDEDIR=${includedir}
- install -d ${D}${includedir}/mtd/
- for f in ${S}/include/mtd/*.h; do
- install -m 0644 $f ${D}${includedir}/mtd/
- done
}Just curious how this was tested?
Quoted 9 lines
I did a couple of different builds and on one clean rebuild, I found that udev failed because it could not find
mtd/mtd-user.hThanks
Sau!Quoted 2 lines
PARALLEL_MAKE = ""
Strange...
I've done build from scratch of core-image-base to test and all was built just fine, includedudev_164.
It would be indeed bizarre if udev would depend on headers provided by mtd-utils, though.
Quoted 5 lines
Quoted 2 lines
Finally,
mtd-user.hbelongs to linux-libc-headers(-dev) package.If that's the case, then maybe there's a race condition as to or we need to also add linux-libc-headers to the udev package to ensure they are installed correctly before udev is built.
kernel-headers are installed very eary on even before toolchain or libc are built
udev can only be compiled after libc is built. So there is something else going on here
Saul Wold
AppliedQuoted 27 lines · Andrea Adami
* Headers are included in the package for compatibility
* but have not yet been synched with linux 3.0
* The actual issue was thatubi-user.hin sysroot
* was overwritten by the older version.
* Unfortunately one ioctl was renamed:
* http://lists.infradead.org/pipermail/linux-mtd/
* 2011-March/034419.html
* Note: the recipe will still use its own older header,
* following upstream.Signed-off-by Andrea Adami<[email protected]>--- meta/recipes-devtools/mtd/mtd-utils_1.5.0.bb | 6 +----- 1 files changed, 1 insertions(+), 5 deletions(-)meta/recipes-devtools/mtd/mtd-utils_1.5.0.bb +1
-1@@ -11,16 +11,12 @@ SRC_URI = "git://git.infradead.org/mtd-utils.git;protocol=git;tag=ca39eb1d98e736 S = "${WORKDIR}/git/" -PR = "r0" +PR = "r1" EXTRA_OEMAKE = "'CC=${CC}' 'RANLIB=${RANLIB}' 'AR=${AR}' 'CFLAGS=${CFLAGS} -I${S}/include -DWITHOUT_XATTR' 'BUILDDIR=${S}'"
meta/recipes-devtools/mtd/mtd-utils_1.5.0.bb SRC_URI = "git://git.infradead.org/mtd-utils.git;protocol=git;tag=ca39eb1d98e736 · line 22
Quoted 10 lines
meta/recipes-devtools/mtd/mtd-utils_1.5.0.bb +0
-4do_install () { oe_runmake install DESTDIR=${D} SBINDIR=${sbindir} MANDIR=${mandir} INCLUDEDIR=${includedir} - install -d ${D}${includedir}/mtd/ - for f in ${S}/include/mtd/*.h; do - install -m 0644 $f ${D}${includedir}/mtd/ - done } PARALLEL_MAKE = ""
Merged into OE-Core
Thanks
Sau!