mirror of
https://github.com/FEX-Emu/linux.git
synced 2024-12-12 10:55:08 +00:00
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>
This commit is contained in:
parent
a47b6c61f5
commit
d7d357bc27
@ -130,8 +130,10 @@ if grep -q '^CONFIG_MODULES=y' .config ; then
|
|||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
make headers_check
|
if [ "$ARCH" != "um" ]; then
|
||||||
make headers_install INSTALL_HDR_PATH="$libc_headers_dir/usr"
|
make headers_check
|
||||||
|
make headers_install INSTALL_HDR_PATH="$libc_headers_dir/usr"
|
||||||
|
fi
|
||||||
|
|
||||||
# Install the maintainer scripts
|
# Install the maintainer scripts
|
||||||
# Note: hook scripts under /etc/kernel are also executed by official Debian
|
# Note: hook scripts under /etc/kernel are also executed by official Debian
|
||||||
@ -263,8 +265,6 @@ Description: Linux kernel headers for $KERNELRELEASE on $arch
|
|||||||
This is useful for people who need to build external modules
|
This is useful for people who need to build external modules
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
create_package "$kernel_headers_packagename" "$kernel_headers_dir"
|
|
||||||
|
|
||||||
# Do we have firmware? Move it out of the way and build it into a package.
|
# Do we have firmware? Move it out of the way and build it into a package.
|
||||||
if [ -e "$tmpdir/lib/firmware" ]; then
|
if [ -e "$tmpdir/lib/firmware" ]; then
|
||||||
mv "$tmpdir/lib/firmware" "$fwdir/lib/"
|
mv "$tmpdir/lib/firmware" "$fwdir/lib/"
|
||||||
@ -291,7 +291,11 @@ Description: Linux support headers for userspace development
|
|||||||
are used by the installed headers for GNU glibc and other system libraries.
|
are used by the installed headers for GNU glibc and other system libraries.
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
create_package "$libc_headers_packagename" "$libc_headers_dir"
|
if [ "$ARCH" != "um" ]; then
|
||||||
|
create_package "$kernel_headers_packagename" "$kernel_headers_dir"
|
||||||
|
create_package "$libc_headers_packagename" "$libc_headers_dir"
|
||||||
|
fi
|
||||||
|
|
||||||
create_package "$packagename" "$tmpdir"
|
create_package "$packagename" "$tmpdir"
|
||||||
|
|
||||||
exit 0
|
exit 0
|
||||||
|
Loading…
Reference in New Issue
Block a user