A question

Dely Nicolas Nicolas.Dely at thomson.net
Wed Nov 9 16:06:42 UTC 2005


Hi all,

I've tried something to correct i[456]86 problem with grub

On Sun, 2005-10-30 at 14:44 -0800, Brian Beattie wrote:
> I'm trying to build an embedded system based on a Soekris board and have
> run into a problem with building grub.  I can easily get around this,
> but I'd like to report this and get a fix into buildroot.  So my
> question is two fold, is my analysis correct and what is the "correct"
> way to report it.
> 
> the problem with grub is two fold, the makefile is not included by the
> top level makefile this can be fixed by the patch below.  The second
> problem is that grub.mk starts with "ifeq ($(ARCH),i386)".  The Soekris
> CPU is a 486 and grub works with x86 family, not just the i386.
> 
> Comments and advice welcome.
> 
> Patch follows:
> -------------
> 
> --- Makefile.orig       2005-10-30 14:34:57.391512464 -0800
> +++ Makefile    2005-10-30 14:33:32.698387776 -0800
> @@ -72,6 +72,7 @@
>  # in the .config file.
>  include toolchain/*/*.mk
>  include package/*/*.mk
> +include target/*/*/*.mk
>  include target/*/*.mk
>  
>  # target stuff is last so it can override anything else
> 

My answer is a little hack, another solution might examine if $(ARCH)
belong to i*86 list. Sure something better exists.

--- grub.mk.old 2005-11-09 16:58:56.714166544 +0100
+++ grub.mk     2005-11-09 16:57:41.942533560 +0100
@@ -1,4 +1,6 @@
-ifeq ($(ARCH),i386)
+ARCHTYPE:=$(shell echo $(ARCH)| sed "s/i.86/x86/")
+
+ifeq ($(ARCHTYPE),x86)
 #############################################################
 #
 # grub




More information about the uClibc mailing list