From 2a8d44bf7b9faca3935b851107c70754e1cdcae3 Mon Sep 17 00:00:00 2001 From: Yogesh Tyagi Date: Tue, 12 May 2026 23:14:43 +0800 Subject: libipt: drop pttc nasm patch and runtime QA case The 0001-pttc-use-nasm-instead-of-yasm.patch local patch reworked upstream pttc to invoke nasm in place of the unmaintained yasm assembler. The patch was submitted upstream (https://github.com/intel/libipt/pull/120) but has not been merged, and carrying it locally is the only reason meta-intel needs to diverge from a pristine stable/v2.2 checkout. Drop the patch and let pttc fall back to upstream's stock yasm-based behaviour. This matches what Fedora/RHEL already does for the libipt package: ship libipt without yasm support and let libipt's own CMake skip the yasm-driven ptt tests automatically when yasm isn't available. Native nasm support in pttc remains a future upstream enhancement; when it lands we can revisit and re-add a runtime case that exercises pttc end-to-end against nasm. The libipt runtime test (lib/oeqa/runtime/cases/libipt.py) gated on the 'nasm' package and ran pttc on the shipped sample .ptt files. With the patch removed pttc invokes yasm at runtime, so the test would fail on every DUT (yasm is not pulled in as an RDEPENDS anywhere in meta-intel). The test exercised pttc/ptdump end-to-end, not the libipt library itself, and library coverage is provided indirectly by anything that links against libipt2; the runtime case has no remaining utility once the assembler-substitution patch is gone. No change to the recipe's PACKAGES, FILES, or EXTRA_OECMAKE: the libipt-test sub-package still ships pttc, ptdump, ptseg and the .ptt sample sources under ${bindir}/libipt for any user that installs yasm out-of-band and wants to drive pttc manually. This matches the Fedora libipt RPM behaviour. Signed-off-by: Yogesh Tyagi --- lib/oeqa/runtime/cases/libipt.py | 23 ----------------------- 1 file changed, 23 deletions(-) delete mode 100644 lib/oeqa/runtime/cases/libipt.py (limited to 'lib') diff --git a/lib/oeqa/runtime/cases/libipt.py b/lib/oeqa/runtime/cases/libipt.py deleted file mode 100644 index dd31a538..00000000 --- a/lib/oeqa/runtime/cases/libipt.py +++ /dev/null @@ -1,23 +0,0 @@ -from oeqa.runtime.case import OERuntimeTestCase -from oeqa.runtime.decorator.package import OEHasPackage -from oeqa.core.decorator.depends import OETestDepends - -class LibiptTest(OERuntimeTestCase): - libipt_bin_dir = '/usr/bin/libipt/' - - @classmethod - def tearDownClass(cls): - cls.tc.target.run('rm /tmp/loop-tnt*') - - @OEHasPackage(['libipt', 'libipt2']) - @OEHasPackage(['libipt-test']) - @OEHasPackage(['nasm']) - def test_libipt_can_generate_trace_packet(self): - (status, output) = self.target.run('cd /tmp; %spttc %s/tests/loop-tnt.ptt' % - (self.libipt_bin_dir, self.libipt_bin_dir)) - self.assertEqual(status, 0, msg='status and output: %s and %s' % (status, output)) - - @OETestDepends(['libipt.LibiptTest.test_libipt_can_generate_trace_packet']) - def test_libipt_can_perform_trace_packet_dump(self): - (status, output) = self.target.run('cd /tmp; %sptdump loop-tnt.pt' % self.libipt_bin_dir) - self.assertEqual(status, 0, msg='status and output: %s and %s' % (status, output)) -- cgit v1.2.3-54-g00ecf