Ticket #9124: u-boot-2010.03-config.mk.patch

File u-boot-2010.03-config.mk.patch, 951 bytes (added by faiyaza@…, 7 years ago)
  • (a) /tmp/config.mk.orig vs. (b) config.mk

    a b  
    6464# 
    6565 
    6666ifeq ($(HOSTOS),darwin) 
    67 HOSTCC          = cc 
    68 HOSTCFLAGS      += -traditional-cpp 
    69 HOSTLDFLAGS     += -multiply_defined suppress 
     67#get the major and minor product version (e.g. '10' and '6' for Snow Leopard)  
     68DARWIN_MAJOR_VERSION   = $(shell sw_vers -productVersion | cut -f 1 -d '.')  
     69DARWIN_MINOR_VERSION   = $(shell sw_vers -productVersion | cut -f 2 -d '.')  
     70  
     71before-snow-leopard    = $(shell if [ $(DARWIN_MAJOR_VERSION) -le 10 -a \ 
     72   $(DARWIN_MINOR_VERSION) -le 5 ] ; then echo "$(1)"; else echo "$(2)"; fi ;)  
     73  
     74# Snow Leopards build environment has no longer restrictions as described above  
     75HOSTCC  = $(call before-snow-leopard, "cc", "gcc")  
     76HOSTCFLAGS += $(call before-snow-leopard, "-traditional-cpp")  
     77HOSTLDFLAGS    += $(call before-snow-leopard, "-multiply_defined suppress")  
    7078else 
    7179HOSTCC          = gcc 
    7280endif