summaryrefslogtreecommitdiffstats
path: root/target/x86/grub/grub.mk
diff options
context:
space:
mode:
Diffstat (limited to 'target/x86/grub/grub.mk')
-rw-r--r--target/x86/grub/grub.mk4
1 files changed, 4 insertions, 0 deletions
diff --git a/target/x86/grub/grub.mk b/target/x86/grub/grub.mk
index 8e4bd575e..af3ce6da0 100644
--- a/target/x86/grub/grub.mk
+++ b/target/x86/grub/grub.mk
@@ -36,6 +36,10 @@ GRUB_TARGET_FILES+=$(GRUB_SPLASHIMAGE)
endif
GRUB_CFLAGS=-DSUPPORT_LOOPDEV
+ifeq ($(BR2_LARGEFILE),)
+GRUB_CFLAGS+=-U_FILE_OFFSET_BITS
+endif
+
$(DL_DIR)/$(GRUB_SOURCE):
$(WGET) -P $(DL_DIR) $(GRUB_SITE)/$(GRUB_SOURCE)