[oe] Strangeness with mkdosfs on OMAP3 board

Sergey Lapin slapinid at gmail.com
Tue Jul 20 14:52:40 UTC 2010


On Fri, Jul 9, 2010 at 1:45 AM, Khem Raj <raj.khem at gmail.com> wrote:
> On Thu, Jul 8, 2010 at 6:54 AM, Sergey Lapin <slapinid at gmail.com> wrote:
>> -D_FILE_OFFSET_BITS=64, where it has gone?
>
> CFLAGS are overwritten, and the makefile is a bit non cross compilation friendly
> you can add this
>
> CFLAGS += "-D_FILE_OFFSET_BITS=64
>
> to dosfstools_2.11.bb and then rebuild just this recipe.
>
> Does that help ?
Yeah, this helps. Actually. the fast-baked patch I use locally:
diff --git a/recipes/dosfstools/dosfstools_2.11.bb
b/recipes/dosfstools/dosfstools_2.11.bb
index 211912a..89522f5 100644
--- a/recipes/dosfstools/dosfstools_2.11.bb
+++ b/recipes/dosfstools/dosfstools_2.11.bb
@@ -8,15 +8,22 @@ SECTION = "base"
 PRIORITY = "optional"
 LICENSE = "GPLv2"

-PR = "r0"
+PR = "r1"

 SRC_URI = "ftp://ftp.uni-erlangen.de/pub/Linux/LOCAL/dosfstools/dosfstools-${PV}.src.tar.gz
\
           file://alignment_hack.patch \
            file://msdos_fat12_undefined.patch \
           file://include-linux-types.patch"

+do_compile () {
+       oe_runmake "PREFIX=${D}" "SBINDIR=${D}${sbindir}" \
+                  CFLAGS="${CFLAGS} -D_FILE_OFFSET_BITS=64" \
+                  "MANDIR=${D}${mandir}/man8"
+}
+
 do_install () {
        oe_runmake "PREFIX=${D}" "SBINDIR=${D}${sbindir}" \
+                  CFLAGS="${CFLAGS} -D_FILE_OFFSET_BITS=64" \
                   "MANDIR=${D}${mandir}/man8" install
 }

But, probably, it is too many lines and I had no time to make proper
one and commit :(




More information about the Openembedded-devel mailing list