aboutsummaryrefslogtreecommitdiffstats
path: root/meta-agl-jailhouse/recipes-extended/jailhouse/virtio-ivshmem-block.bb
blob: cb000e3d062dba99a0944cf1afcbfcbfce9a3c82 (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-block built out of the kernel tree"
DESCRIPTION = "virtio-ivshmem-block 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-block"

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-block

}

do_install(){

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

}