diff options
author | Dan Ehrenberg <dehrenberg@chromium.org> | 2015-03-04 16:00:24 -0800 |
---|---|---|
committer | ChromeOS Commit Bot <chromeos-commit-bot@chromium.org> | 2015-03-14 08:23:43 +0000 |
commit | 5d7d7ff513315abd103d0c95e92ae646c1a7688c (patch) | |
tree | d6401b998ddef44214ac0add61a1e14a5845a95e | |
parent | a4507857e42fcbb5211bc1e02213b6a87b8086a2 (diff) | |
download | rootdev-5d7d7ff513315abd103d0c95e92ae646c1a7688c.tar.gz |
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 <dehrenberg@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/258550
Reviewed-by: Mike Frysinger <vapier@chromium.org>
Commit-Queue: Mike Frysinger <vapier@chromium.org>
-rw-r--r-- | Makefile | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -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)) |