Skip to contentSkip to conversation

mtools, syslinux: add ability to compile with nativesdk

PATCH In review Jason Wessel 2 participants 4 messages Oct 30, 2013 – Oct 31, 2013

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 mtools, syslinux: add ability to compile with nativesdk

For regenerating and ISO or EFI boot image the nativesdk needs mtools and syslinux.

Both recipes are patched in one patch since syslinux requires mtools.

---
 meta/recipes-devtools/mtools/mtools_3.9.9.bb    |    9 +++++++--
 meta/recipes-devtools/mtools/mtools_4.0.18.bb   |   12 +++++++++---
 meta/recipes-devtools/syslinux/syslinux_6.01.bb |    2 +-
 3 files changed, 17 insertions(+), 6 deletions(-)
meta/recipes-devtools/mtools/mtools_3.9.9.bb +7 -2
index 2213c17..8678a8b 100644
@@ -9,8 +9,12 @@ LICENSE = "GPLv2+"
 LIC_FILES_CHKSUM = "file://COPYING;md5=92b58ec77696788ce278b044d2a8e9d3"
 PR = "r6"
 
-RDEPENDS_${PN} = "glibc-gconv-ibm850"
-RRECOMMENDS_${PN} = "\
+targetdepgconv = ""
+targetdepgconv_class-target = "glibc-gconv-ibm850"
+RDEPENDS_${PN} = "${targetdepgconv}"
+
+targetrecgconv = ""
+targetrecgconv_class-target = "\
 	glibc-gconv-ibm437 \
 	glibc-gconv-ibm737 \
 	glibc-gconv-ibm775 \
@@ -26,6 +30,7 @@ RRECOMMENDS_${PN} = "\
 	glibc-gconv-ibm866 \
 	glibc-gconv-ibm869 \
 	"
+RRECOMMENDS_${PN} = "${targetrecgconv}"
 
 #http://mtools.linux.lu/mtools-${PV}.tar.gz 
 SRC_URI = "http://downloads.yoctoproject.org/mirror/sources/mtools-${PV}.tar.gz \
meta/recipes-devtools/mtools/mtools_4.0.18.bb +9 -3
index dcd6066..602b3c0 100644
@@ -6,8 +6,12 @@ LICENSE = "GPLv3"
 LIC_FILES_CHKSUM = "file://COPYING;md5=d32239bcb673463ab874e80d47fae504"
 
 
-RDEPENDS_${PN} = "glibc-gconv-ibm850"
-RRECOMMENDS_${PN} = "\
+targetdepgconv = ""
+targetdepgconv_class-target = "glibc-gconv-ibm850"
+RDEPENDS_${PN} = "${targetdepgconv}"
+
+targetrecgconv = ""
+targetrecgconv_class-target = "\
 	glibc-gconv-ibm437 \
 	glibc-gconv-ibm737 \
 	glibc-gconv-ibm775 \
@@ -23,6 +27,8 @@ RRECOMMENDS_${PN} = "\
 	glibc-gconv-ibm866 \
 	glibc-gconv-ibm869 \
 	"
+RRECOMMENDS_${PN} = "${targetrecgconv}"
+
 SRC_URI[md5sum] = "a23646617546bf6ad56f061d8b283c85"
 SRC_URI[sha256sum] = "59e9cf80885399c4f229e5d87e49c0c2bfeec044e1386d59fcd0b0aead6b2f85"
 
@@ -37,4 +43,4 @@ EXTRA_OECONF = "--without-x"
 
 PARALLEL_MAKEINST = ""
 
-BBCLASSEXTEND = "native"
+BBCLASSEXTEND = "native nativesdk"
meta/recipes-devtools/syslinux/syslinux_6.01.bb +1 -1
index 4438ea8..c6e83b5 100644
@@ -65,4 +65,4 @@ FILES_${PN}-dev += "${datadir}/${BPN}/com32/lib*${SOLIBS} ${datadir}/${BPN}/com3
 FILES_${PN}-staticdev += "${datadir}/${BPN}/com32/lib*.a ${libdir}/${BPN}/com32/lib*.a"
 FILES_${PN}-misc = "${datadir}/${BPN}/* ${libdir}/${BPN}/* ${bindir}/*"
 
-BBCLASSEXTEND = "native"
+BBCLASSEXTEND = "native nativesdk"
Signature · 1 line
1.7.9.5
#1 lore raw
Quoted 6 lines · Jason Wessel

For regenerating and ISO or EFI boot image the nativesdk needs mtools and syslinux.

Both recipes are patched in one patch since syslinux requires mtools.

as they depend on eglibc/glibc only. Can you also make sure that they get flagged when building
systems with non-eglibc C libraries.

Quoted 85 lines
---
 meta/recipes-devtools/mtools/mtools_3.9.9.bb    |    9 +++++++--
 meta/recipes-devtools/mtools/mtools_4.0.18.bb   |   12 +++++++++---
 meta/recipes-devtools/syslinux/syslinux_6.01.bb |    2 +-
 3 files changed, 17 insertions(+), 6 deletions(-)
