blob: 05f83147efb28341da73e6399c495dda638159df (
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
54
55
56
57
58
59
60
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}
}
|