diff options
author | Joerg Roedel <joerg.roedel@amd.com> | 2012-02-15 11:38:27 -0500 |
---|---|---|
committer | Michal Marek <mmarek@suse.cz> | 2012-02-24 17:55:23 -0500 |
commit | d7d357bc279453d402e96527bdcc5b40299f1cf0 (patch) | |
tree | 4f8f7b65b60bc4c7db141a7e5d35a2f863faa44d /scripts | |
parent | a47b6c61f58ead0396b837c58a91d0681b775b40 (diff) |
kbuild: Only build linux-image package for UML
For user-mode Linux the other packages are not required. So
only build the package with the linux-image in it.
Cc: maximilian attems <max@stro.at>
Cc: debian-kernel@lists.debian.org
Cc: linux-kbuild@vger.kernel.org
Signed-off-by: Joerg Roedel <joerg.roedel@amd.com>
Tested-by: Ben Hutchings <ben@decadent.org.uk>
Signed-off-by: Michal Marek <mmarek@suse.cz>
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/package/builddeb | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/scripts/package/builddeb b/scripts/package/builddeb index 39e3f30384e7..0db889f865c4 100644 --- a/scripts/package/builddeb +++ b/scripts/package/builddeb | |||
@@ -130,8 +130,10 @@ if grep -q '^CONFIG_MODULES=y' .config ; then | |||
130 | fi | 130 | fi |
131 | fi | 131 | fi |
132 | 132 | ||
133 | make headers_check | 133 | if [ "$ARCH" != "um" ]; then |
134 | make headers_install INSTALL_HDR_PATH="$libc_headers_dir/usr" | 134 | make headers_check |
135 | make headers_install INSTALL_HDR_PATH="$libc_headers_dir/usr" | ||
136 | fi | ||
135 | 137 | ||
136 | # Install the maintainer scripts | 138 | # Install the maintainer scripts |
137 | # Note: hook scripts under /etc/kernel are also executed by official Debian | 139 | # Note: hook scripts under /etc/kernel are also executed by official Debian |
@@ -263,8 +265,6 @@ Description: Linux kernel headers for $KERNELRELEASE on $arch | |||
263 | This is useful for people who need to build external modules | 265 | This is useful for people who need to build external modules |
264 | EOF | 266 | EOF |
265 | 267 | ||
266 | create_package "$kernel_headers_packagename" "$kernel_headers_dir" | ||
267 | |||
268 | # Do we have firmware? Move it out of the way and build it into a package. | 268 | # Do we have firmware? Move it out of the way and build it into a package. |
269 | if [ -e "$tmpdir/lib/firmware" ]; then | 269 | if [ -e "$tmpdir/lib/firmware" ]; then |
270 | mv "$tmpdir/lib/firmware" "$fwdir/lib/" | 270 | mv "$tmpdir/lib/firmware" "$fwdir/lib/" |
@@ -291,7 +291,11 @@ Description: Linux support headers for userspace development | |||
291 | are used by the installed headers for GNU glibc and other system libraries. | 291 | are used by the installed headers for GNU glibc and other system libraries. |
292 | EOF | 292 | EOF |
293 | 293 | ||
294 | create_package "$libc_headers_packagename" "$libc_headers_dir" | 294 | if [ "$ARCH" != "um" ]; then |
295 | create_package "$kernel_headers_packagename" "$kernel_headers_dir" | ||
296 | create_package "$libc_headers_packagename" "$libc_headers_dir" | ||
297 | fi | ||
298 | |||
295 | create_package "$packagename" "$tmpdir" | 299 | create_package "$packagename" "$tmpdir" |
296 | 300 | ||
297 | exit 0 | 301 | exit 0 |