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

lmp/build: adapt post-build processing to scarthgap #313

Closed
wants to merge 4 commits into from

Conversation

quaresmajose
Copy link
Member

@quaresmajose quaresmajose commented Nov 3, 2023

lmp/build: check availability of the image manifest

  • Skip the loop if the disto image manifest not exist
  • Fail if the manifest file pattern not exist
  • Consider only the symbolic links of the images manifest
  • From the licenses deploy dir of the image:
    • Copy the license.manifest, if not possible fail
    • Copy the image_license.manifest

| + for img in ${DEPLOY_DIR_IMAGE}/*${MACHINE}.manifest
| ++ basename '/srv/oe/build/deploy/images/intel-corei7-64/*intel-corei7-64.manifest'
| ++ sed -e s/.manifest//
| + image_name='*intel-corei7-64'
| ++ readlink '/srv/oe/build/deploy/images/intel-corei7-64/*intel-corei7-64.manifest'
| ++ sed -e 's/\..*manifest//'
| + image_name_id=
| Script completed with error(s)

lmp/build: don't fail when the license.manifest not found
There is a bug in oe-core and sometimes the lic folder is empty.
https://bugzilla.yoctoproject.org/show_bug.cgi?id=15394

The intention of this change is to document and be reverted once
the problem is fixed.

@quaresmajose
Copy link
Member Author

quaresmajose commented Nov 3, 2023

Validated with lmp-base distro

@quaresmajose
Copy link
Member Author

In this case the file not exist and so the glob will not expand

+ for img in ${DEPLOY_DIR_IMAGE}/*${MACHINE}.manifest
+ '[' -e '/srv/oe/build/deploy/images/intel-corei7-64/*intel-corei7-64.manifest' ']'
+ status 'Image manifest not found, license manifest will be skipped'
++ date '+%F %T'
+ echo == 2024-09-30 17:10:08 Image manifest not found, license manifest will be skipped
+ break
== 2024-09-30 17:10:08 Image manifest not found, license manifest will be skipped

@ricardosalveti
Copy link
Member

What causes the image manifest to not be generated?

@quaresmajose
Copy link
Member Author

Good question, it could be that it is generated with a different name but I don't know.
In the lmp-base distro this happens.

@quaresmajose
Copy link
Member Author

instead of having a message we can make this an error and so it becomes clearer what happened.

@ricardosalveti
Copy link
Member

We had working lmp-base ci runs before as well, which is why the question.

@quaresmajose
Copy link
Member Author

I will debug it more to get the reason.

@quaresmajose quaresmajose marked this pull request as draft October 1, 2024 16:16
@quaresmajose quaresmajose removed the request for review from a team October 4, 2024 11:38
- Skip the loop if the disto image manifest not exist
- Fail if the manifest file pattern not exist
- Consider only the symbolic links of the images manifest
- From the licenses deploy dir of the image:
 - Copy the license.manifest, if not possible fail
 - Copy the image_license.manifest

| + for img in ${DEPLOY_DIR_IMAGE}/*${MACHINE}.manifest
| ++ basename '/srv/oe/build/deploy/images/intel-corei7-64/*intel-corei7-64.manifest'
| ++ sed -e s/.manifest//
| + image_name='*intel-corei7-64'
| ++ readlink '/srv/oe/build/deploy/images/intel-corei7-64/*intel-corei7-64.manifest'
| ++ sed -e 's/\..*manifest//'
| + image_name_id=
| Script completed with error(s)

Signed-off-by: Jose Quaresma <[email protected]>
There is a bug in oe-core and sometimes the lic folder is empty.
https://bugzilla.yoctoproject.org/show_bug.cgi?id=15394

The intention of this change is to document and be reverted once
the problem is fixed.

Signed-off-by: Jose Quaresma <[email protected]>
@quaresmajose quaresmajose changed the title lmp/build: check availability of the image manifest lmp/build: adapt post-build processing to scarthgap Oct 4, 2024
Use find to get the packages with GPL licenses, because there are bsp with a diferent
deploy licenses directory tree and with find we make it independent of the directory tree.

Signed-off-by: Jose Quaresma <[email protected]>
It will be usefull for debug broken builds

Signed-off-by: Jose Quaresma <[email protected]>
@quaresmajose
Copy link
Member Author

I will do all of this scarthgap adapt in a new PR

@quaresmajose quaresmajose deleted the license branch October 7, 2024 15:50
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