summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Lauer <mickey@vanille-media.de>2004-05-16 12:08:27 +0000
committerMichael Lauer <mickey@vanille-media.de>2004-05-16 12:08:27 +0000
commitf470fd8bef7baa04181e895c3f78b8270bcedd14 (patch)
tree550318e4edbea626fb29ad3bc19e3418f877de67
parent09ab0b42fb777fb97aa8a7584148339da86ee81a (diff)
set COMPATIBLE_HOST for linux-uml
BKrev: 40a759bb0KbXsKuIhAabr2krpbs9xA
-rw-r--r--linux-uml/linux-uml_2.4.25.oe43
1 files changed, 43 insertions, 0 deletions
diff --git a/linux-uml/linux-uml_2.4.25.oe b/linux-uml/linux-uml_2.4.25.oe
index e69de29bb2..2843e23e90 100644
--- a/linux-uml/linux-uml_2.4.25.oe
+++ b/linux-uml/linux-uml_2.4.25.oe
@@ -0,0 +1,43 @@
+DESCRIPTION = "User Mode Linux Kernel"
+LICENSE = "GPL"
+PR = "1"
+DEPENDS = "virtual/libc"
+
+SRC_URI = "ftp://ftp.kernel.org/pub/linux/kernel/v2.4/linux-${PV}.tar.bz2 \
+ http://mirror.usermodelinux.org/uml/uml-patch-${PV}-${PR}.bz2;patch=1 \
+ file://${FILESDIR}/fix-includes.patch;patch=1 \
+ file://${FILESDIR}/fix-arg-max.patch;patch=1"
+S = "${WORKDIR}/linux-${PV}"
+
+inherit kernel
+
+COMPATIBLE_HOST = 'i.86.*-linux'
+
+export OS = "Linux"
+ARCH = "um"
+SUBARCH = "${TARGET_ARCH}"
+KERNEL_IMAGETYPE = "linux"
+
+do_configure() {
+ install -m 0644 ${FILESDIR}/defconfig .config
+ oe_runmake oldconfig
+ install -d arch/um/include/linux/
+ install -m 0644 ${FILESDIR}/aio_abi.h arch/um/include/linux/
+}
+
+do_compile() {
+ unset CFLAGS CPPFLAGS CXXFLAGS LDFLAGS
+ oe_runmake dep
+ oe_runmake STAGING_LIBDIR=${STAGING_LIBDIR} ${KERNEL_IMAGETYPE}
+ oe_runmake modules
+}
+
+do_install() {
+ unset CFLAGS CPPFLAGS CXXFLAGS LDFLAGS
+ oe_runmake DEPMOD=echo INSTALL_MOD_PATH="${D}" modules_install
+ install -d ${D}/boot
+ install -m 0755 linux ${D}/boot/linux-${PV}
+ install -m 0644 System.map ${D}/boot/System.map-${PV}
+ install -m 0644 .config ${D}/boot/config-${PV}
+}
+