Skip to content

Add platform support for geisa-test on the NXP i.MX9 dev image - #28

Merged
swegener-rtp merged 4 commits into
geisa:mainfrom
ndam-sfl:geisa-api
Oct 23, 2026
Merged

swegener-rtp merged 4 commits into
geisa:mainfrom
ndam-sfl:geisa-api

Conversation

@ndam-sfl

Copy link
Copy Markdown
Contributor

This PR adds [latform side support needed to run geisa-test on the i.MX9 dev image.

  • nxp-imx9-yocto: configure mosquitto so applications in LXC containers can
    reach the broker (listener on the LXC bridge gateway, start after lxc-net,
    dynamic security clients for the API, admin and geisa-app).
  • nxp-imx9-yocto: add the GEISA API mockup to the dev image.
  • api-mockup: answer upstream app messages with ACCEPTED, or REJECTED when
    the payload cannot be decoded, so geisa-test gets a response.
  • geisa-test: fix the probe directory buffer size, which broke the -Werror
    build.

The storage probe builds its directory as
"<storage_dir>/geisa-test-probes". storage_dir holds up to 511
characters, so a 512-byte buffer can truncate the path, and GCC stops
the -Werror build with -Wformat-truncation. Size the buffer to fit the
longest path.

Signed-off-by: Nghia Dam <nghia.dam@savoirfairelinux.com>
Signed-off-by: Nghia Dam <nghia.dam@savoirfairelinux.com>
GEISA applications reach the platform broker from their LXC containers.
Make mosquitto listen on localhost and on the LXC bridge gateway, start
it after lxc-net so that the bridge address exists, and load the dynamic
security plugin with the API, admin and geisa-app clients.

Signed-off-by: Nghia Dam <nghia.dam@savoirfairelinux.com>
Signed-off-by: Nghia Dam <nghia.dam@savoirfairelinux.com>

@kevlhop kevlhop left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@swegener-rtp
swegener-rtp merged commit 193cd3e into geisa:main Oct 23, 2026
2 checks passed
@swegener-rtp

Copy link
Copy Markdown
Collaborator

guys - accepted this but will be undoing the pollution of the core images in a subsequent PR. GAPI mock does not belong in the core dev image but can be an alt build from the same recipes.

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.

3 participants