Changeset 15153


Ignore:
Timestamp:
2009-04-08T16:13:50+02:00 (8 years ago)
Author:
claudio
Message:

Fix kernel headers for cris (thanks hinkocevar)

Location:
trunk
Files:
1 added
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/toolchain/kernel-headers/Makefile

    r14707 r15153  
    3939        CONFIG_SHELL=$(BASH) 
    4040 
    41 define Host/Prepare/pre/cris 
    42         ln -sf $(HOST_BUILD_DIR)/include/asm-cris/arch-v10 $(HOST_BUILD_DIR)/include/asm-cris/arch 
    43         ln -sf $(HOST_BUILD_DIR)/include/asm-cris/arch-v10 $(HOST_BUILD_DIR)/arch/cris/arch 
    44 endef 
    45  
    4641define Host/Prepare/pre/powerpc 
    4742        if [ -d $(HOST_BUILD_DIR)/include/asm-ppc ]; then \ 
     
    8075 
    8176# XXX: the following are needed to build a cris toolchain 
    82 define Host/Prepare/post/cris 
     77ifeq ($(strip $(call CompareKernelPatchVer,$(KERNEL_PATCHVER),lt,2.6.28)),1) 
     78  define Host/Prepare/pre/cris 
     79        ln -sf $(HOST_BUILD_DIR)/include/asm-cris/arch-v10 $(HOST_BUILD_DIR)/include/asm-cris/arch 
     80        ln -sf $(HOST_BUILD_DIR)/include/asm-cris/arch-v10 $(HOST_BUILD_DIR)/arch/cris/arch 
     81  endef 
     82 
     83  define Host/Prepare/post/cris 
     84        $(CP) \ 
     85                $(HOST_BUILD_DIR)/include/linux/user.h \ 
     86                $(BUILD_DIR_TOOLCHAIN)/linux-dev/usr/include/linux/ 
    8387        $(CP) \ 
    8488                $(HOST_BUILD_DIR)/include/linux/user.h \ 
     
    8993                $(HOST_BUILD_DIR)/include/asm-cris/user.h \ 
    9094                $(BUILD_DIR_TOOLCHAIN)/linux-dev/usr/include/asm/ 
     95        $(CP) \ 
     96                $(HOST_BUILD_DIR)/include/asm-generic/memory_model.h \ 
     97                $(HOST_BUILD_DIR)/include/asm-generic/page.h \ 
     98                $(BUILD_DIR_TOOLCHAIN)/linux-dev/usr/include/asm-generic/ 
     99 
    91100        mkdir -p $(BUILD_DIR_TOOLCHAIN)/linux-dev/usr/include/asm/arch 
    92101        $(CP) \ 
     
    96105                $(HOST_BUILD_DIR)/include/asm-cris/arch/user.h \ 
    97106                $(BUILD_DIR_TOOLCHAIN)/linux-dev/usr/include/asm/arch/ 
     107  endef 
     108else 
     109  define Host/Prepare/post/cris 
    98110        $(CP) \ 
    99                 $(HOST_BUILD_DIR)/include/asm-generic/memory_model.h \ 
    100                 $(HOST_BUILD_DIR)/include/asm-generic/page.h \ 
    101                 $(BUILD_DIR_TOOLCHAIN)/linux-dev/usr/include/asm-generic/ 
    102 endef 
     111                $(HOST_BUILD_DIR)/include/linux/user.h \ 
     112                $(BUILD_DIR_TOOLCHAIN)/linux-dev/usr/include/linux/ 
     113        ln -snf $(BUILD_DIR_TOOLCHAIN)/linux-dev/usr/include/arch-v10/arch \ 
     114                $(BUILD_DIR_TOOLCHAIN)/linux-dev/usr/include/arch 
     115        $(SED) '/#include <asm\/page\.h>/d' $(BUILD_DIR_TOOLCHAIN)/linux-dev/usr/include/asm/user.h 
     116  endef 
     117endif 
    103118 
    104119define Host/Prepare/post/mips 
Note: See TracChangeset for help on using the changeset viewer.