source: trunk/target/linux/uml/patches-2.6.30/005-fix_bash4_builds.patch @ 19572

Last change on this file since 19572 was 19572, checked in by florian, 6 years ago

[uml] move 2.6.30 patches to their appropriate directory

File size: 1.7 KB
  • arch/um/Makefile

    commit 67dac695a1f33716f3e35c2292e7391410d58751
    Author: Paul Bolle <pebolle@tiscali.nl>
    Date:   Sun Sep 6 14:36:01 2009 +0200
    
        um: add work around for build problems with bash 4
        
        Building User Mode Linux fails with bash 4. The UML Makefiles use an
        environment variable called CPPFLAGS_vmlinux.lds but bash 4 does not
        export environment variables with a dot in their name. Add a hack to
        allow building UML with bash 4 (which should not affect other shells).
        
        Signed-off-by: Paul Bolle <pebolle@tiscali.nl>
    
    a b CFLAGS_NO_HARDENING := $(call cc-option, 
    9999CONFIG_KERNEL_STACK_ORDER ?= 2 
    100100STACK_SIZE := $(shell echo $$[ 4096 * (1 << $(CONFIG_KERNEL_STACK_ORDER)) ] ) 
    101101 
    102 CPPFLAGS_vmlinux.lds = -U$(SUBARCH) -DSTART=$(START) -DELF_ARCH=$(ELF_ARCH) \ 
    103         -DELF_FORMAT="$(ELF_FORMAT)" -DKERNEL_STACK_SIZE=$(STACK_SIZE) 
    104  
    105102# The wrappers will select whether using "malloc" or the kernel allocator. 
    106103LINK_WRAPS = -Wl,--wrap,malloc -Wl,--wrap,free -Wl,--wrap,calloc 
    107104 
    $(SHARED_HEADERS)/kern_constants.h: 
    152149        $(Q)mkdir -p $(dir $@) 
    153150        $(Q)echo '#include "../../../../include/asm/asm-offsets.h"' >$@ 
    154151 
    155 export SUBARCH USER_CFLAGS CFLAGS_NO_HARDENING OS HEADER_ARCH DEV_NULL_PATH 
     152export SUBARCH USER_CFLAGS CFLAGS_NO_HARDENING OS HEADER_ARCH DEV_NULL_PATH \ 
     153       ELF_ARCH ELF_FORMAT STACK_SIZE START 
  • arch/um/kernel/Makefile

    a b  
    33# Licensed under the GPL 
    44# 
    55 
     6CPPFLAGS_vmlinux.lds = -P -C -U$(ARCH) -U$(SUBARCH) -DSTART=$(START) \ 
     7        -DELF_ARCH=$(ELF_ARCH) -DELF_FORMAT="$(ELF_FORMAT)" \ 
     8        -DKERNEL_STACK_SIZE=$(STACK_SIZE) 
     9 
    610extra-y := vmlinux.lds 
    711clean-files := 
    812 
Note: See TracBrowser for help on using the repository browser.