Changeset 2066

Show
Ignore:
Timestamp:
09/20/07 23:47:45 (1 year ago)
Author:
alexander
Message:

Removed installation of kernel source parts (aka debian-style headers)
irrelevant to the target platform.

Added installation of debian-style headers for x86_64 build.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/packages/linux/Makefile

    r2061 r2066  
    109109            cd DESTDIR-modules ; tar zcvf ../../$(DIR8)-kernel-$(VRS).tgz . ; cd .. ; \ 
    110110            cd DESTDIR-tools ; tar zcvf ../../$(DIR8)-tools.tgz . 
     111        rm -rf $(DIR2) $(DIR3) $(DIR4) $(DIR5) $(DIR6) $(DIR7) $(DIR8) $(DIR9) 
     112        cd .. ; ./debian-style-headers.sh $(DIR) 
    111113        mv *.tgz /drivers 
    112         cd .. ; ./debian-style-headers.sh $(DIR) 
    113114 
    114115clean: 
  • trunk/packages/linux/debian-style-headers.sh

    r1823 r2066  
    11#!/bin/sh 
    22 
    3 SRCDIR="$1" 
    4 KVERSION=`grep UTS_RELEASE "$SRCDIR/include/linux/utsrelease.h" | cut -d '"' -f 2` 
     3cd "$1" 
     4 
     5KVERSION=`grep UTS_RELEASE include/linux/utsrelease.h | cut -d '"' -f 2` 
    56DSTDIR=/usr/src/linux-$KVERSION 
    6  
    7 echo $SRCDIR $DSTDIR 
    87 
    98rm -rf "$DSTDIR" 
    109mkdir "$DSTDIR" 
    11 cp -rv "$SRCDIR/.config" "$SRCDIR/Makefile" "$SRCDIR/Module.symvers" "$DSTDIR" 
    12 cp -rv "$SRCDIR/.kconfig.d" "$SRCDIR/.version" "$SRCDIR/.kernelrelease" "$DSTDIR" 
    13 cp -rv "$SRCDIR/include" "$SRCDIR/scripts" "$DSTDIR" 
    14 ( cd "$SRCDIR" ; find -type d ) | ( 
    15         while read dir ; do 
    16             mkdir -p "$DSTDIR/$dir" 
    17         done ) 
    18 ( cd "$SRCDIR" ; find -type f -a '(' -name Kconfig\* \ 
    19     -o -name Makefile\* -o -name \*.s ')' ) | ( 
    20         cd "$SRCDIR" 
     10cp -r .config Makefile Module.symvers .kconfig.d .version .kernelrelease scripts "$DSTDIR" 
     11mkdir -p "$DSTDIR/include" 
     12find include -maxdepth 1 | grep -v asm- | xargs '-I{}' cp -r '{}' "$DSTDIR/include" 
     13cp -r include/asm-{i386,x86_64,generic} "$DSTDIR/include" 
     14find . -type f -a '(' -name Kconfig\* \ 
     15    -o -name Makefile\* -o -name \*.s ')' | ( 
    2116        while read file ; do 
    22             cp -v "$file" "$DSTDIR/$file" 
     17            case "$file" in 
     18                ./arch/i386*|./include/asm-generic*|./include/asm-i386*|./include/asm-x86_64*) 
     19                    mkdir -p "$DSTDIR/`dirname $file`" 
     20                    cp "$file" "$DSTDIR/$file" 
     21                    ;; 
     22                ./arch/*|./include/asm-*) 
     23                    ;; 
     24                *) 
     25                    mkdir -p "$DSTDIR/`dirname $file`" 
     26                    cp "$file" "$DSTDIR/$file" 
     27                    ;; 
     28            esac 
    2329        done ) 
    2430ln -nsf "$DSTDIR" "/lib/modules/$KVERSION/source" 
  • trunk/packages/linux64/Makefile

    r2061 r2066  
    135135            cd DESTDIR-tools ; tar zcvf ../../$(DIR8)-tools.tgz . 
    136136        cp -v arch/x86_64/boot/bzImage /boot/isolinux/linux 
     137        rm -rf $(DIR2) $(DIR3) $(DIR4) $(DIR5) $(DIR6) $(DIR7) $(DIR8) $(DIR9) 
     138        cd .. ; ./debian-style-headers.sh $(DIR) 
    137139endif 
    138140        mv *.tgz /drivers 
     141 
    139142 
    140143clean: