diff options
Diffstat (limited to 'configure')
| -rwxr-xr-x | configure | 36 | 
1 files changed, 35 insertions, 1 deletions
| @@ -20,6 +20,28 @@  #  # --------------------------------------------------------------------------- +## hack created to avoid dpkg-source error +## I did not put this on rules because if everything works fine +## upstream author will put this on package tarball + +create_links ( ) { +ln -sf arch/linux/common/alsa.h arch/linux/$1/ +ln -sf arch/linux/common/filesystem.h arch/linux/$1/ +ln -sf arch/linux/common/inputdevices.h arch/linux/$1/ +ln -sf arch/linux/common/loadavg.h arch/linux/$1/ +ln -sf arch/linux/common/memory.h arch/linux/$1/ +ln -sf arch/linux/common/modules.h arch/linux/$1/ +ln -sf arch/linux/common/net.h arch/linux/$1/ +ln -sf arch/linux/common/nfs.h arch/linux/$1/ +ln -sf arch/linux/common/os.h arch/linux/$1/ +ln -sf arch/linux/common/pci.h arch/linux/$1/ +ln -sf arch/linux/common/samba.h arch/linux/$1/ +ln -sf arch/linux/common/sensors.h arch/linux/$1/ +ln -sf arch/linux/common/storage.h arch/linux/$1/ +ln -sf arch/linux/common/uptime.h arch/linux/$1/ +ln -sf arch/linux/common/usb.h arch/linux/$1/ +} +  PACKAGE=`basename ${PWD} | cut -d"-" -f1`;  VERSION=`basename ${PWD} | cut -d"-" -f2`; @@ -64,9 +86,21 @@ case $PROC in  	sparc*)  		ln -sf linux/sparc arch/this  		ARCH="ARCH_SPARC" ;; -	armv4l) +	armv*)  		ln -sf linux/armv4l arch/this  		ARCH="ARCH_ARMV4L" ;; +        ia64) +		create_links ia64; +                ln -sf linux/ia64  arch/this +                ARCH="ARCH_IA64" ;; +        alpha) +		create_links alpha; +                ln -sf linux/alpha  arch/this +                ARCH="ARCH_ALPHA" ;; +        s390) +		create_links s390; +                ln -sf linux/s390  arch/this +                ARCH="ARCH_S390" ;;  	*)  		# uname -m on m68k doesn't return anything useful :/  		grep "680?0" /proc/cpuinfo > /dev/null | 
