|
# --- ROCK-COPYRIGHT-NOTE-BEGIN ---
|
|
#
|
|
# This copyright note is auto-generated by ./scripts/Create-CopyPatch.
|
|
# Please add additional copyright information _after_ the line containing
|
|
# the ROCK-COPYRIGHT-NOTE-END tag. Otherwise it might get removed by
|
|
# the ./scripts/Create-CopyPatch script. Do not edit this copyright text!
|
|
#
|
|
# ROCK Linux: rock-src/package/base/linux24-header/linux24-header.conf
|
|
# ROCK Linux is Copyright (C) 1998 - 2003 Clifford Wolf
|
|
#
|
|
# This program is free software; you can redistribute it and/or modify
|
|
# it under the terms of the GNU General Public License as published by
|
|
# the Free Software Foundation; either version 2 of the License, or
|
|
# (at your option) any later version. A copy of the GNU General Public
|
|
# License can be found at Documentation/COPYING.
|
|
#
|
|
# Many people helped and are helping developing ROCK Linux. Please
|
|
# have a look at http://www.rocklinux.org/ and the Documentation/TEAM
|
|
# file for details.
|
|
#
|
|
# --- ROCK-COPYRIGHT-NOTE-END ---
|
|
|
|
# include the function to patch and configure the kernel
|
|
. $base/package/base/linux24/lx_config.sh
|
|
|
|
main_lx_header() {
|
|
echo "Extracting the Linux Kernel Sources [$ver] ... "
|
|
tar $taropt $archdir/$srctar
|
|
cd linux-$vanilla_ver
|
|
|
|
# patch and configure
|
|
lx_config
|
|
|
|
# install the header files - and do some post-processing for sparc
|
|
rm -rf $root/$prefix/include/{asm,asm-generic,linux,asm-sparc,asm-sparc64}
|
|
mkdir -p $root/$prefix/include
|
|
if [ $arch != sparc ] ; then
|
|
mkdir -p $root/$prefix/include/asm
|
|
cp -rv include/asm/* $root/$prefix/include/asm/
|
|
cp -rv include/{asm-generic,linux} $root/$prefix/include/
|
|
else
|
|
# we can only generate this files when we have a cross compiler
|
|
# which is stage 1 and above ...
|
|
if [ $stagelevel -gt 0 ] ; then
|
|
# build two generated headers first ...
|
|
make ARCH=sparc TOPDIR=$PWD HPATH=$PWD/include \
|
|
arch/sparc/kernel/Makefile check_asm
|
|
[ $lx_cpu = sparc64 ] && \
|
|
make ARCH=sparc64 TOPDIR=$PWD HPATH=$PWD/include \
|
|
arch/sparc64/kernel/Makefile check_asm
|
|
fi
|
|
|
|
cp -rv include/{asm-{sparc{,64},generic},linux} $root/$prefix/include/
|
|
cp -v $base/package/base/linux24-header/generate-asm .
|
|
chmod +x ./generate-asm
|
|
./generate-asm $root/$prefix/include
|
|
fi
|
|
}
|
|
|
|
autoextract=0 ; createdocs=0
|
|
|
|
custmain="main_lx_header"
|
|
patchfiles="$base/package/$repository/linux$treever/*.patch $patchfiles"
|
|
|