From 5d7d7ff513315abd103d0c95e92ae646c1a7688c Mon Sep 17 00:00:00 2001 From: Dan Ehrenberg Date: Wed, 4 Mar 2015 16:00:24 -0800 Subject: rootdev: Use large file support (LFS) Without LFS, stat fails with -EOVERFLOW on devices with major:minor numbers that don't fit within 8 bits on 32-bit architecutres. This patch turns on LFS to allow that, fixing a bringup but on a new platform. BUG=chromium:464024 TEST=Booted onto a machine and successfully ran rootdev with a large major:minor number. Change-Id: I3dfe698e65366f4608705f56894988d2643e375f Signed-off-by: Dan Ehrenberg Reviewed-on: https://chromium-review.googlesource.com/258550 Reviewed-by: Mike Frysinger Commit-Queue: Mike Frysinger --- Makefile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 1575f3a..5e83c57 100644 --- a/Makefile +++ b/Makefile @@ -1,8 +1,12 @@ -# Copyright (C) 2010 The Chromium OS Authors. All rights reserved. +# Copyright (c) 2010 The Chromium OS Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. CFLAGS += -Wall -Werror + +# Support large files and major:minor numbers +CPPFLAGS += -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE + OUT = $(CURDIR) $(shell mkdir -p $(OUT)) -- cgit v1.2.3