2013-03-31 08:10:40 +00:00
|
|
|
# Build template for 'kernel-uml'
|
2011-02-09 11:35:53 +00:00
|
|
|
pkgname=kernel-uml
|
2013-03-31 08:10:40 +00:00
|
|
|
version=3.8.5
|
2013-04-12 15:12:12 +00:00
|
|
|
revision=1
|
2012-02-21 16:29:58 +00:00
|
|
|
wrksrc=linux-${version}
|
|
|
|
homepage="http://www.kernel.org"
|
2013-03-31 08:10:40 +00:00
|
|
|
license="GPL-2"
|
2013-04-12 15:12:12 +00:00
|
|
|
short_desc="Kernel ${version} for User Mode Linux"
|
2012-02-21 16:29:58 +00:00
|
|
|
distfiles="http://www.kernel.org/pub/linux/kernel/v3.x/linux-${version}.tar.xz"
|
2013-03-31 08:10:40 +00:00
|
|
|
checksum=1f1b6e09cb6ba656b28a41eb9e16e11576879f14574c0cb861b24734f3c5899f
|
2011-02-09 11:35:53 +00:00
|
|
|
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."
|
|
|
|
|
2013-04-12 15:12:12 +00:00
|
|
|
makedepends="perl libpcap-devel uml-utilities"
|
2011-02-09 11:35:53 +00:00
|
|
|
|
2012-02-21 16:29:58 +00:00
|
|
|
do_build() {
|
2011-02-09 11:35:53 +00:00
|
|
|
make LDFLAGS= ARCH=um defconfig && make LDFLAGS= ARCH=um ${makejobs}
|
|
|
|
}
|
|
|
|
|
2012-02-21 16:29:58 +00:00
|
|
|
do_install() {
|
|
|
|
vinstall linux 755 usr/bin
|
2011-02-09 11:35:53 +00: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
|
|
|
|
}
|
2013-04-12 15:12:12 +00:00
|
|
|
|
|
|
|
kernel-uml_package() {
|
|
|
|
depends="uml-utilities"
|
|
|
|
pkg_install() {
|
|
|
|
vmove usr
|
|
|
|
}
|
|
|
|
}
|