]> code.ossystems Code Review - meta-freescale.git/commitdiff
qemu: set preferred version for QEMU
authorMatthew McClintock <msm@freescale.com>
Wed, 25 Jul 2012 01:12:53 +0000 (01:12 +0000)
committerMatthew McClintock <msm@freescale.com>
Wed, 5 Sep 2012 23:57:25 +0000 (18:57 -0500)
The preferred version needs to specify the QEMU
version for our qemu_git recipe (overridden by
the QEMU bbappends).  Without this patch we will
no pick up our qemu_git recipe.

Signed-off-by: Matthew McClintock <msm@freescale.com>
meta-fsl-ppc/conf/distro/fsl.conf
meta-fsl-ppc/conf/machine/e500mc.inc
meta-fsl-ppc/conf/machine/e500v2.inc
meta-fsl-ppc/conf/machine/e5500-64b.inc
meta-fsl-ppc/conf/machine/e5500.inc
meta-fsl-ppc/recipes-devtools/qemu/qemu_1.0.bb [new file with mode: 0644]

index 0b0e17f7b834d92769233a911e4561c8b66997ac..b923415ce907a5332a37717aafbf98f1e6be5fa7 100644 (file)
@@ -29,8 +29,6 @@ DISTRO_EXTRA_RDEPENDS_append_qemux86-64 = " ${POKYQEMUDEPS}"
 
 TCLIBCAPPEND = ""
 
-QEMU_TARGETS ?= "ppc"
-
 PREMIRRORS ?= "\
 bzr://.*/.*   http://downloads.yoctoproject.org/mirror/sources/ \n \
 cvs://.*/.*   http://downloads.yoctoproject.org/mirror/sources/ \n \
index acb55c350a8d9e06e26ebe0bd4ccb1d0374b3614..9f7ed31eea9fe4666afae68e521bc279b0b1be58 100644 (file)
@@ -8,6 +8,7 @@ MACHINE_FEATURES_RRECOMMENDS = ""
 PREFERRED_PROVIDER_virtual/kernel ?= "linux-qoriq-sdk"
 PREFERRED_VERSION_virtual/kernel ?= "3.0.34"
 PREFERRED_PROVIDER_linux-libc-headers ?= "linux-qoriq-sdk-headers"
+PREFERRED_VERSION_qemu = "1.0+fsl"
 
 KERNEL_IMAGETYPE ?= "uImage"
 # disable the images below for now
index 2b837952eb5702da2cbcf0d5b83bc29789d9d47d..da515da07ca1c5f1f2cb71526e5b9ee33ae360ac 100644 (file)
@@ -6,6 +6,7 @@ MACHINE_EXTRA_RRECOMMENDS = ""
 PREFERRED_PROVIDER_virtual/kernel ?= "linux-qoriq-sdk"
 PREFERRED_VERSION_virtual/kernel ?= "3.0.34"
 PREFERRED_PROVIDER_linux-libc-headers ?= "linux-qoriq-sdk-headers"
+PREFERRED_VERSION_qemu = "1.0+fsl"
 
 KERNEL_IMAGETYPE ?= "uImage"
 # disable the images below for now
index 79639f6681a4f3b4ff23b4fab5e5d719c05aad4a..709880ece95376853eb6799b4ecf44e8b8de1336 100644 (file)
@@ -9,6 +9,7 @@ MACHINE_FEATURES_RRECOMMENDS = ""
 PREFERRED_PROVIDER_virtual/kernel ?= "linux-qoriq-sdk"
 PREFERRED_VERSION_virtual/kernel ?= "3.0.34"
 PREFERRED_PROVIDER_linux-libc-headers ?= "linux-qoriq-sdk-headers"
+PREFERRED_VERSION_qemu = "1.0+fsl"
 
 KERNEL_IMAGETYPE ?= "uImage"
 # disable the images below for now
index b89041b7b4f67123df7b1d7b731b14a8814153a0..75c333a9401bbeb176d1e8469d78db85961fdf28 100644 (file)
@@ -8,6 +8,7 @@ MACHINE_FEATURES_RRECOMMENDS = ""
 PREFERRED_PROVIDER_virtual/kernel ?= "linux-qoriq-sdk"
 PREFERRED_VERSION_virtual/kernel ?= "3.0.34"
 PREFERRED_PROVIDER_linux-libc-headers ?= "linux-qoriq-sdk-headers"
+PREFERRED_VERSION_qemu = "1.0+fsl"
 
 KERNEL_IMAGETYPE ?= "uImage"
 # disable the images below for now
diff --git a/meta-fsl-ppc/recipes-devtools/qemu/qemu_1.0.bb b/meta-fsl-ppc/recipes-devtools/qemu/qemu_1.0.bb
new file mode 100644 (file)
index 0000000..7a6e545
--- /dev/null
@@ -0,0 +1,39 @@
+require recipes-devtools/qemu/qemu.inc
+
+LIC_FILES_CHKSUM = "file://COPYING;md5=441c28d2cf86e15a37fa47e15a72fbac \
+                    file://COPYING.LIB;endline=24;md5=c04def7ae38850e7d3ef548588159913"
+
+# This means v1.0 with FSL specific patches applied
+PV = "1.0+fsl"
+
+DEPENDS += "dtc"
+
+SRC_URI = "git://git.freescale.com/ppc/sdk/qemu.git"
+SRCREV = "${AUTOREV}"
+
+S = "${WORKDIR}/git"
+
+QEMU_TARGETS = "ppc"
+PPC_OECONF = '${SDL} --disable-werror --disable-vnc --audio-drv-list="" --audio-card-list="" --disable-bluez --disable-curl'
+EXTRA_OECONF_powerpc = "--target-list=ppc-softmmu ${PPC_OECONF}"
+EXTRA_OECONF_powerpc64 = "--target-list=ppc64-softmmu ${PPC_OECONF}"
+
+do_configure_append () {
+       grep 'CONFIG_FDT=y' config-host.mak
+}
+
+# gets around qemu.inc trying to install powerpc_rom.bin
+do_install_prepend() {
+       touch ${WORKDIR}/powerpc_rom.bin
+}
+
+do_install_append() {
+       rm ${WORKDIR}/powerpc_rom.bin
+}
+
+# This is only meant to be build to run on the target
+# for the given arch types listed, otherwise don't let
+# the package get built. COMPATIBLE_HOST would not work
+# because it was too generic
+COMPATIBLE_MACHINE = "a^"
+COMPATIBLE_MACHINE_libc-glibc_fslmachine = ".*"