2011-02-09 12:35:53 +01:00
|
|
|
# Build template for 'kernel-uml'.
|
2012-02-21 17:29:58 +01:00
|
|
|
#
|
2011-02-09 12:35:53 +01:00
|
|
|
pkgname=kernel-uml
|
2012-02-21 17:29:58 +01:00
|
|
|
version=3.2.6
|
|
|
|
wrksrc=linux-${version}
|
|
|
|
homepage="http://www.kernel.org"
|
|
|
|
distfiles="http://www.kernel.org/pub/linux/kernel/v3.x/linux-${version}.tar.xz"
|
|
|
|
checksum=9db97d45638017e6dfaed768cfa9f47533c9c9fb3538bce0e594d9feff5489b4
|
2012-05-23 18:26:56 +02:00
|
|
|
makedepends="perl>=0 libpcap-devel"
|
|
|
|
fulldepends="uml-utilities"
|
2012-06-03 09:08:53 +02:00
|
|
|
revision=1
|
2011-02-09 12:35:53 +01:00
|
|
|
short_desc="Kernel ${version} for User Mode Linux"
|
|
|
|
long_desc="
|
|
|
|
User-mode Linux (UML) is a port of the Linux kernel to its own system call
|
|
|
|
interface. It provides a kind of virtual machine, which runs Linux as a user
|
|
|
|
process under another Linux kernel. This is useful for kernel development,
|
|
|
|
sandboxes, jails, experimentation, and many other things.
|
|
|
|
|
|
|
|
This package contains the kernel itself, as an executable program, and the
|
|
|
|
associated kernel modules."
|
|
|
|
|
|
|
|
|
2012-02-21 17:29:58 +01:00
|
|
|
do_build() {
|
2011-02-09 12:35:53 +01:00
|
|
|
make LDFLAGS= ARCH=um defconfig && make LDFLAGS= ARCH=um ${makejobs}
|
|
|
|
}
|
|
|
|
|
2012-02-21 17:29:58 +01:00
|
|
|
do_install() {
|
|
|
|
vinstall linux 755 usr/bin
|
2011-02-09 12:35:53 +01:00
|
|
|
make ARCH=um INSTALL_MOD_PATH=${DESTDIR}/usr/lib/uml modules_install
|
|
|
|
rm -f ${DESTDIR}/usr/lib/uml/lib/modules/${version}/{build,source}
|
|
|
|
mv ${DESTDIR}/usr/lib/uml/lib/modules ${DESTDIR}/usr/lib/uml
|
|
|
|
rmdir ${DESTDIR}/usr/lib/uml/lib
|
|
|
|
}
|