Skip to content

Add wrynose (OpenEmbedded 5.0) compatibility#166

Open
ti-kamlesh wants to merge 1 commit into
wolfSSL:masterfrom
ti-kamlesh:wrynose-compat
Open

Add wrynose (OpenEmbedded 5.0) compatibility#166
ti-kamlesh wants to merge 1 commit into
wolfSSL:masterfrom
ti-kamlesh:wrynose-compat

Conversation

@ti-kamlesh
Copy link
Copy Markdown

wrynose is the codename for the OE-core 5.0 / Yocto 5.1 release. Several changes are required for meta-wolfssl to build cleanly on this release:

conf/layer.conf:

  • Add 'wrynose' to LAYERSERIES_COMPAT_wolfssl so bitbake accepts the layer without a compatibility warning/error.

recipes-wolfssl/wolfssl/wolfssl_5.9.1.bb:

  • Remove explicit 'S = "${WORKDIR}/git"'. wrynose bitbake.conf now auto-derives S from the git fetcher using ${BP} as destsuffix; setting it to ${WORKDIR}/git triggers a fatal QA error: "Using S = ${WORKDIR} is no longer supported".
  • Fix RPROVIDES_${PN} -> RPROVIDES:${PN}. The underscore-based variable override syntax was removed in wrynose and causes a parse failure.

inc/wolfcrypttest/wolfssl-enable-wolfcrypttest.inc: inc/wolfcryptbenchmark/wolfssl-enable-wolfcryptbenchmark.inc:

  • Add 'wrynose' to modern_series. Without this the version selector falls back to the legacy .inc file which contains do_install_append() syntax that bitbake rejects in wrynose.

recipes-examples/wolfcrypt/wolfcrypttest/wolfcrypttest.bb: recipes-examples/wolfcrypt/wolfcryptbenchmark/wolfcryptbenchmark.bb:

  • Change S from "${WORKDIR}/git/wolfcrypt/{test,benchmark}" to "${UNPACKDIR}/${BP}/wolfcrypt/{test,benchmark}". In wrynose the git fetcher default destsuffix changed from 'git' to '${BP}', so the source tree lands at ${UNPACKDIR}/${BP}/ rather than ${WORKDIR}/git/. The old path causes do_populate_lic to fail with "LIC_FILES_CHKSUM points to an invalid file".

@wolfSSL-Bot
Copy link
Copy Markdown

Can one of the admins verify this patch?

wrynose is the codename for the OE-core 5.0 / Yocto 5.1 release.
The following changes are required for meta-wolfssl to build cleanly
on this release:

conf/layer.conf:
- Add 'wrynose' to LAYERSERIES_COMPAT_wolfssl so bitbake accepts
  the layer without a compatibility warning/error.

recipes-wolfssl/wolfssl/wolfssl_5.9.1.bb:
- Remove explicit 'S = "${WORKDIR}/git"'. wrynose bitbake.conf now
  auto-derives S from the git fetcher using ${BP} as destsuffix;
  setting it to ${WORKDIR}/git triggers a fatal QA error:
  "Using S = ${WORKDIR} is no longer supported".
- Fix RPROVIDES_${PN} -> RPROVIDES:${PN}. The underscore-based
  variable override syntax was removed in wrynose and causes a
  parse failure.

recipes-wolfssl/wolfprovider/wolfprovider_1.1.1.bb:
recipes-wolfssl/wolfmqtt/wolfmqtt_2.0.0.bb:
recipes-wolfssl/wolfssh/wolfssh_1.4.22.bb:
recipes-wolfssl/wolfengine/wolfengine_1.4.0.bb:
recipes-wolfssl/wolftpm/wolftpm_3.10.0.bb:
recipes-wolfssl/wolfpkcs11/wolfpkcs11_2.0.0.bb:
recipes-wolfssl/wolfclu/wolfclu_0.1.8+master.bb:
recipes-wolfssl/wolfssl-py/wolfssl-py_5.8.4.bb:
recipes-wolfssl/wolfcrypt-py/wolfcrypt-py_5.8.4.bb:
recipes-examples/wolfprovider/wolfprovidercmd/wolfprovidercmd.bb:
recipes-examples/wolftpm/wolftpm-wrap-test.bb:
recipes-examples/wolfssl-py/wolf-py-tests/wolf-py-tests_5.6.0.bb:
- Remove 'S = "${WORKDIR}/git"' for the same reason as above.
  wrynose auto-sets S for git fetchers; explicit assignment to
  ${WORKDIR}/git triggers the fatal QA error.

recipes-wolfssl/wolfprovider/wolfprovider_1.1.1.bb:
recipes-wolfssl/wolfclu/wolfclu_0.1.8+master.bb:
- Fix RPROVIDES_${PN} -> RPROVIDES:${PN}. Underscore override
  syntax was removed in wrynose.

recipes-wolfssl/wolfssl-py/wolfssl-py_5.8.4.bb:
- Fix RDEPENDS_${PN} -> RDEPENDS:${PN}. Same reason.

inc/wolfcrypttest/wolfssl-enable-wolfcrypttest.inc:
inc/wolfcryptbenchmark/wolfssl-enable-wolfcryptbenchmark.inc:
- Add 'wrynose' to modern_series. Without this the version selector
  falls back to the legacy .inc file which contains do_install_append()
  syntax that bitbake rejects in wrynose.

recipes-examples/wolfcrypt/wolfcrypttest/wolfcrypttest.bb:
recipes-examples/wolfcrypt/wolfcryptbenchmark/wolfcryptbenchmark.bb:
- Change S from "${WORKDIR}/git/wolfcrypt/{test,benchmark}" to
  "${UNPACKDIR}/${BP}/wolfcrypt/{test,benchmark}". In wrynose the
  git fetcher default destsuffix changed from 'git' to '${BP}', so
  the source tree lands at ${UNPACKDIR}/${BP}/ rather than
  ${WORKDIR}/git/. The old path causes do_populate_lic to fail with
  "LIC_FILES_CHKSUM points to an invalid file".

Tested on: AM62Lx (Cortex-A53 aarch64), TI SDK wrynose 2025.01,
bitbake 2.16.0. Full tisdk-default-image build succeeds with all
14365 tasks passing.
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