meta/recipes-devtools/mtools/mtools_3.9.9.bb +7 -2
index 2213c17..8678a8b 100644
@@ -9,8 +9,12 @@ LICENSE = "GPLv2+"
 LIC_FILES_CHKSUM = "file://COPYING;md5=92b58ec77696788ce278b044d2a8e9d3"
 PR = "r6"
 
-RDEPENDS_${PN} = "glibc-gconv-ibm850"
-RRECOMMENDS_${PN} = "\
+targetdepgconv = ""
+targetdepgconv_class-target = "glibc-gconv-ibm850"
+RDEPENDS_${PN} = "${targetdepgconv}"
+
+targetrecgconv = ""
+targetrecgconv_class-target = "\
        glibc-gconv-ibm437 \
        glibc-gconv-ibm737 \
        glibc-gconv-ibm775 \
@@ -26,6 +30,7 @@ RRECOMMENDS_${PN} = "\
        glibc-gconv-ibm866 \
        glibc-gconv-ibm869 \
        "
+RRECOMMENDS_${PN} = "${targetrecgconv}"
 
 #http://mtools.linux.lu/mtools-${PV}.tar.gz
 SRC_URI = "http://downloads.yoctoproject.org/mirror/sources/mtools-${PV}.tar.gz \
meta/recipes-devtools/mtools/mtools_4.0.18.bb +9 -3
index dcd6066..602b3c0 100644
@@ -6,8 +6,12 @@ LICENSE = "GPLv3"
 LIC_FILES_CHKSUM = "file://COPYING;md5=d32239bcb673463ab874e80d47fae504"
 
 
-RDEPENDS_${PN} = "glibc-gconv-ibm850"
-RRECOMMENDS_${PN} = "\
+targetdepgconv = ""
+targetdepgconv_class-target = "glibc-gconv-ibm850"
+RDEPENDS_${PN} = "${targetdepgconv}"
+
+targetrecgconv = ""
+targetrecgconv_class-target = "\
        glibc-gconv-ibm437 \
        glibc-gconv-ibm737 \
        glibc-gconv-ibm775 \
@@ -23,6 +27,8 @@ RRECOMMENDS_${PN} = "\
        glibc-gconv-ibm866 \
        glibc-gconv-ibm869 \
        "
+RRECOMMENDS_${PN} = "${targetrecgconv}"
+
 SRC_URI[md5sum] = "a23646617546bf6ad56f061d8b283c85"
 SRC_URI[sha256sum] = "59e9cf80885399c4f229e5d87e49c0c2bfeec044e1386d59fcd0b0aead6b2f85"
 
@@ -37,4 +43,4 @@ EXTRA_OECONF = "--without-x"
 
 PARALLEL_MAKEINST = ""
 
-BBCLASSEXTEND = "native"
+BBCLASSEXTEND = "native nativesdk"
meta/recipes-devtools/syslinux/syslinux_6.01.bb +1 -2
index 4438ea8..c6e83b5 100644
@@ -65,4 +65,4 @@ FILES_${PN}-dev += "${datadir}/${BPN}/com32/lib*${SOLIBS} ${datadir}/${BPN}/com3
 FILES_${PN}-staticdev += "${datadir}/${BPN}/com32/lib*.a ${libdir}/${BPN}/com32/lib*.a"
 FILES_${PN}-misc = "${datadir}/${BPN}/* ${libdir}/${BPN}/* ${bindir}/*"
 
-BBCLASSEXTEND = "native"
+BBCLASSEXTEND = "native nativesdk"
--

1.7.9.5

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

#2 lore raw
Quoted 11 lines · Khem Raj
Quoted 6 lines · Jason Wessel

For regenerating and ISO or EFI boot image the nativesdk needs mtools and syslinux.

Both recipes are patched in one patch since syslinux requires mtools.

as they depend on eglibc/glibc only. Can you also make sure that they get flagged when building
systems with non-eglibc C libraries.

Is there an example in a recipe of what you are talking about?

I saw in another recipe:

python __anonymous() {
    if d.getVar("TARGET_OS", True) != "linux":
        return
    if d.getVar("TCLIBC", True) == "eglibc":
        raise bb.parse.SkipPackage("libiconv is provided for use with uClibc only - eglibc already provides iconv")
}

Or is there a build test I should be using to test with uClibc for when things like this change in general?

Thanks,
Jason.

#3 lore raw
Quoted 17 lines · Jason Wessel
Quoted 11 lines · Khem Raj
Quoted 6 lines · Jason Wessel

For regenerating and ISO or EFI boot image the nativesdk needs mtools and syslinux.

Both recipes are patched in one patch since syslinux requires mtools.

as they depend on eglibc/glibc only. Can you also make sure that they get flagged when building
systems with non-eglibc C libraries.

Is there an example in a recipe of what you are talking about?

I saw in another recipe:

Quoted 8 lines
python __anonymous() {
    if d.getVar("TARGET_OS", True) != "linux":
        return
    if d.getVar("TCLIBC", True) == "eglibc":
        raise bb.parse.SkipPackage("libiconv is provided for use with uClibc only - eglibc already provides iconv")
}

Or is there a build test I should be using to test with uClibc for when things like this change in general?

yes converse of above is what we need here.

Quoted 3 lines

Thanks,
Jason.