From 8dd1aa8b70c4200d1c9774715fbc7860114dd8a8 Mon Sep 17 00:00:00 2001 From: Khem Raj Date: Sat, 9 Jan 2016 20:23:49 -0800 Subject: dosfstools: Correct cross-compile CFLAGS and fix build with musl enable largefile support if its in DISTRO_FEATURES (From OE-Core rev: 300defd71205bf350a6e956451e0cc87c4e92902) Signed-off-by: Khem Raj Signed-off-by: Richard Purdie --- meta/recipes-devtools/dosfstools/dosfstools_3.0.28.bb | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'meta/recipes-devtools/dosfstools/dosfstools_3.0.28.bb') diff --git a/meta/recipes-devtools/dosfstools/dosfstools_3.0.28.bb b/meta/recipes-devtools/dosfstools/dosfstools_3.0.28.bb index addcbf607c..6fc3e41dfe 100644 --- a/meta/recipes-devtools/dosfstools/dosfstools_3.0.28.bb +++ b/meta/recipes-devtools/dosfstools/dosfstools_3.0.28.bb @@ -9,12 +9,17 @@ SECTION = "base" LICENSE = "GPLv3" LIC_FILES_CHKSUM = "file://COPYING;md5=d32239bcb673463ab874e80d47fae504" -SRC_URI = "https://github.com/dosfstools/dosfstools/releases/download/v3.0.28/dosfstools-3.0.28.tar.xz" +SRC_URI = "https://github.com/dosfstools/dosfstools/releases/download/v3.0.28/dosfstools-3.0.28.tar.xz \ + file://largefile.patch \ + file://0001-mkfs.fat-fix-incorrect-int-type.patch \ + " SRC_URI[md5sum] = "6a047a6c65186b9ebb1853709adb36db" SRC_URI[sha256sum] = "ee95913044ecf2719b63ea11212917649709a6e53209a72d622135aaa8517ee2" UPSTREAM_CHECK_URI = "https://github.com/dosfstools/dosfstools/releases" +CFLAGS += "-D_GNU_SOURCE ${@bb.utils.contains('DISTRO_FEATURES', 'largefile', '-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64', '', d)}" + FILES_${PN} = "${base_sbindir}" FILES_${PN}-doc = "${mandir} ${docdir}" -- cgit v1.2.3-54-g00ecf