mkdebian (75ebcee7699739c0f6c63abcb9f5754538107c62) mkdebian (79a85b55e39e65d6f20c753c4ae8bcd6f4cd7007)
1#!/bin/sh
2#
3# Copyright 2003 Wichert Akkerman <wichert@wiggy.net>
4#
5# Simple script to generate a debian/ directory for a Linux kernel.
6
7set -e
8

--- 49 unchanged lines hidden (view full) ---

58 if is_enabled AEABI; then
59 debarch=arm$(if_enabled_echo VFP hf el)
60 else
61 debarch=arm
62 fi
63 ;;
64 openrisc)
65 debarch=or1k ;;
1#!/bin/sh
2#
3# Copyright 2003 Wichert Akkerman <wichert@wiggy.net>
4#
5# Simple script to generate a debian/ directory for a Linux kernel.
6
7set -e
8

--- 49 unchanged lines hidden (view full) ---

58 if is_enabled AEABI; then
59 debarch=arm$(if_enabled_echo VFP hf el)
60 else
61 debarch=arm
62 fi
63 ;;
64 openrisc)
65 debarch=or1k ;;
66 *)
66 sh)
67 if is_enabled CPU_SH3; then
68 debarch=sh3$(if_enabled_echo CPU_BIG_ENDIAN eb)
69 elif is_enabled CPU_SH4; then
70 debarch=sh4$(if_enabled_echo CPU_BIG_ENDIAN eb)
71 fi
72 ;;
73 esac
74 if [ -z "$debarch" ]; then
67 debarch=$(dpkg-architecture -qDEB_HOST_ARCH)
68 echo "" >&2
69 echo "** ** ** WARNING ** ** **" >&2
70 echo "" >&2
71 echo "Your architecture doesn't have its equivalent" >&2
72 echo "Debian userspace architecture defined!" >&2
73 echo "Falling back to the current host architecture ($debarch)." >&2
74 echo "Please add support for $UTS_MACHINE to ${0} ..." >&2
75 echo "" >&2
75 debarch=$(dpkg-architecture -qDEB_HOST_ARCH)
76 echo "" >&2
77 echo "** ** ** WARNING ** ** **" >&2
78 echo "" >&2
79 echo "Your architecture doesn't have its equivalent" >&2
80 echo "Debian userspace architecture defined!" >&2
81 echo "Falling back to the current host architecture ($debarch)." >&2
82 echo "Please add support for $UTS_MACHINE to ${0} ..." >&2
83 echo "" >&2
76 ;;
77 esac
84 fi
78}
79
80# Some variables and settings used throughout the script
81version=$KERNELRELEASE
82if [ -n "$KDEB_PKGVERSION" ]; then
83 packageversion=$KDEB_PKGVERSION
84else
85 revision=$(cat .version 2>/dev/null||echo 1)

--- 128 unchanged lines hidden ---
85}
86
87# Some variables and settings used throughout the script
88version=$KERNELRELEASE
89if [ -n "$KDEB_PKGVERSION" ]; then
90 packageversion=$KDEB_PKGVERSION
91else
92 revision=$(cat .version 2>/dev/null||echo 1)

--- 128 unchanged lines hidden ---