summaryrefslogtreecommitdiff
path: root/linux-uml
diff options
context:
space:
mode:
Diffstat (limited to 'linux-uml')
-rw-r--r--linux-uml/files/fix-arg-max.patch (renamed from linux-uml/linux-uml-2.4.26/fix-arg-max.patch)0
-rw-r--r--linux-uml/linux-uml_2.4.26.oe16
-rw-r--r--linux-uml/linux-uml_2.6.7.oe61
3 files changed, 64 insertions, 13 deletions
diff --git a/linux-uml/linux-uml-2.4.26/fix-arg-max.patch b/linux-uml/files/fix-arg-max.patch
index e69de29bb2..e69de29bb2 100644
--- a/linux-uml/linux-uml-2.4.26/fix-arg-max.patch
+++ b/linux-uml/files/fix-arg-max.patch
diff --git a/linux-uml/linux-uml_2.4.26.oe b/linux-uml/linux-uml_2.4.26.oe
index 644faea4c2..2081ae9546 100644
--- a/linux-uml/linux-uml_2.4.26.oe
+++ b/linux-uml/linux-uml_2.4.26.oe
@@ -1,20 +1,10 @@
DESCRIPTION = "User Mode Linux Kernel"
LICENSE = "GPL"
-UMLR = "1"
-PR = "2"
+UMLR = "2"
+PR = "0"
SRC_URI = "ftp://ftp.kernel.org/pub/linux/kernel/v2.4/linux-${PV}.tar.bz2 \
- http://mirror.usermodelinux.org/uml/uml-patch-${PV}-${UMLR}.bz2;patch=1 \
- file://01-CONFIG_X86_CMPXCHG.patch-2;patch=1 \
- file://02-config_cleanup.patch;patch=1 \
- file://07-mconsole_dir_cleanup.patch;patch=1 \
- file://10-flock.patch;patch=1 \
- file://11-usr1_process_tkill.patch;patch=1 \
- file://12-hostfs.patch;patch=1 \
- file://13-hostfs_access.patch;patch=1 \
- file://fix-includes.patch;patch=1 \
- file://fix-arg-max.patch;patch=1 \
- file://disable-aio-check.patch;patch=1 \
+ ${SOURCEFORGE_MIRROR}/user-mode-linux/uml-patch-${PV}-${UMLR}.bz2;patch=1 \
file://defconfig \
file://aio_abi.h"
S = "${WORKDIR}/linux-${PV}"
diff --git a/linux-uml/linux-uml_2.6.7.oe b/linux-uml/linux-uml_2.6.7.oe
index e69de29bb2..05f83147ef 100644
--- a/linux-uml/linux-uml_2.6.7.oe
+++ b/linux-uml/linux-uml_2.6.7.oe
@@ -0,0 +1,61 @@
+DESCRIPTION = "User Mode Linux Kernel"
+LICENSE = "GPL"
+UMLR = "1"
+PR = "1"
+
+SRC_URI = "ftp://ftp.kernel.org/pub/linux/kernel/v2.6/linux-${PV}.tar.bz2 \
+ file://Main-uml-patch-no-skas.patch;patch=1 \
+ file://Ghash.patch;patch=1 \
+ file://disable-UnitAtATime.patch;patch=1 \
+ file://HostFs-2.6-fd_leak.patch;patch=1 \
+ file://LegacyTerminalSupport.patch;patch=1 \
+ file://MakeHelp.patch;patch=1 \
+ file://H-02-Fixdep-improve.patch;patch=1 \
+ file://fix-warnings.patch;patch=1 \
+ file://NR_tkill_undefined.patch;patch=1 \
+ file://Move_away_from_user.patch;patch=1 \
+ file://Add_os_make_pty_raw.patch;patch=1 \
+ file://Hostaudio_clean.patch;patch=1 \
+ file://um-sysemu.patch;patch=1 \
+ file://sysemu_cmdParam.patch;patch=1 \
+ file://proc_sysemu.patch;patch=1 \
+ file://EINTR_safety.patch;patch=1 \
+ file://Export_strncpy.patch;patch=1 \
+ file://fix-arg-max.patch;patch=1 \
+ file://defconfig"
+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 ${WORKDIR}/defconfig .config
+ oe_runmake oldconfig
+}
+
+do_compile() {
+ unset CFLAGS CPPFLAGS CXXFLAGS LDFLAGS
+ install -d arch/um/include/linux/
+ install -m 0644 include/linux/inet.h arch/um/include/linux/
+ oe_runmake ${KERNEL_IMAGETYPE}
+}
+
+do_stage_prepend() {
+ install -d arch/um/boot/
+ ln -sf ${S}/linux arch/um/boot/linux
+}
+
+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}
+}