Complete Yocto mirror with license table for TQMa6UL (2038-compliance)
- 264 license table entries with exact download URLs (224/264 resolved) - Complete sources/ directory with all BitBake recipes - Build configuration: tqma6ul-multi-mba6ulx, spaetzle (musl) - Full traceability for Softwarefreigabeantrag - GCC 13.4.0, Linux 6.6.102, U-Boot 2023.04, musl 1.2.4 - License distribution: GPL-2.0 (24), MIT (23), GPL-2.0+ (18), BSD-3 (16)
This commit is contained in:
@@ -0,0 +1,33 @@
|
||||
From 8ee6281516bd9210e75e91d705da8916bab3bf51 Mon Sep 17 00:00:00 2001
|
||||
From: Juro Bystricky <juro.bystricky@intel.com>
|
||||
Date: Thu, 31 Aug 2017 11:06:56 -0700
|
||||
Subject: [PATCH] Add subpackage -ptest which runs all unit test cases for
|
||||
qemu.
|
||||
|
||||
Upstream-Status: Pending
|
||||
|
||||
Signed-off-by: Kai Kang <kai.kang@windriver.com>
|
||||
|
||||
Signed-off-by: Juro Bystricky <juro.bystricky@intel.com>
|
||||
|
||||
---
|
||||
tests/Makefile.include | 8 ++++++++
|
||||
1 file changed, 8 insertions(+)
|
||||
|
||||
diff --git a/tests/Makefile.include b/tests/Makefile.include
|
||||
index 8566f5f1..52d0320b 100644
|
||||
--- a/tests/Makefile.include
|
||||
+++ b/tests/Makefile.include
|
||||
@@ -1210,4 +1210,12 @@ all: $(QEMU_IOTESTS_HELPERS-y)
|
||||
-include $(wildcard tests/*.d)
|
||||
-include $(wildcard tests/libqos/*.d)
|
||||
|
||||
+buildtest-TESTS: $(check-unit-y)
|
||||
+
|
||||
+runtest-TESTS:
|
||||
+ for f in $(check-unit-y); do \
|
||||
+ nf=$$(echo $$f | sed 's/tests\//\.\//g'); \
|
||||
+ $$nf; \
|
||||
+ done
|
||||
+
|
||||
endif
|
||||
Binary file not shown.
@@ -0,0 +1,10 @@
|
||||
#!/bin/sh
|
||||
#
|
||||
#This script is used to run qemu test suites
|
||||
#
|
||||
|
||||
ptestdir=$(dirname "$(readlink -f "$0")")
|
||||
export SRC_PATH=$ptestdir
|
||||
|
||||
cd $ptestdir/tests
|
||||
make -f Makefile.include -k runtest-TESTS | sed '/^ok /s/ok /PASS: /g'
|
||||
@@ -0,0 +1,64 @@
|
||||
BBCLASSEXTEND = ""
|
||||
|
||||
require qemu.inc
|
||||
|
||||
COMPATIBLE_MACHINE = "(qoriq)"
|
||||
|
||||
DEPENDS = "glib-2.0 zlib pixman bison-native"
|
||||
|
||||
LIC_FILES_CHKSUM = "file://COPYING;md5=441c28d2cf86e15a37fa47e15a72fbac \
|
||||
file://COPYING.LIB;endline=24;md5=8c5efda6cf1e1b03dcfd0e6c0d271c7f"
|
||||
|
||||
SRC_URI = "gitsm://github.com/nxp-qoriq/qemu;protocol=https;nobranch=1 \
|
||||
file://powerpc_rom.bin \
|
||||
file://run-ptest \
|
||||
file://0002-Add-subpackage-ptest-which-runs-all-unit-test-cases-.patch \
|
||||
"
|
||||
|
||||
SRCREV = "14fda5a42df6c72e890d6a97ff88c5852172604b"
|
||||
|
||||
S = "${WORKDIR}/git"
|
||||
|
||||
python() {
|
||||
d.appendVar('PROVIDES', ' ' + d.getVar('BPN').replace('-qoriq', ''))
|
||||
pkgs = d.getVar('PACKAGES').split()
|
||||
for p in pkgs:
|
||||
if '-qoriq' in p:
|
||||
d.appendVar('RPROVIDES:' + p, ' ' + p.replace('-qoriq', ''))
|
||||
d.appendVar('RCONFLICTS:' + p, ' ' + p.replace('-qoriq', ''))
|
||||
d.appendVar('RREPLACES:' + p, ' ' + p.replace('-qoriq', ''))
|
||||
}
|
||||
|
||||
RDEPENDS:${PN}:class-target += "bash"
|
||||
|
||||
EXTRA_OECONF:append:class-target = " --target-list=${@get_qemu_target_list(d)}"
|
||||
EXTRA_OECONF:append:class-target:mipsarcho32 = "${@bb.utils.contains('BBEXTENDCURR', 'multilib', ' --disable-capstone', '', d)}"
|
||||
EXTRA_OECONF:append:class-nativesdk = " --target-list=${@get_qemu_target_list(d)}"
|
||||
|
||||
do_install:append:class-nativesdk() {
|
||||
${@bb.utils.contains('PACKAGECONFIG', 'gtk+', 'make_qemu_wrapper', '', d)}
|
||||
}
|
||||
|
||||
do_install_ptest() {
|
||||
cp -rL ${B}/tests ${D}${PTEST_PATH}
|
||||
find ${D}${PTEST_PATH}/tests -type f -name "*.[Sshcod]" | xargs -i rm -rf {}
|
||||
|
||||
cp ${S}/tests/Makefile.include ${D}${PTEST_PATH}/tests
|
||||
# Don't check the file genreated by configure
|
||||
sed -i -e '/wildcard config-host.mak/d' \
|
||||
-e '$ {/endif/d}' ${D}${PTEST_PATH}/tests/Makefile.include
|
||||
sed -i -e 's,${HOSTTOOLS_DIR}/python3,${bindir}/python3,' \
|
||||
${D}/${PTEST_PATH}/tests/qemu-iotests/common.env
|
||||
}
|
||||
|
||||
PACKAGECONFIG ??= " \
|
||||
fdt sdl kvm aio libusb vhost numa \
|
||||
${@bb.utils.filter('DISTRO_FEATURES', 'alsa xen', d)} \
|
||||
"
|
||||
PACKAGECONFIG:class-nativesdk ??= "fdt sdl kvm"
|
||||
|
||||
PACKAGECONFIG[xkbcommon] = ",,"
|
||||
PACKAGECONFIG[libudev] = ",,"
|
||||
|
||||
DISABLE_STATIC = ""
|
||||
|
||||
@@ -0,0 +1,28 @@
|
||||
# possible arch values are:
|
||||
# aarch64 arm armeb alpha cris i386 x86_64 m68k microblaze
|
||||
# mips mipsel mips64 mips64el ppc ppc64 ppc64abi32 ppcemb
|
||||
# riscv32 riscv64 sparc sparc32 sparc32plus
|
||||
|
||||
def get_qemu_target_list(d):
|
||||
import bb
|
||||
archs = d.getVar('QEMU_TARGETS').split()
|
||||
tos = d.getVar('HOST_OS')
|
||||
softmmuonly = ""
|
||||
for arch in ['ppcemb', 'lm32']:
|
||||
if arch in archs:
|
||||
softmmuonly += arch + "-softmmu,"
|
||||
archs.remove(arch)
|
||||
linuxuseronly = ""
|
||||
for arch in ['armeb', 'alpha', 'ppc64abi32', 'ppc64le', 'sparc32plus', 'aarch64_be']:
|
||||
if arch in archs:
|
||||
linuxuseronly += arch + "-linux-user,"
|
||||
archs.remove(arch)
|
||||
if 'linux' not in tos:
|
||||
return softmmuonly + ''.join([arch + "-softmmu" + "," for arch in archs]).rstrip(',')
|
||||
return softmmuonly + linuxuseronly + ''.join([arch + "-linux-user" + "," + arch + "-softmmu" + "," for arch in archs]).rstrip(',')
|
||||
|
||||
def get_qemu_usermode_target_list(d):
|
||||
return ",".join(filter(lambda i: "-linux-user" in i, get_qemu_target_list(d).split(',')))
|
||||
|
||||
def get_qemu_system_target_list(d):
|
||||
return ",".join(filter(lambda i: "-linux-user" not in i, get_qemu_target_list(d).split(',')))
|
||||
198
sources/meta-freescale/recipes-devtools/qemu/qemu.inc
Normal file
198
sources/meta-freescale/recipes-devtools/qemu/qemu.inc
Normal file
@@ -0,0 +1,198 @@
|
||||
SUMMARY = "Fast open source processor emulator"
|
||||
DESCRIPTION = "QEMU is a hosted virtual machine monitor: it emulates the \
|
||||
machine's processor through dynamic binary translation and provides a set \
|
||||
of different hardware and device models for the machine, enabling it to run \
|
||||
a variety of guest operating systems"
|
||||
HOMEPAGE = "http://qemu.org"
|
||||
LICENSE = "GPL-2.0-only & LGPL-2.1-only"
|
||||
|
||||
RDEPENDS:${PN}-ptest = "bash make"
|
||||
|
||||
require qemu-targets.inc
|
||||
inherit pkgconfig ptest
|
||||
|
||||
LIC_FILES_CHKSUM = "file://COPYING;md5=441c28d2cf86e15a37fa47e15a72fbac \
|
||||
file://COPYING.LIB;endline=24;md5=8c5efda6cf1e1b03dcfd0e6c0d271c7f"
|
||||
|
||||
SRC_URI = "https://download.qemu.org/${BPN}-${PV}.tar.xz \
|
||||
file://powerpc_rom.bin \
|
||||
file://run-ptest \
|
||||
file://0001-qemu-Add-missing-wacom-HID-descriptor.patch \
|
||||
file://0002-Add-subpackage-ptest-which-runs-all-unit-test-cases-.patch \
|
||||
file://0003-qemu-Add-addition-environment-space-to-boot-loader-q.patch \
|
||||
file://0004-qemu-disable-Valgrind.patch \
|
||||
file://0005-qemu-native-set-ld.bfd-fix-cflags-and-set-some-envir.patch \
|
||||
file://0006-chardev-connect-socket-to-a-spawned-command.patch \
|
||||
file://0007-apic-fixup-fallthrough-to-PIC.patch \
|
||||
file://0008-linux-user-Fix-webkitgtk-hangs-on-32-bit-x86-target.patch \
|
||||
file://0009-Fix-webkitgtk-builds.patch \
|
||||
file://0010-configure-Add-pkg-config-handling-for-libgcrypt.patch \
|
||||
file://0001-Add-enable-disable-udev.patch \
|
||||
file://0001-qemu-Do-not-include-file-if-not-exists.patch \
|
||||
file://find_datadir.patch \
|
||||
file://usb-fix-setup_len-init.patch \
|
||||
file://0001-target-mips-Increase-number-of-TLB-entries-on-the-34.patch \
|
||||
file://CVE-2020-24352.patch \
|
||||
file://CVE-2020-29129-CVE-2020-29130.patch \
|
||||
file://CVE-2020-25624.patch \
|
||||
file://CVE-2020-25723.patch \
|
||||
file://CVE-2020-28916.patch \
|
||||
file://CVE-2020-35517.patch \
|
||||
file://CVE-2020-29443.patch \
|
||||
file://CVE-2021-20203.patch \
|
||||
"
|
||||
UPSTREAM_CHECK_REGEX = "qemu-(?P<pver>\d+(\.\d+)+)\.tar"
|
||||
|
||||
SRC_URI[sha256sum] = "c9174eb5933d9eb5e61f541cd6d1184cd3118dfe4c5c4955bc1bdc4d390fa4e5"
|
||||
|
||||
COMPATIBLE_HOST:mipsarchn32 = "null"
|
||||
COMPATIBLE_HOST:mipsarchn64 = "null"
|
||||
|
||||
# Per https://lists.nongnu.org/archive/html/qemu-devel/2020-09/msg03873.html
|
||||
# upstream states qemu doesn't work without optimization
|
||||
DEBUG_BUILD = "0"
|
||||
|
||||
do_install:append() {
|
||||
# Prevent QA warnings about installed ${localstatedir}/run
|
||||
if [ -d ${D}${localstatedir}/run ]; then rmdir ${D}${localstatedir}/run; fi
|
||||
}
|
||||
|
||||
do_compile_ptest() {
|
||||
make buildtest-TESTS
|
||||
}
|
||||
|
||||
do_install_ptest() {
|
||||
cp -rL ${B}/tests ${D}${PTEST_PATH}
|
||||
find ${D}${PTEST_PATH}/tests -type f -name "*.[Sshcod]" | xargs -i rm -rf {}
|
||||
|
||||
cp ${S}/tests/Makefile.include ${D}${PTEST_PATH}/tests
|
||||
# Don't check the file genreated by configure
|
||||
sed -i -e '/wildcard config-host.mak/d' \
|
||||
-e '$ {/endif/d}' ${D}${PTEST_PATH}/tests/Makefile.include
|
||||
sed -i -e 's,${HOSTTOOLS_DIR}/python3,${bindir}/python3,' \
|
||||
${D}/${PTEST_PATH}/tests/qemu-iotests/common.env
|
||||
}
|
||||
|
||||
# QEMU_TARGETS is overridable variable
|
||||
QEMU_TARGETS ?= "arm aarch64 i386 mips mipsel mips64 mips64el ppc ppc64 ppc64le riscv32 riscv64 sh4 x86_64"
|
||||
|
||||
EXTRA_OECONF = " \
|
||||
--prefix=${prefix} \
|
||||
--bindir=${bindir} \
|
||||
--includedir=${includedir} \
|
||||
--libdir=${libdir} \
|
||||
--mandir=${mandir} \
|
||||
--datadir=${datadir} \
|
||||
--docdir=${docdir}/${BPN} \
|
||||
--sysconfdir=${sysconfdir} \
|
||||
--libexecdir=${libexecdir} \
|
||||
--localstatedir=${localstatedir} \
|
||||
--with-confsuffix=/${BPN} \
|
||||
--disable-strip \
|
||||
--disable-werror \
|
||||
--extra-cflags='${CFLAGS}' \
|
||||
--extra-ldflags='${LDFLAGS}' \
|
||||
--with-git=/bin/false \
|
||||
--disable-git-update \
|
||||
${PACKAGECONFIG_CONFARGS} \
|
||||
"
|
||||
|
||||
export LIBTOOL="${HOST_SYS}-libtool"
|
||||
|
||||
B = "${WORKDIR}/build"
|
||||
|
||||
EXTRA_OECONF:append = " --python=${HOSTTOOLS_DIR}/python3"
|
||||
|
||||
do_configure:prepend:class-native() {
|
||||
# Append build host pkg-config paths for native target since the host may provide sdl
|
||||
BHOST_PKGCONFIG_PATH=$(PATH=/usr/bin:/bin pkg-config --variable pc_path pkg-config || echo "")
|
||||
if [ ! -z "$BHOST_PKGCONFIG_PATH" ]; then
|
||||
export PKG_CONFIG_PATH=$PKG_CONFIG_PATH:$BHOST_PKGCONFIG_PATH
|
||||
fi
|
||||
}
|
||||
|
||||
do_configure() {
|
||||
${S}/configure ${EXTRA_OECONF}
|
||||
}
|
||||
do_configure[cleandirs] += "${B}"
|
||||
|
||||
do_install () {
|
||||
export STRIP=""
|
||||
oe_runmake 'DESTDIR=${D}' install
|
||||
}
|
||||
|
||||
# The following fragment will create a wrapper for qemu-mips user emulation
|
||||
# binary in order to work around a segmentation fault issue. Basically, by
|
||||
# default, the reserved virtual address space for 32-on-64 bit is set to 4GB.
|
||||
# This will trigger a MMU access fault in the virtual CPU. With this change,
|
||||
# the qemu-mips works fine.
|
||||
# IMPORTANT: This piece needs to be removed once the root cause is fixed!
|
||||
do_install:append() {
|
||||
if [ -e "${D}/${bindir}/qemu-mips" ]; then
|
||||
create_wrapper ${D}/${bindir}/qemu-mips \
|
||||
QEMU_RESERVED_VA=0x0
|
||||
fi
|
||||
}
|
||||
# END of qemu-mips workaround
|
||||
|
||||
make_qemu_wrapper() {
|
||||
gdk_pixbuf_module_file=`pkg-config --variable=gdk_pixbuf_cache_file gdk-pixbuf-2.0`
|
||||
|
||||
for tool in `ls ${D}${bindir}/qemu-system-*`; do
|
||||
create_wrapper $tool \
|
||||
GDK_PIXBUF_MODULE_FILE=$gdk_pixbuf_module_file \
|
||||
FONTCONFIG_PATH=/etc/fonts \
|
||||
GTK_THEME=Adwaita
|
||||
done
|
||||
}
|
||||
|
||||
# Disable kvm/virgl/mesa on targets that do not support it
|
||||
PACKAGECONFIG:remove:darwin = "kvm virglrenderer glx gtk+"
|
||||
PACKAGECONFIG:remove:mingw32 = "kvm virglrenderer glx gtk+"
|
||||
|
||||
PACKAGECONFIG[sdl] = "--enable-sdl,--disable-sdl,libsdl2"
|
||||
PACKAGECONFIG[virtfs] = "--enable-virtfs --enable-attr --enable-cap-ng,--disable-virtfs,libcap-ng attr,"
|
||||
PACKAGECONFIG[aio] = "--enable-linux-aio,--disable-linux-aio,libaio,"
|
||||
PACKAGECONFIG[xfs] = "--enable-xfsctl,--disable-xfsctl,xfsprogs,"
|
||||
PACKAGECONFIG[xen] = "--enable-xen,--disable-xen,xen-tools,xen-tools-libxenstore xen-tools-libxenctrl xen-tools-libxenguest"
|
||||
PACKAGECONFIG[vnc-sasl] = "--enable-vnc --enable-vnc-sasl,--disable-vnc-sasl,cyrus-sasl,"
|
||||
PACKAGECONFIG[vnc-jpeg] = "--enable-vnc --enable-vnc-jpeg,--disable-vnc-jpeg,jpeg,"
|
||||
PACKAGECONFIG[vnc-png] = "--enable-vnc --enable-vnc-png,--disable-vnc-png,libpng,"
|
||||
PACKAGECONFIG[libcurl] = "--enable-curl,--disable-curl,curl,"
|
||||
PACKAGECONFIG[nss] = "--enable-smartcard,--disable-smartcard,nss,"
|
||||
PACKAGECONFIG[curses] = "--enable-curses,--disable-curses,ncurses,"
|
||||
PACKAGECONFIG[gtk+] = "--enable-gtk,--disable-gtk,gtk+3 gettext-native"
|
||||
PACKAGECONFIG[vte] = "--enable-vte,--disable-vte,vte gettext-native"
|
||||
PACKAGECONFIG[libcap-ng] = "--enable-cap-ng,--disable-cap-ng,libcap-ng,"
|
||||
PACKAGECONFIG[ssh] = "--enable-libssh,--disable-libssh,libssh,"
|
||||
PACKAGECONFIG[gcrypt] = "--enable-gcrypt,--disable-gcrypt,libgcrypt,"
|
||||
PACKAGECONFIG[nettle] = "--enable-nettle,--disable-nettle,nettle"
|
||||
PACKAGECONFIG[libusb] = "--enable-libusb,--disable-libusb,libusb1"
|
||||
PACKAGECONFIG[fdt] = "--enable-fdt,--disable-fdt,dtc"
|
||||
PACKAGECONFIG[alsa] = "--audio-drv-list='oss alsa',,alsa-lib"
|
||||
PACKAGECONFIG[glx] = "--enable-opengl,--disable-opengl,virtual/libgl"
|
||||
PACKAGECONFIG[lzo] = "--enable-lzo,--disable-lzo,lzo"
|
||||
PACKAGECONFIG[numa] = "--enable-numa,--disable-numa,numactl"
|
||||
PACKAGECONFIG[gnutls] = "--enable-gnutls,--disable-gnutls,gnutls"
|
||||
PACKAGECONFIG[bzip2] = "--enable-bzip2,--disable-bzip2,bzip2"
|
||||
PACKAGECONFIG[libiscsi] = "--enable-libiscsi,--disable-libiscsi"
|
||||
PACKAGECONFIG[kvm] = "--enable-kvm,--disable-kvm"
|
||||
PACKAGECONFIG[virglrenderer] = "--enable-virglrenderer,--disable-virglrenderer,virglrenderer"
|
||||
# spice will be in meta-networking layer
|
||||
PACKAGECONFIG[spice] = "--enable-spice,--disable-spice,spice"
|
||||
# usbredir will be in meta-networking layer
|
||||
PACKAGECONFIG[usb-redir] = "--enable-usb-redir,--disable-usb-redir,usbredir"
|
||||
PACKAGECONFIG[snappy] = "--enable-snappy,--disable-snappy,snappy"
|
||||
PACKAGECONFIG[glusterfs] = "--enable-glusterfs,--disable-glusterfs,glusterfs"
|
||||
PACKAGECONFIG[xkbcommon] = "--enable-xkbcommon,--disable-xkbcommon,libxkbcommon"
|
||||
PACKAGECONFIG[libudev] = "--enable-libudev,--disable-libudev,eudev"
|
||||
PACKAGECONFIG[libxml2] = "--enable-libxml2,--disable-libxml2,libxml2"
|
||||
PACKAGECONFIG[attr] = "--enable-attr,--disable-attr,attr,"
|
||||
PACKAGECONFIG[rbd] = "--enable-rbd,--disable-rbd,ceph,ceph"
|
||||
PACKAGECONFIG[vhost] = "--enable-vhost-net,--disable-vhost-net,,"
|
||||
PACKAGECONFIG[ust] = "--enable-trace-backend=ust,--enable-trace-backend=nop,lttng-ust,"
|
||||
PACKAGECONFIG[pie] = "--enable-pie,--disable-pie,,"
|
||||
|
||||
INSANE_SKIP:${PN} = "arch"
|
||||
|
||||
FILES:${PN} += "${datadir}/icons"
|
||||
Reference in New Issue
Block a user