Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

classes: fitimage: allow configuration of deployed filenames #22

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

js731ca
Copy link
Contributor

@js731ca js731ca commented Nov 7, 2024

Refactor the do_deploy to allow a class inheriting recipe to change the file- and symlink-names of the created artifacts through the new variables:

FITIMAGE_IMAGE_BASE_NAME for the fitimage binary
FITIMAGE_IMAGE_LINK_NAME
FITIMAGE_ITS_BASE_NAME and the manifest file
FITIMAGE_ITS_LINK_NAME

@@ -91,7 +91,10 @@ FITIMAGE_NO_DTB_OVERLAYS ??= "false"
FITIMAGE_NO_DTB_OVERLAYS[type] = "boolean"

FITIMAGE_IMAGE_SUFFIX ??= ""
FITIMAGE_IMAGE_LINK_NAME ??= "fitImage"
FITIMAGE_IMAGE_BASE_NAME ??= "fitImage-${PN}-${PV}-${PR}-${MACHINE}${IMAGE_VERSION_SUFFIX}${FITIMAGE_IMAGE_SUFFIX}"
FITIMAGE_IMAGE_LINK_NAME ??= "${PN}-${MACHINE}${FITIMAGE_IMAGE_SUFFIX}"
Copy link
Contributor

Choose a reason for hiding this comment

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

Hello Johannes,

thank you for this patch.
At the moment the soft link name fitImage is used for the creation of wic and partup image.
You can see it in the declaration of IMAGE_BOOT_FILES in the machine config files.
The bootloader use the name fitImage for loading the image, too.
So we need a soft link to fitImage.
Can you set the FITIMAGE_IMAGE_LINK_NAME ??= fitImage as default?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

sure (-:

Refactor the do_deploy to allow a class inheriting recipe to change
the file- and symlink-names of the created artifacts through the new
variables:

  FITIMAGE_IMAGE_BASE_NAME for the fitimage binary
  FITIMAGE_IMAGE_LINK_NAME
  FITIMAGE_ITS_BASE_NAME and the manifest file
  FITIMAGE_ITS_LINK_NAME

Signed-off-by: Johannes Schneider <johannes.schneider@leica-geosystems.com>
@js731ca js731ca force-pushed the scjoh/fitimage-filenames branch from 8f4cd03 to b4a2979 Compare November 18, 2024 09:45
@js731ca
Copy link
Contributor Author

js731ca commented Nov 18, 2024

v1.1: reverting back of the default: FITIMAGE_IMAGE_LINK_NAME ??= "fitImage"

@js731ca js731ca requested a review from motto-phytec November 18, 2024 09:47
Copy link
Contributor

@motto-phytec motto-phytec left a comment

Choose a reason for hiding this comment

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

looks good for me. thank you

@smk-embedded
Copy link
Collaborator

applied internally, will go through ci, build, testing and be public in a couple of days

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