aboutsummaryrefslogtreecommitdiffstats
path: root/linux-uml/linux-uml_2.4.26.oe
blob: 80653a246d47272046584d9aebab1c6a7a64693c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
DESCRIPTION = "User Mode Linux Kernel"
LICENSE = "GPL"
UMLR = "1"
PR = "2"
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}-${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 \
           file://defconfig \
           file://aio_abi.h"
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
	install -d arch/um/include/linux/
	#install -m 0644 ${WORKDIR}/aio_abi.h arch/um/include/linux/
}

do_compile() {
	unset CFLAGS CPPFLAGS CXXFLAGS LDFLAGS
	oe_runmake dep
	oe_runmake HAVE_AIO_ABI= HAVE_AIO_LIBC= 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}
}