summaryrefslogtreecommitdiff
path: root/linux-uml/linux-uml_2.4.23.oe
diff options
context:
space:
mode:
Diffstat (limited to 'linux-uml/linux-uml_2.4.23.oe')
-rw-r--r--linux-uml/linux-uml_2.4.23.oe30
1 files changed, 30 insertions, 0 deletions
diff --git a/linux-uml/linux-uml_2.4.23.oe b/linux-uml/linux-uml_2.4.23.oe
index e69de29bb2..3ce1592bfb 100644
--- a/linux-uml/linux-uml_2.4.23.oe
+++ b/linux-uml/linux-uml_2.4.23.oe
@@ -0,0 +1,30 @@
+DESCRIPTION = "User Mode Linux Kernel"
+LICENSE = "GPL"
+
+SRC_URI = ftp://ftp.kernel.org/pub/linux/kernel/v2.4/linux-${PV}.tar.bz2 \
+ http://mirror.usermodelinux.org/uml/uml-patch-2.4.23-1.bz2;patch=1 \
+ file://${FILESDIR}/fix-includes.patch;patch=1
+S = "${WORKDIR}/linux-${PV}"
+
+inherit kernel
+TARGET_ARCH_i686=i386
+ARCH = "um"
+SUBARCH = "${TARGET_ARCH}"
+TARGET_OS_linux=Linux
+KERNEL_IMAGETYPE=linux
+
+do_configure_prepend () {
+ install -m 0644 ${FILESDIR}/defconfig .config
+ oe_runmake oldconfig
+}
+
+do_compile() {
+ unset CFLAGS CPPFLAGS CXXFLAGS LDFLAGS
+ oe_runmake dep
+ oe_runmake STAGING_LIBDIR=${STAGING_LIBDIR} ${KERNEL_IMAGETYPE}
+ oe_runmake modules
+}
+
+do_install_append () {
+ install -m 0755 linux ${D}/boot/linux-${PV}
+}