Changeset 11542


Ignore:
Timestamp:
2008-06-20T03:43:20+02:00 (8 years ago)
Author:
agb
Message:

[x86] grub: Natively build grub only on x86 linux hosts, cross compile everywhere else.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/package/grub/Makefile

    r9351 r11542  
    1 #  
    2 # Copyright (C) 2006 OpenWrt.org 
     1# 
     2# Copyright (C) 2006-2008 OpenWrt.org 
    33# 
    44# This is free software, licensed under the GNU General Public License v2. 
     
    3131endef 
    3232 
    33 ifeq ($(HOST_ARCH),x86_64) 
     33ifeq ($(HOST_OS),Linux) 
     34  NATIVEGRUB-i386:=1 
     35  NATIVEGRUB-i686:=1 
     36  NATIVEGRUB:=$(NATIVEGRUB-$(HOST_ARCH)) 
     37endif 
     38 
     39ifeq ($(NATIVEGRUB),) 
    3440CONFIGURE_FLAGS:= \ 
    3541        --target=$(GNU_TARGET_NAME) \ 
     
    6369 
    6470# 
    65 # ./configure detects whether the host compiler supports  
     71# ./configure detects whether the host compiler supports 
    6672# -fno-stack-protector but only sets STAGE2_CFLAGS accordingly 
    6773# 
Note: See TracChangeset for help on using the changeset viewer.