-
Notifications
You must be signed in to change notification settings - Fork 9
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
base: master
Are you sure you want to change the base?
Conversation
classes/fitimage.bbclass
Outdated
@@ -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}" |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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>
8f4cd03
to
b4a2979
Compare
v1.1: reverting back of the default: |
There was a problem hiding this 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
applied internally, will go through ci, build, testing and be public in a couple of days |
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