summaryrefslogtreecommitdiffstats
path: root/recipes-virtualization
diff options
context:
space:
mode:
authorAdrian Dudau <adrian.dudau@enea.com>2013-12-12 13:41:56 +0100
committerAdrian Dudau <adrian.dudau@enea.com>2013-12-12 13:41:56 +0100
commit177ef53047019757b70b5ca87171b2c88e26ba07 (patch)
tree70e3284e64755ae93c130e00f810ba5c501801b9 /recipes-virtualization
downloadmeta-fsl-ppc-enea_linux_3.tar.gz
initial commit of Enea Linux 3.1enea_linux_3
Migrated from the internal git server on the dora-enea branch Signed-off-by: Adrian Dudau <adrian.dudau@enea.com>
Diffstat (limited to 'recipes-virtualization')
-rw-r--r--recipes-virtualization/hv-cfg/hv-cfg_git.bb46
-rw-r--r--recipes-virtualization/hypervisor/files/0001-fix-sizeof-pointer-memaccess-error.patch39
-rw-r--r--recipes-virtualization/hypervisor/files/81-fsl-embedded-hv.rules2
-rw-r--r--recipes-virtualization/hypervisor/hypervisor_git.bb91
-rw-r--r--recipes-virtualization/mux-server/files/mux-server-1.02.tar.gzbin0 -> 10021 bytes
-rw-r--r--recipes-virtualization/mux-server/mux-server_1.02.bb16
6 files changed, 194 insertions, 0 deletions
diff --git a/recipes-virtualization/hv-cfg/hv-cfg_git.bb b/recipes-virtualization/hv-cfg/hv-cfg_git.bb
new file mode 100644
index 0000000..2c6bb85
--- /dev/null
+++ b/recipes-virtualization/hv-cfg/hv-cfg_git.bb
@@ -0,0 +1,46 @@
1DESCRIPTION = "Hypervisor Config"
2SECTION = "hv-cfg"
3LICENSE = "BSD"
4PR = "r6"
5
6LIC_FILES_CHKSUM = " \
7 file://p2041rdb/LICENSE;md5=96dd72f26e9bb861de5c76c60e35e1bc \
8 file://p3041ds/LICENSE;md5=96dd72f26e9bb861de5c76c60e35e1bc \
9 file://p4080ds/LICENSE;md5=96dd72f26e9bb861de5c76c60e35e1bc \
10 file://p5020ds/LICENSE;md5=96dd72f26e9bb861de5c76c60e35e1bc \
11"
12
13DEPENDS += "dtc-native"
14
15# this package is specific to the machine itself
16INHIBIT_DEFAULT_DEPS = "1"
17PACKAGE_ARCH = "${MACHINE_ARCH}"
18COMPATIBLE_HOST_fslmachine = ".*"
19COMPATIBLE_HOST ?= "(none)"
20
21inherit deploy
22
23SRCREV = "d037ab9d5b9ecd58e10a7dac2b601d781ed9b5bf"
24SRC_URI = "git://git.freescale.com/ppc/sdk/hv-cfg.git"
25
26S = "${WORKDIR}/git"
27
28do_install () {
29 make install
30
31 M=`echo ${MACHINE} | sed s/-64b//g`
32 install -d ${D}/boot/hv-cfg
33 cp -r ${S}/${M}/${M}/* ${D}/boot/hv-cfg
34}
35
36do_deploy () {
37 M=`echo ${MACHINE} | sed s/-64b//g`
38 install -d ${DEPLOYDIR}/hv-cfg
39 cp -r ${S}/${M}/${M}/* ${DEPLOYDIR}/hv-cfg
40}
41addtask deploy after do_install
42
43PACKAGES += "${PN}-image"
44FILES_${PN}-image += "/boot"
45
46ALLOW_EMPTY_${PN} = "1"
diff --git a/recipes-virtualization/hypervisor/files/0001-fix-sizeof-pointer-memaccess-error.patch b/recipes-virtualization/hypervisor/files/0001-fix-sizeof-pointer-memaccess-error.patch
new file mode 100644
index 0000000..a562273
--- /dev/null
+++ b/recipes-virtualization/hypervisor/files/0001-fix-sizeof-pointer-memaccess-error.patch
@@ -0,0 +1,39 @@
1From 59e68351114a65a1f315ded1ee92f4370b8547e2 Mon Sep 17 00:00:00 2001
2From: Ting Liu <b28495@freescale.com>
3Date: Mon, 8 Jul 2013 17:03:43 +0800
4Subject: [PATCH] fix sizeof-pointer-memaccess error
5
6build: src/livetree.c
7.../hypervisor/git-r3/git/src/devtree.c: In function 'read_intmap':
8.../hypervisor/git-r3/git/src/devtree.c:1513:25: error: argument to 'sizeof' in 'memset' call is the same expression as the destination; did you mean to dereference it? [-Werror=sizeof-pointer-memaccess]
9 memset(ent, 0, sizeof(ent));
10 ^
11cc1: all warnings being treated as errors
12build: src/ipi_doorbell.c
13make[1]: *** [bin/devtree.o] Error 1
14make[1]: *** Waiting for unfinished jobs....
15make[1]: Leaving directory `.../hypervisor/git-r3/git/output'
16make: *** [all] Error 2
17ERROR: oe_runmake failed
18
19Signed-off-by: Ting Liu <b28495@freescale.com>
20---
21 src/devtree.c | 2 +-
22 1 files changed, 1 insertions(+), 1 deletions(-)
23
24diff --git a/src/devtree.c b/src/devtree.c
25index f3710e4..3295e20 100644
26--- a/src/devtree.c
27+++ b/src/devtree.c
28@@ -1510,7 +1510,7 @@ static void read_intmap(dt_node_t *node)
29 }
30
31 if (imap + ent->parent_naddr + ent->parent_nint > imap_end) {
32- memset(ent, 0, sizeof(ent));
33+ memset(ent, 0, sizeof(intmap_entry_t));
34 break;
35 }
36
37--
381.7.5.4
39
diff --git a/recipes-virtualization/hypervisor/files/81-fsl-embedded-hv.rules b/recipes-virtualization/hypervisor/files/81-fsl-embedded-hv.rules
new file mode 100644
index 0000000..5edfa11
--- /dev/null
+++ b/recipes-virtualization/hypervisor/files/81-fsl-embedded-hv.rules
@@ -0,0 +1,2 @@
1# Add rule to handle setting up device node for FSL HV mgmt driver
2SUBSYSTEM=="misc", KERNEL=="fsl-hv", NAME="fsl-hv"
diff --git a/recipes-virtualization/hypervisor/hypervisor_git.bb b/recipes-virtualization/hypervisor/hypervisor_git.bb
new file mode 100644
index 0000000..ff89bfa
--- /dev/null
+++ b/recipes-virtualization/hypervisor/hypervisor_git.bb
@@ -0,0 +1,91 @@
1DESCRIPTION = "Freescale embedded hypervisor"
2SECTION = "embedded-hv"
3LICENSE = "BSD"
4LIC_FILES_CHKSUM = "file://README;endline=22;md5=0655bbc3b7d7166c30c87208b4e23cf0"
5
6PR = "r3"
7
8DEPENDS = "u-boot-mkimage-native"
9
10inherit deploy
11
12S = "${WORKDIR}/git"
13
14# TODO: fix dtc to use the already built package
15SRC_URI = " \
16 git://git.freescale.com/ppc/sdk/hypervisor/hypervisor.git;name=hypervisor \
17 git://git.freescale.com/ppc/sdk/hypervisor/kconfig.git;name=kconfig;destsuffix=git/kconfig \
18 git://git.freescale.com/ppc/sdk/hypervisor/libos.git;name=libos;destsuffix=git/libos \
19 git://www.jdl.com/software/dtc.git;name=dtc;destsuffix=dtc \
20 git://git.freescale.com/ppc/sdk/hypertrk.git;name=hypertrk;destsuffix=git/hypertrk \
21 file://0001-fix-sizeof-pointer-memaccess-error.patch \
22 file://81-fsl-embedded-hv.rules \
23 "
24
25SRCREV_FORMAT="hypervisor"
26SRCREV = "e6092cdf2a225c66c1ea46b1151eb828da29d139"
27SRCREV_kconfig = "a56025d4da992b856796b0eccac2e410d751dbac"
28SRCREV_libos = "5268371581f3ef3959be2a53235edfa6a8c6aa7c"
29SRCREV_dtc = "033089f29099bdfd5c2d6986cdb9fd07b16cfde0"
30SRCREV_hypertrk = "975c98b562186afbd3bbf103ae54b96cf9b3e533"
31
32EXTRA_OEMAKE = 'CROSS_COMPILE=${TARGET_PREFIX} CC="${TARGET_PREFIX}gcc ${TOOLCHAIN_OPTIONS}"'
33
34DEFCONFIG = "defconfig"
35DEFCONFIG_powerpc64 = "64bit_defconfig"
36
37COMPATIBLE_HOST_fslmachine = ".*"
38COMPATIBLE_HOST ?= "(none)"
39
40inherit cml1
41do_configure () {
42 oe_runmake ${DEFCONFIG}
43}
44
45PKG_HV_HYPERTRK_SUPPORT = "n"
46do_compile () {
47 if [ "${PKG_HV_HYPERTRK_SUPPORT}" = "y" ]
48 then
49 oe_runmake silentoldconfig
50 export HV_DIR=$PWD
51 cd hypertrk
52 oe_runmake deploy
53 cd ..
54 fi
55
56 oe_runmake
57 oe_runmake partman
58}
59
60do_install () {
61 install -d ${D}/${bindir}
62 install ${S}/output/bin/linux/partman ${D}/${bindir}/partman
63
64 install -d ${D}${sysconfdir}/udev/rules.d
65 install -m 0644 ${WORKDIR}/81-fsl-embedded-hv.rules ${D}${sysconfdir}/udev/rules.d
66
67 install -d ${D}/boot/hv
68 install ${S}/output/.config ${D}/boot/hv/hypervisor.config
69 install -m 644 ${S}/output/bin/hv ${S}/output/bin/hv.map \
70 ${S}/output/bin/hv.uImage ${S}/output/bin/hv.bin \
71 ${D}/boot/hv/
72}
73
74do_deploy () {
75 install -d ${DEPLOYDIR}/hv/
76 install ${S}/output/.config ${DEPLOYDIR}/hv/hypervisor.config
77 install -m 644 ${S}/output/bin/hv ${S}/output/bin/hv.map \
78 ${S}/output/bin/hv.uImage ${S}/output/bin/hv.bin \
79 ${DEPLOYDIR}/hv/
80}
81addtask deploy before do_build after do_install
82
83do_deploy_append() {
84 rm -f ${S}/../hv
85}
86
87INHIBIT_PACKAGE_DEBUG_SPLIT = "1"
88ALLOW_EMPTY_${PN} = "1"
89PACKAGES_prepend = "${PN}-image ${PN}-partman "
90FILES_${PN}-image = "/boot/"
91FILES_${PN}-partman = "${bindir}/partman"
diff --git a/recipes-virtualization/mux-server/files/mux-server-1.02.tar.gz b/recipes-virtualization/mux-server/files/mux-server-1.02.tar.gz
new file mode 100644
index 0000000..d8f2014
--- /dev/null
+++ b/recipes-virtualization/mux-server/files/mux-server-1.02.tar.gz
Binary files differ
diff --git a/recipes-virtualization/mux-server/mux-server_1.02.bb b/recipes-virtualization/mux-server/mux-server_1.02.bb
new file mode 100644
index 0000000..ab9cce1
--- /dev/null
+++ b/recipes-virtualization/mux-server/mux-server_1.02.bb
@@ -0,0 +1,16 @@
1DESCRIPTION = "A Linux-based utility supporting console multiplexing and demultiplexing"
2SECTION = "mux-server"
3LICENSE = "LGPL-2.1"
4# TODO: add a dedicated COPYING file
5LIC_FILES_CHKSUM = "file://mux_server.c;endline=9;md5=e59eeb0812bb88b7af2d932f2dc22aed"
6
7SRC_URI = "file://mux-server-${PV}.tar.gz;name=mux_server"
8
9EXTRA_OEMAKE='HOSTCC="${CC}"'
10
11do_install () {
12 install -d ${D}${bindir}
13 install -m 755 mux_server ${D}${bindir}
14}
15
16BBCLASSEXTEND = "native nativesdk"