Ignorieren:
Zeitstempel:
27.12.2010 20:48:34 (vor 8 Jahren)
Autor:
er13
Nachricht:

toolchain:

  • exclude kernel-headers from the download-toolchain
  • install the right ones at the build-time
  • refs #842, refs #348
Datei:
1 bearbeitet

Legende:

Unverändert
Hinzugefügt
Entfernt
  • trunk/toolchain/make/toolchain-common.in

    r6380 r6384  
    8787 
    8888 
    89 TOOLCHAIN_EXCLUDE_FILES := *uClibc++* *g++-uc libtool* aclocal 
     89TOOLCHAIN_EXCLUDE_FILES := *uClibc++* *g++-uc libtool* aclocal lib32 
     90# Union of versions 2.6.13, 2.6.19, and 2.6.28 
     91KERNEL_HEADERS_SUBDIRS := asm asm-generic drm linux mtd rdma scsi sound video 
    9092 
    9193# $1 - toolchain base dir 
     
    9698    tname="$${dname}$(if $(strip $(2)),-$(strip $(2)))"; \ 
    9799    $(RM) $(DL_DIR)/$${tname}.tar.lzma; \ 
    98     $(TOOLS_DIR)/tar -C $${droot} -c $${dname} $(foreach f,$(TOOLCHAIN_EXCLUDE_FILES),--exclude $(f)) | \ 
     100    $(TOOLS_DIR)/tar -C $${droot} -c $${dname} $(foreach f,$(TOOLCHAIN_EXCLUDE_FILES) $(addprefix include/,$(KERNEL_HEADERS_SUBDIRS)),--exclude $(f)) | \ 
    99101    $(TOOLS_DIR)/lzma e -si $(DL_DIR)/$${tname}.tar.lzma -d25; 
    100102endef 
     
    104106# $3 - subdirs to be copied (optional, if omitted all subdirs are copied) 
    105107define COPY_KERNEL_HEADERS 
    106     if [ ! -f $(strip $(2))/include/linux/version.h ] ; then \ 
     108    if ! diff -q $(strip $(1))/include/linux/version.h $(strip $(2))/include/linux/version.h >/dev/null 2>&1 ; then \ 
     109        $(RM) -r $(addprefix $(strip $(2))/include/,$(KERNEL_HEADERS_SUBDIRS)); \ 
    107110        mkdir -p $(strip $(2))/include/; \ 
    108111        cp -pLR $(strip $(1))/include/$(if $(strip $(3)),$(strip $(3)),*) $(strip $(2))/include/; \ 
Hinweis: Hilfe zur Verwendung der Changeset-Ansicht finden Sie unter TracChangeset.