Lines Matching +full:build +full:- +full:rules
7 set -e
10 grep -q "^$1=y" include/config/auto.conf
15 echo -n "$2"
16 elif [ $# -ge 3 ]; then
17 echo -n "$3"
22 if [ -n "$KBUILD_DEBARCH" ] ; then
74 if [ -z "$debarch" ]; then
75 debarch=$(dpkg-architecture -qDEB_HOST_ARCH)
89 if [ -n "$KDEB_PKGVERSION" ]; then
91 revision=${packageversion##*-}
94 packageversion=$version-$revision
99 packagename=user-mode-linux
101 packagename=linux-image
107 email=${DEBEMAIL-$EMAIL}
110 if echo $email | grep -q '<.*>'; then
114 user=${KBUILD_BUILD_USER-$(id -nu)}
115 name=${DEBFULLNAME-$user}
116 if [ -z "$email" ]; then
117 buildhost=${KBUILD_BUILD_HOST-$(hostname -f 2>/dev/null || hostname)}
124 if [ -n "$KDEB_CHANGELOG_DIST" ]; then
126 # In some cases lsb_release returns the codename as n/a, which breaks dpkg-parsechangelog
127 elif distribution=$(lsb_release -cs 2>/dev/null) && [ -n "$distribution" ] && [ "$distribution" != …
132 echo >&2 "Install lsb-release or set \$KDEB_CHANGELOG_DIST explicitly"
135 mkdir -p debian/source/
139 extra_build_depends=", $(if_enabled_echo CONFIG_UNWINDER_ORC libelf-dev:native)"
140 extra_build_depends="$extra_build_depends, $(if_enabled_echo CONFIG_SYSTEM_TRUSTED_KEYRING libssl-d…
148 -- $maintainer $(date -R)
158 Copyright: 1991 - 2018 Linus Torvalds and others.
168 License version 2 can be found in \`/usr/share/common-licenses/GPL-2'.
177 Rules-Requires-Root: no
178 Build-Depends: bc, rsync, kmod, cpio, bison, flex | flex:native $extra_build_depends
181 Package: $packagename-$version
187 Package: linux-libc-dev
189 Provides: linux-kernel-headers
194 Multi-Arch: same
200 Package: linux-headers-$version
205 This is useful for people who need to build external modules
212 Package: linux-image-$version-dbg
221 cat <<EOF > debian/rules
222 #!$(command -v $MAKE) -f
226 build-indep:
227 build-arch:
229 KBUILD_BUILD_VERSION=${revision} -f \$(srctree)/Makefile
231 build: build-arch
233 binary-indep:
234 binary-arch: build-arch
236 KBUILD_BUILD_VERSION=${revision} -f \$(srctree)/Makefile intdeb-pkg
239 rm -rf debian/*tmp debian/files
242 binary: binary-arch
244 chmod +x debian/rules