[Buildroot] [PATCH] mtd: drop unconditional non LFS build
Thomas Petazzoni
thomas.petazzoni at free-electrons.com
Tue Aug 18 20:44:39 UTC 2015
Dear Baruch Siach,
On Tue, 11 Aug 2015 07:35:33 +0300, Baruch Siach wrote:
> Buildroot removed non LFS support in the 2015.05 release. We now pass
> -D_FILE_OFFSET_BITS=64 unconditionally, so the mtd WITHOUT_LARGEFILE make
> variable has no effect.
>
> Signed-off-by: Baruch Siach <baruch at tkos.co.il>
> ---
> package/mtd/mtd.mk | 6 ++----
> 1 file changed, 2 insertions(+), 4 deletions(-)
>
> diff --git a/package/mtd/mtd.mk b/package/mtd/mtd.mk
> index edf6e083ed60..5f14f1677645 100644
> --- a/package/mtd/mtd.mk
> +++ b/package/mtd/mtd.mk
> @@ -24,15 +24,13 @@ ifeq ($(BR2_PACKAGE_BUSYBOX),y)
> MTD_DEPENDENCIES += busybox
> endif
>
> -MTD_MAKE_OPTS = WITHOUT_LARGEFILE=1
> -
> # If extended attributes are required, the acl package must
> # also be enabled which will also include the attr package.
> ifeq ($(BR2_PACKAGE_ACL),y)
> MTD_DEPENDENCIES += acl
> -MTD_MAKE_OPTS += WITHOUT_XATTR=0
> +MTD_MAKE_OPTS = WITHOUT_XATTR=0
> else
> -MTD_MAKE_OPTS += WITHOUT_XATTR=1
> +MTD_MAKE_OPTS = WITHOUT_XATTR=1
I believe using += is still better, as it will avoid potential mistakes
in the future. I've reverted to use += instead, and applied your patch
to next. Thanks!
Thomas
--
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
More information about the buildroot
mailing list