Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: aldot at uclibc.org <aldot@uclibc.org>
To: buildroot@busybox.net
Subject: [Buildroot] svn commit: trunk/buildroot/target/x86/grub
Date: Wed, 29 Nov 2006 12:26:06 -0800 (PST)	[thread overview]
Message-ID: <20061129202606.98CCB4859A@busybox.net> (raw)

Author: aldot
Date: 2006-11-29 12:26:05 -0800 (Wed, 29 Nov 2006)
New Revision: 16727

Log:
- honor uclibc's notion of LFS support


Added:
   trunk/buildroot/target/x86/grub/grub.300-honor_UCLIBC_HAS_LFS.patch

Modified:
   trunk/buildroot/target/x86/grub/grub.mk


Changeset:
Added: trunk/buildroot/target/x86/grub/grub.300-honor_UCLIBC_HAS_LFS.patch
===================================================================
--- trunk/buildroot/target/x86/grub/grub.300-honor_UCLIBC_HAS_LFS.patch	2006-11-29 19:28:41 UTC (rev 16726)
+++ trunk/buildroot/target/x86/grub/grub.300-honor_UCLIBC_HAS_LFS.patch	2006-11-29 20:26:05 UTC (rev 16727)
@@ -0,0 +1,34 @@
+diff -rup grub-0.97.orig/grub/asmstub.c grub-0.97/grub/asmstub.c
+--- grub-0.97.orig/grub/asmstub.c	2006-11-29 20:36:20.000000000 +0100
++++ grub-0.97/grub/asmstub.c	2006-11-29 21:26:16.000000000 +0100
+@@ -18,10 +18,13 @@
+  *  Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+  */
+ 
++#include <features.h>
++#if !defined __UCLIBC__ || (defined __UCLIBC__ && defined __UCLIBC_HAS_LFS__)
+ /* Try to use glibc's transparant LFS support. */
+ #define _LARGEFILE_SOURCE	1
+ /* lseek becomes synonymous with lseek64.  */
+ #define _FILE_OFFSET_BITS	64
++#endif
+ 
+ /* Simulator entry point. */
+ int grub_stage2 (void);
+diff -rup grub-0.97.orig/lib/device.c grub-0.97/lib/device.c
+--- grub-0.97.orig/lib/device.c	2006-11-29 20:36:20.000000000 +0100
++++ grub-0.97/lib/device.c	2006-11-29 21:25:19.000000000 +0100
+@@ -18,10 +18,13 @@
+  *  Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+  */
+ 
++#include <features.h>
++#if !defined __UCLIBC__ || (defined __UCLIBC__ && defined __UCLIBC_HAS_LFS__)
+ /* Try to use glibc's transparant LFS support. */
+ #define _LARGEFILE_SOURCE       1
+ /* lseek becomes synonymous with lseek64.  */
+ #define _FILE_OFFSET_BITS       64
++#endif
+ 
+ #include <stdio.h>
+ #include <stdlib.h>

Modified: trunk/buildroot/target/x86/grub/grub.mk
===================================================================
--- trunk/buildroot/target/x86/grub/grub.mk	2006-11-29 19:28:41 UTC (rev 16726)
+++ trunk/buildroot/target/x86/grub/grub.mk	2006-11-29 20:26:05 UTC (rev 16727)
@@ -36,6 +36,10 @@
 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)
 

             reply	other threads:[~2006-11-29 20:26 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-11-29 20:26 aldot at uclibc.org [this message]
  -- strict thread matches above, loose matches on Subject: below --
2009-01-31 12:30 [Buildroot] svn commit: trunk/buildroot/target/x86/grub jacmet at uclibc.org
2009-01-31 12:29 jacmet at uclibc.org
2008-11-08 22:24 tpetazzoni at uclibc.org
2008-05-12 18:56 nkukard at uclibc.org
2008-05-01 17:14 ninevoltz at uclibc.org
2008-02-22 19:37 sjhill at uclibc.org
2008-02-28 15:25 ` Fathi Boudra
2007-09-30 18:06 aldot at uclibc.org
2007-05-15 11:39 aldot at uclibc.org
2007-02-07 10:43 aldot at uclibc.org
2007-01-29 22:12 aldot at uclibc.org
2007-01-29 18:34 aldot at uclibc.org
2006-12-20 17:08 aldot at uclibc.org
2006-11-29 12:17 aldot at uclibc.org
2006-11-22 15:22 aldot at uclibc.org
2006-11-17 11:47 aldot at uclibc.org

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20061129202606.98CCB4859A@busybox.net \
    --to=aldot@uclibc.org \
    --cc=buildroot@busybox.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox