blob: 25942ee09cfe0afbaa60191a0ea117e094ceb8bb (
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
62
63
64
65
66
67
68
69
70
71
72
73
74
|
DESCRIPTION = "Freescale embedded hypervisor"
SECTION = "embedded-hv"
LICENSE = "BSD"
LIC_FILES_CHKSUM = "file://README;endline=22;md5=0655bbc3b7d7166c30c87208b4e23cf0"
PR = "r3"
DEPENDS = "u-boot-mkimage-native"
inherit deploy
S = "${WORKDIR}/git"
# TODO: fix dtc to use the already built package
SRC_URI = " \
git://git.freescale.com/ppc/sdk/hypervisor/hypervisor.git;name=hypervisor \
git://git.freescale.com/ppc/sdk/hypervisor/kconfig.git;name=kconfig;destsuffix=git/kconfig \
git://git.freescale.com/ppc/sdk/hypervisor/libos.git;name=libos;destsuffix=git/libos \
git://www.jdl.com/software/dtc.git;name=dtc;destsuffix=dtc \
file://81-fsl-embedded-hv.rules \
"
SRCREV_FORMAT="hypervisor"
SRCREV = "d3f8d79ca252fc17d4a9ca5f44f563c8a291a9a1"
SRCREV_kconfig = "47a6c4ac5e0621ecbc309bf1b7b588f08858b7e6"
SRCREV_libos = "8a88243d057c32c83595ba201eaf20fc5ec76190"
SRCREV_dtc = "033089f29099bdfd5c2d6986cdb9fd07b16cfde0"
EXTRA_OEMAKE = 'CROSS_COMPILE=${TARGET_PREFIX} CC="${TARGET_PREFIX}gcc ${TOOLCHAIN_OPTIONS}"'
DEFCONFIG = "defconfig"
DEFCONFIG_powerpc64 = "64bit_defconfig"
inherit cml1
do_configure () {
oe_runmake ${DEFCONFIG}
}
do_compile () {
oe_runmake
oe_runmake partman
}
do_install () {
install -d ${D}/${bindir}
install ${S}/output/bin/linux/partman ${D}/${bindir}/partman
install -d ${D}${sysconfdir}/udev/rules.d
install -m 0644 ${WORKDIR}/81-fsl-embedded-hv.rules ${D}${sysconfdir}/udev/rules.d
install -d ${D}/boot/hv
install ${S}/output/.config ${D}/boot/hv/hypervisor.config
install -m 644 ${S}/output/bin/hv ${S}/output/bin/hv.map \
${S}/output/bin/hv.uImage ${S}/output/bin/hv.bin \
${D}/boot/hv/
}
do_deploy () {
install -d ${DEPLOYDIR}/hv/
install ${S}/output/.config ${DEPLOYDIR}/hv/hypervisor.config
install -m 644 ${S}/output/bin/hv ${S}/output/bin/hv.map \
${S}/output/bin/hv.uImage ${S}/output/bin/hv.bin \
${DEPLOYDIR}/hv/
}
addtask deploy before do_build after do_install
do_deploy_append() {
rm -f ${S}/../hv
}
ALLOW_EMPTY_${PN} = "1"
PACKAGES_prepend = "${PN}-image ${PN}-partman "
FILES_${PN}-image = "/boot/"
FILES_${PN}-partman = "${bindir}/partman"
|