Skip to content

imx-test, secure-obj, libpkcs11: fix the build with current OE-core - #2789

Merged
otavio merged 4 commits into
Freescale:masterfrom
lucianogdittgen:buildfix/oe-core-build-repairs
Oct 2, 2026
Merged

otavio merged 4 commits into
Freescale:masterfrom
lucianogdittgen:buildfix/oe-core-build-repairs

Conversation

@lucianogdittgen

@lucianogdittgen lucianogdittgen commented Oct 2, 2026 •

Copy link
Copy Markdown
Contributor

Summary

imx-test, secure-obj and libpkcs11 don't build on current master with current OE-core. These 4 commits make them build again. Nothing else changes.

The breakage turned up while fixing yocto-check-layer test_machine_signatures, because those fixes need these recipes to build. The signatures PR (#2790) is stacked on this one, so please merge this one first.

Commits

Commit Failure on master Fix Built on
adec33001 imx-test: Inherit pkgconfig do_compile: patgen's -I$(PKG_CONFIG_SYSROOT_DIR)/usr/include/freetype2 fell back to the host and tripped poison-system-directories. OE-core 68d2d38483 moved the PKG_CONFIG_SYSROOT_DIR export into the pkgconfig class. inherit pkgconfig imx93-11x11-lpddr4x-evk
461fd62ba secure-obj: Drop the OpenSSL engine do_compile: sobj_eng_app no longer links, because OpenSSL 4.0 removed the ENGINE API drop the engine and its test app ls1012ardb (secure-obj, libpkcs11, secure-obj-module)
40d4d6b93 secure-obj: Keep build paths out of the securekey_lib apps do_package_qa [buildpaths]: mp_verify kept TMPDIR in its debug info. The apps compile with plain $(CC) and never see CFLAGS. CC:append = " ${DEBUG_PREFIX_MAP}" ls1012ardb
e040a2bef libpkcs11: Build the test apps with gnu17 and the debug prefix map do_compile: GCC 15's C23 default rejects thread_test.c (false as an identifier, a () prototype called with an argument). After that, do_package_qa [buildpaths] for the same reason as secure-obj. -std=gnu17 and DEBUG_PREFIX_MAP on the app build ls1012ardb

Behaviour change: the secure-obj OpenSSL engine is gone

461fd62ba removes from the secure-obj package:

  • libeng_secure_obj.so, installed under ${libdir}/${ARCH}-linux-gnu/openssl-1.0.0/engines;
  • sobj_eng_app, its test app.

Porting it to OpenSSL 4.0 would mean rewriting it as a provider: eng_secure_obj.c is about 900 lines on RSA_METHOD/EC_KEY_METHOD. It was also installed in an openssl-1.0.0/engines directory that OpenSSL 3 and later never search, and no recipe in the layer uses it. The TA and the key-management library (libsecure_obj.so and its apps) are unchanged.

Validation

There's no before/after buildhistory diff for these commits, because each recipe fails to build on master. The evidence is that each one now builds through do_package_qa on the machine listed. The signatures PR then built and compared all three recipes on top of these repairs.

oelint-adv: no findings in the 4 changed files, before or after.

patgen's Makefile adds -I$(PKG_CONFIG_SYSROOT_DIR)/usr/include/freetype2,
but OE-core 68d2d38483 moved that export into the pkgconfig class, so the
path fell back to the host and poison-system-directories failed
do_compile. Tested with bitbake imx-test on imx93-11x11-lpddr4x-evk.

Signed-off-by: Luciano Dittgen <luciano.dittgen@ossystems.com.br>
OpenSSL 4.0 removed the ENGINE API, so sobj_eng_app no longer links and
secure-obj failed do_compile. Porting the engine means a new provider;
it was installed under openssl-1.0.0/engines, which OpenSSL 3 and later
never search, and nothing uses it. Tested with bitbake secure-obj
libpkcs11 secure-obj-module on ls1012ardb.

Signed-off-by: Luciano Dittgen <luciano.dittgen@ossystems.com.br>
The apps compile with plain $(CC) and never see CFLAGS, so mp_verify,
unstripped here, kept TMPDIR in its debug info and failed the buildpaths
QA check. Pass DEBUG_PREFIX_MAP on CC. Tested with bitbake secure-obj on
ls1012ardb.

Signed-off-by: Luciano Dittgen <luciano.dittgen@ossystems.com.br>
The app target compiles with plain $(CC) and never sees CFLAGS. Under
GCC 15's C23 default thread_test.c fails (false as an identifier, a ()
prototype called with an argument), and without DEBUG_PREFIX_MAP its
debug info fails the buildpaths QA check. Tested with bitbake libpkcs11
on ls1012ardb.

Signed-off-by: Luciano Dittgen <luciano.dittgen@ossystems.com.br>
@otavio
otavio merged commit 275024d into Freescale:master Oct 2, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants