Changeset 22060


Ignore:
Timestamp:
2010-07-04T17:46:20+02:00 (7 years ago)
Author:
nbd
Message:

[backfire] backport grub fixes from trunk

Location:
branches/backfire/package/grub
Files:
3 added
1 edited

Legend:

Unmodified
Added
Removed
  • branches/backfire/package/grub/Makefile

    r21367 r22060  
    4545CONFIGURE_VARS += $(MY_CONFIGURE_VARS) 
    4646 
     47ifeq ($(HOST_OS),Darwin) 
     48  HOST_CFLAGS += $(call host-cc-option,-m32) 
     49  HOST_CFLAGS += $(call host-cc-option,-fnested-functions) 
     50endif 
     51 
    4752HOST_CFLAGS += $(call host-cc-option,-fno-stack-protector) 
    4853HOST_CFLAGS += $(call host-cc-option,-U_FORTIFY_SOURCE) 
     
    5358 
    5459HOST_CONFIGURE_VARS += $(MY_CONFIGURE_VARS) 
     60 
     61define Host/Configure 
     62        (cd $(HOST_BUILD_DIR); aclocal && autoconf && automake) 
     63        $(call Host/Configure/Default) 
     64endef 
     65 
     66ifeq ($(HOST_OS),Darwin) 
     67  define Host/Compile 
     68        $(MAKE) -C $(HOST_BUILD_DIR)/lib 
     69        $(MAKE) -C $(HOST_BUILD_DIR)/stage2 libgrub.a 
     70        $(MAKE) -C $(HOST_BUILD_DIR)/grub 
     71  endef 
     72  define Host/Install 
     73        $(MAKE) -C $(HOST_BUILD_DIR)/grub install 
     74  endef 
     75endif 
    5576 
    5677define Build/InstallDev 
Note: See TracChangeset for help on using the changeset viewer.