mirror of
git://git.yoctoproject.org/meta-virtualization.git
synced 2025-07-19 20:59:41 +02:00

A mostly straightforward uprev. Unfortunately a required patch for python3 is only available on a non-release branch so we must carry it in order to build (the discussion on the mailing list was that an uprev might have avoided this, but this is not the case). The ptest results are similar to after the v2.11 uprev ERROR: 2413 tests were run, 23 failed unexpectedly. 383 tests were skipped. NOTE, however, that they have now marked many tests as 'skipped', such as the python2 results, so the failed and skipped numbers have essentially swapped with each other. The failed tests were in the following areas: checkpatch.at (5) ovs-ofctl.at (1) dpif-netdev.at (1) ofproto-dpif.at (6) bridge.at (2) ovn.at (2) ovn-controller-vtep.at (6) Most were issues with the test or expectations that source code would be available. There might be an issue around packaging of "/vswitchd/vswitch.ovsschema" but we should be able to overlook this for now, as we have with previous versions. Signed-off-by: Mark Asselstine <mark.asselstine@windriver.com> Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
67 lines
2.4 KiB
BlitzBasic
67 lines
2.4 KiB
BlitzBasic
require openvswitch.inc
|
|
|
|
DEPENDS += "virtual/kernel"
|
|
|
|
PACKAGE_ARCH = "${MACHINE_ARCH}"
|
|
|
|
RDEPENDS_${PN}-ptest += "\
|
|
python3-logging python3-syslog python3-io \
|
|
python3-fcntl python3-shell python3-xml python3-math \
|
|
python3-datetime python3-netclient python3 sed \
|
|
ldd perl-module-socket perl-module-carp perl-module-exporter \
|
|
perl-module-xsloader python3-netserver python3-threading \
|
|
python3-resource findutils which diffutils \
|
|
"
|
|
|
|
S = "${WORKDIR}/git"
|
|
PV = "2.12+${SRCPV}"
|
|
|
|
FILESEXTRAPATHS_append := "${THISDIR}/${PN}-git:"
|
|
|
|
SRCREV = "6beb94976e2b3e0c51430b63214de14186d8db39"
|
|
SRC_URI = "file://openvswitch-switch \
|
|
file://openvswitch-switch-setup \
|
|
file://openvswitch-testcontroller \
|
|
file://openvswitch-testcontroller-setup \
|
|
git://github.com/openvswitch/ovs.git;protocol=git;branch=branch-2.12 \
|
|
file://openvswitch-add-ptest-6beb94976e2b3e0c51430b63214de14186d8db39.patch \
|
|
file://run-ptest \
|
|
file://disable_m4_check.patch \
|
|
file://kernel_module.patch \
|
|
file://python-make-remaining-scripts-use-usr-bin-env.patch \
|
|
file://0002-Define-WAIT_ANY-if-not-provided-by-system.patch \
|
|
file://python-switch-remaining-scripts-to-use-python3.patch \
|
|
file://systemd-update-tool-paths.patch \
|
|
file://systemd-create-runtime-dirs.patch \
|
|
file://ovsdb-idlc.in-fix-dict-change-during-iteration.patch \
|
|
"
|
|
|
|
LIC_FILES_CHKSUM = "file://LICENSE;md5=1ce5d23a6429dff345518758f13aaeab"
|
|
|
|
DPDK_INSTALL_DIR ?= "/opt/dpdk"
|
|
|
|
PACKAGECONFIG ?= "libcap-ng"
|
|
PACKAGECONFIG[dpdk] = "--with-dpdk=${STAGING_DIR_TARGET}${DPDK_INSTALL_DIR}/share/${TARGET_ARCH}-native-linuxapp-gcc,,dpdk,dpdk"
|
|
PACKAGECONFIG[libcap-ng] = "--enable-libcapng,--disable-libcapng,libcap-ng,"
|
|
PACKAGECONFIG[ssl] = ",--disable-ssl,openssl,"
|
|
|
|
# Don't compile kernel modules by default since it heavily depends on
|
|
# kernel version. Use the in-kernel module for now.
|
|
# distro layers can enable with EXTRA_OECONF_pn_openvswitch += ""
|
|
# EXTRA_OECONF += "--with-linux=${STAGING_KERNEL_BUILDDIR} --with-linux-source=${STAGING_KERNEL_DIR} KARCH=${TARGET_ARCH}"
|
|
|
|
# silence a warning
|
|
FILES_${PN} += "/lib/modules"
|
|
|
|
inherit ptest
|
|
|
|
EXTRA_OEMAKE += "TEST_DEST=${D}${PTEST_PATH} TEST_ROOT=${PTEST_PATH}"
|
|
|
|
do_install_ptest() {
|
|
oe_runmake test-install
|
|
}
|
|
|
|
do_install_append() {
|
|
oe_runmake modules_install INSTALL_MOD_PATH=${D}
|
|
}
|