aboutsummaryrefslogtreecommitdiffstats
path: root/meta-agl-jailhouse/recipes-extended/jailhouse/virtio-ivshmem-console.bb
blob: 8c64a241949dcaca8e3e2bb375d6f8f3421496c4 (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
SUMMARY = "virtio-ivshmem-console built out of the kernel tree"
DESCRIPTION = "virtio-ivshmem-console built out of the kernel tree."
HOMEPAGE = "https://kernel.org"

LICENSE = "GPL-2.0-only"

PR = "r1"

DEPENDS = " \
    virtual/${MLPREFIX}libc \
    ${MLPREFIX}elfutils \
    ${MLPREFIX}binutils \
    bison-native flex-native xz \
"

do_configure[depends] += "virtual/kernel:do_shared_workdir"

PROVIDES = "virtual/virtio-ivshmem-console"

inherit linux-kernel-base kernel-arch

#kernel 3.1+ supports WERROR to disable warnings as errors
export WERROR = "0"

do_populate_lic[depends] += "virtual/kernel:do_shared_workdir"

inherit kernelsrc


#PACKAGE_ARCH = "${MACHINE_ARCH}"

S = "${WORKDIR}"

RDEPENDS:${PN}-dev = ""

EXTRA_OEMAKE = " CC="${CC} ${CFLAGS} ${LDFLAGS}" CPP="${CPP}""

do_configure() {
    echo "configure"
}

do_compile() {

	oe_runmake CC="${CC} -I${STAGING_DIR_TARGET}/usr/include/ " LD="${LD}" AR="${AR}" \
		-C ${STAGING_KERNEL_DIR}/tools/virtio/ O=${S} virtio-ivshmem-console

}

do_install(){

    install -d ${D}${bindir}/
    install -m 0755  ${STAGING_KERNEL_DIR}/tools/virtio/virtio-ivshmem-console ${D}${bindir}

}