linux-uml 2.6.7 finally builds
authorMichael Lauer <mickey@vanille-media.de>
Wed, 21 Jul 2004 13:49:48 +0000 (13:49 +0000)
committerMichael Lauer <mickey@vanille-media.de>
Wed, 21 Jul 2004 13:49:48 +0000 (13:49 +0000)
BKrev: 40fe747cFx8N9E67PIECZid-C0VqpA

linux-uml/files/fix-arg-max.patch [moved from linux-uml/linux-uml-2.4.26/fix-arg-max.patch with 100% similarity]
linux-uml/linux-uml_2.4.26.oe
linux-uml/linux-uml_2.6.7.oe

index 644faea..2081ae9 100644 (file)
@@ -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}"
index e69de29..05f8314 100644 (file)
@@ -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}
+}