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:
44
sources/poky/meta/lib/oeqa/selftest/cases/minidebuginfo.py
Normal file
44
sources/poky/meta/lib/oeqa/selftest/cases/minidebuginfo.py
Normal file
@@ -0,0 +1,44 @@
|
||||
#
|
||||
# Copyright OpenEmbedded Contributors
|
||||
#
|
||||
# SPDX-License-Identifier: MIT
|
||||
#
|
||||
import os
|
||||
import subprocess
|
||||
import tempfile
|
||||
import shutil
|
||||
|
||||
from oeqa.selftest.case import OESelftestTestCase
|
||||
from oeqa.utils.commands import bitbake, get_bb_var, get_bb_vars, runCmd
|
||||
|
||||
|
||||
class Minidebuginfo(OESelftestTestCase):
|
||||
def test_minidebuginfo(self):
|
||||
target_sys = get_bb_var("TARGET_SYS")
|
||||
binutils = "binutils-cross-{}".format(get_bb_var("TARGET_ARCH"))
|
||||
|
||||
image = 'core-image-minimal'
|
||||
bb_vars = get_bb_vars(['DEPLOY_DIR_IMAGE', 'IMAGE_LINK_NAME', 'READELF'], image)
|
||||
|
||||
self.write_config("""
|
||||
DISTRO_FEATURES:append = " minidebuginfo"
|
||||
IMAGE_FSTYPES = "tar.bz2"
|
||||
""")
|
||||
bitbake("{} {}:do_addto_recipe_sysroot".format(image, binutils))
|
||||
|
||||
native_sysroot = get_bb_var("RECIPE_SYSROOT_NATIVE", binutils)
|
||||
|
||||
# confirm that executables and shared libraries contain an ELF section
|
||||
# ".gnu_debugdata" which stores minidebuginfo.
|
||||
with tempfile.TemporaryDirectory(prefix = "unpackfs-") as unpackedfs:
|
||||
filename = os.path.join(bb_vars['DEPLOY_DIR_IMAGE'], "{}.tar.bz2".format(bb_vars['IMAGE_LINK_NAME']))
|
||||
shutil.unpack_archive(filename, unpackedfs)
|
||||
|
||||
r = runCmd([bb_vars['READELF'], "-W", "-S", os.path.join(unpackedfs, "bin", "busybox")],
|
||||
native_sysroot = native_sysroot, target_sys = target_sys)
|
||||
self.assertIn(".gnu_debugdata", r.output)
|
||||
|
||||
r = runCmd([bb_vars['READELF'], "-W", "-S", os.path.join(unpackedfs, "lib", "libc.so.6")],
|
||||
native_sysroot = native_sysroot, target_sys = target_sys)
|
||||
self.assertIn(".gnu_debugdata", r.output)
|
||||
|
||||
Reference in New Issue
Block a user