#!/bin/sh # --- T2-COPYRIGHT-NOTE-BEGIN --- # This copyright note is auto-generated by ./scripts/Create-CopyPatch. # # T2 SDE: package/.../linux-header/linux-header.conf # Copyright (C) 2004 - 2005 The T2 SDE Project # # More information can be found in the files COPYING and README. # # 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; version 2 of the License. A copy of the # GNU General Public License can be found in the file COPYING. # --- T2-COPYRIGHT-NOTE-END --- . $base/package/*/*/linux-conf.in # hack due to sane variable not available and root is tools root -ReneR [ $stagelevel = 0 ] && root="$base/build/$SDECFG_ID" main_lx_header() { lx_patch # we need to create an config since this generates some files yes '' | eval $MAKE oldconfig > /dev/null # install the header files - and do some post-processing for sparc rm -rf $root/$prefix/include/{asm,asm-generic,linux,sound,asm-sparc,asm-sparc64} mkdir -p $root/$prefix/include case $arch in sparc64) # we can only generate this files when we have a cross compiler # which is stage 1 and above ... if [ $stagelevel -gt 0 -a $treever != 26 ] ; then # build two generated headers first ... make ARCH=sparc CROSS_COMPILE=$archprefix KCC=$KCC \ arch/sparc/kernel/Makefile check_asm make ARCH=sparc64 CROSS_COMPILE=$archprefix KCC=$KCC \ arch/sparc64/kernel/Makefile check_asm fi cp -rv include/asm-sparc{,64} $root/$prefix/include/ sh $base/package/*/linux-header/generate-asm $root/$prefix/include \ sparc sparc64 __arch64__ ;; x86-64) cp -rv include/asm-{i386,x86_64} $root/$prefix/include/ sh $base/package/*/linux-header/generate-asm $root/$prefix/include \ i386 x86_64 __x86_64__ ;; powerpc64) cp -rv include/asm-{ppc,ppc64} $root/$prefix/include/ sh $base/package/*/linux-header/generate-asm $root/$prefix/include \ ppc ppc64 __PPC64__ ;; sh64) cp -rv include/asm-{sh,sh64} $root/$prefix/include/ sh $base/package/*/linux-header/generate-asm $root/$prefix/include \ sh sh64 __LP64__ ;; *) mkdir -p $root/$prefix/include/asm cp -rv include/asm/* $root/$prefix/include/asm/ ;; esac cp -rv include/{asm-generic,linux,sound} $root/$prefix/include/ } autopatch=0 ; createdocs=0 custmain="main_lx_header" # patchfiles="$base/package/$repository/linux$treever/*.patch $patchfiles"