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
TEST=Booted onto a machine and successfully ran rootdev with a large
Signed-off-by: Dan Ehrenberg <firstname.lastname@example.org>
Reviewed-by: Mike Frysinger <email@example.com>
Commit-Queue: Mike Frysinger <firstname.lastname@example.org>
diff --git a/Makefile b/Makefile
index 1575f3a..5e83c57 100644
@@ -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))