diff options
author | Khem Raj <raj.khem@gmail.com> | 2010-07-08 22:53:17 -0700 |
---|---|---|
committer | Khem Raj <raj.khem@gmail.com> | 2010-07-08 22:53:17 -0700 |
commit | 17da1f1387220ebc2321bdc46694062a0a224641 (patch) | |
tree | 9b3f3761be583a58d1eb909f102a364e96dccbc3 | |
parent | 2a6e03c72e41c1b7d1725e0df657551038df51b7 (diff) |
dosfstools: Add recipe for 3.0.9 and fix large file support.
* Pass -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 if large file support
supported.
Signed-off-by: Khem Raj <raj.khem@gmail.com>
-rw-r--r-- | recipes/dosfstools/dosfstools_2.11.bb | 4 | ||||
-rw-r--r-- | recipes/dosfstools/dosfstools_3.0.9.bb | 28 |
2 files changed, 31 insertions, 1 deletions
diff --git a/recipes/dosfstools/dosfstools_2.11.bb b/recipes/dosfstools/dosfstools_2.11.bb index 211912a116..cecf98531e 100644 --- a/recipes/dosfstools/dosfstools_2.11.bb +++ b/recipes/dosfstools/dosfstools_2.11.bb @@ -8,12 +8,14 @@ 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" +CLFAGS_append = ' -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64' +CFLAGS_append_libc-uclibc = ' ${@base_contains("DISTRO_FEATURES", "largefile", "-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64", "", d)}' do_install () { oe_runmake "PREFIX=${D}" "SBINDIR=${D}${sbindir}" \ diff --git a/recipes/dosfstools/dosfstools_3.0.9.bb b/recipes/dosfstools/dosfstools_3.0.9.bb new file mode 100644 index 0000000000..32169f720f --- /dev/null +++ b/recipes/dosfstools/dosfstools_3.0.9.bb @@ -0,0 +1,28 @@ +# dosfstools OE build file +# Copyright (C) 2004-2006, Advanced Micro Devices, Inc. All Rights Reserved +# Released under the MIT license (see packages/COPYING) + +DESCRIPTION = "DOS FAT Filesystem Utilities" + +SECTION = "base" +PRIORITY = "optional" +LICENSE = "GPLv3" + +DEFAULT_PREFERENCE = "-1" + +PR = "r0" + +SRC_URI = "http://www.daniel-baumann.ch/software/dosfstools/dosfstools-${PV}.tar.bz2 \ + " +# output of getconf LFS_CFLAGS +# +CLFAGS_append = ' -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64' +CFLAGS_append_libc-uclibc = ' ${@base_contains("DISTRO_FEATURES", "largefile", "-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64", "", d)}' + +do_install () { + oe_runmake "PREFIX=${D}" "SBINDIR=${D}${sbindir}" \ + "MANDIR=${D}${mandir}/man8" install +} + +SRC_URI[md5sum] = "7f159ec44d3b9c502904bab0236050e4" +SRC_URI[sha256sum] = "3f63676faeac507e909d84c8920ddb6597da1eb688577c2fc9c756b821d0458f" |