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

variscite_ubi: Do not export shell variables when not needed #36

Open
wants to merge 1 commit into
base: mickledore-var01
Choose a base branch
from

Conversation

kraj
Copy link

@kraj kraj commented Nov 22, 2023

Since this file is included by machine conf, means these variables make into all kind of recipes e.g. native, nativesdk and that makes whole sstate specific to the machine and not usable across other projects/machines. e.g. if we have imx8 and imx6 dart based products it results in recompiling everything for each of them and thus keep two copies of sstate which is inefficient.

Fixes
bitbake-diffsigs -t m4-native do_configure
Task dependencies changed from:
...
changed items: frozenset({'UBINIZE_ARGS_256kbpeb', 'MKUBIFS_ARGS_128kbpeb', 'MKUBIFS_ARGS_256kbpeb', 'UBINIZE_ARGS_128kbpeb'}) Dependency on Variable MKUBIFS_ARGS_128kbpeb was removed Dependency on Variable MKUBIFS_ARGS_256kbpeb was removed Dependency on Variable UBINIZE_ARGS_128kbpeb was removed Dependency on Variable UBINIZE_ARGS_256kbpeb was removed

Since this file is included by machine conf, means these variables make
into all kind of recipes e.g. native, nativesdk and that makes whole
sstate specific to the machine and not usable across other
projects/machines. e.g. if we have imx8 and imx6 dart based products it
results in recompiling everything for each of them and thus keep two
copies of sstate which is inefficient.

Fixes
bitbake-diffsigs -t m4-native do_configure
Task dependencies changed from:
...
changed items: frozenset({'UBINIZE_ARGS_256kbpeb', 'MKUBIFS_ARGS_128kbpeb', 'MKUBIFS_ARGS_256kbpeb', 'UBINIZE_ARGS_128kbpeb'})
Dependency on Variable MKUBIFS_ARGS_128kbpeb was removed
Dependency on Variable MKUBIFS_ARGS_256kbpeb was removed
Dependency on Variable UBINIZE_ARGS_128kbpeb was removed
Dependency on Variable UBINIZE_ARGS_256kbpeb was removed

Signed-off-by: Khem Raj <[email protected]>
@kraj
Copy link
Author

kraj commented Nov 22, 2023

This is needed on all branches btw.

kraj added a commit to YoeDistro/meta-clang that referenced this pull request Nov 22, 2023
The problem is in BSP layer [1], these variable should not be exported
universally moreover its not needed as well.

[1] varigit/meta-variscite-bsp-imx#36
This reverts commit 288f752.
kraj added a commit to kraj/meta-clang that referenced this pull request Nov 22, 2023
The problem is in BSP layer [1], these variable should not be exported
universally moreover its not needed as well.

[1] varigit/meta-variscite-bsp-imx#36
This reverts commit 288f752.
@FrancescoFerraro
Copy link
Contributor

FrancescoFerraro commented Nov 26, 2023

@nsdrude I tested the patch on kirkstone and i see the following error:

ERROR: fsl-image-gui-1.0-r0 do_image_multiubi: ExecutionError('/home/ff/ssd-dev/var/yocto/kirkstone/build_xwayland.mx6/tmp/work/var_som_mx6-fslc-linux-gnueabi/fsl-image-gui/1.0-r0/temp/run.do_image_multiubi.2012556', 1, None, None)
ERROR: Logfile of failure stored in: /home/ff/ssd-dev/var/yocto/kirkstone/build_xwayland.mx6/tmp/work/var_som_mx6-fslc-linux-gnueabi/fsl-image-gui/1.0-r0/temp/log.do_image_multiubi.2012556
ERROR: Task (/home/ff/ssd-dev/var/yocto/kirkstone/sources/meta-variscite-sdk/recipes-fsl/images/fsl-image-gui.bb:do_image_multiubi) failed with exit code '1'

@nsdrude
Copy link
Contributor

nsdrude commented Feb 28, 2024

@kraj do you plan to fix this patch based on @FrancescoFerraro's feedback, or should we close this pull request?

@kraj
Copy link
Author

kraj commented Feb 28, 2024

@nsdrude I tested the patch on kirkstone and i see the following error:

ERROR: fsl-image-gui-1.0-r0 do_image_multiubi: ExecutionError('/home/ff/ssd-dev/var/yocto/kirkstone/build_xwayland.mx6/tmp/work/var_som_mx6-fslc-linux-gnueabi/fsl-image-gui/1.0-r0/temp/run.do_image_multiubi.2012556', 1, None, None)
ERROR: Logfile of failure stored in: /home/ff/ssd-dev/var/yocto/kirkstone/build_xwayland.mx6/tmp/work/var_som_mx6-fslc-linux-gnueabi/fsl-image-gui/1.0-r0/temp/log.do_image_multiubi.2012556
ERROR: Task (/home/ff/ssd-dev/var/yocto/kirkstone/sources/meta-variscite-sdk/recipes-fsl/images/fsl-image-gui.bb:do_image_multiubi) failed with exit code '1'

Can you attach full logs which has details about the failure ?

@nsdrude
Copy link
Contributor

nsdrude commented Feb 28, 2024

@nsdrude I tested the patch on kirkstone and i see the following error:

ERROR: fsl-image-gui-1.0-r0 do_image_multiubi: ExecutionError('/home/ff/ssd-dev/var/yocto/kirkstone/build_xwayland.mx6/tmp/work/var_som_mx6-fslc-linux-gnueabi/fsl-image-gui/1.0-r0/temp/run.do_image_multiubi.2012556', 1, None, None)
ERROR: Logfile of failure stored in: /home/ff/ssd-dev/var/yocto/kirkstone/build_xwayland.mx6/tmp/work/var_som_mx6-fslc-linux-gnueabi/fsl-image-gui/1.0-r0/temp/log.do_image_multiubi.2012556
ERROR: Task (/home/ff/ssd-dev/var/yocto/kirkstone/sources/meta-variscite-sdk/recipes-fsl/images/fsl-image-gui.bb:do_image_multiubi) failed with exit code '1'

Can you attach full logs which has details about the failure ?

@kraj I don't have full logs, but I assume they can be reproduced by applying your patch and following these instructions: https://variwiki.com/index.php?title=Yocto_Build_Release&release=mx6-yocto-kirkstone-5.15.71_2.2.0-v1.0

$ repo init -u https://github.com/varigit/variscite-bsp-platform.git -b kirkstone -m kirkstone-5.15.71-2.2.0.xml
$ repo sync -j$(nproc)
$ MACHINE=var-som-mx6 DISTRO=fslc-xwayland . setup-environment build_xwayland
$ bitbake fsl-image-gui

@FrancescoFerraro please update if you followed a different process.

@FrancescoFerraro
Copy link
Contributor

FrancescoFerraro commented Feb 29, 2024

@nsdrude the followed process was as you wrote. I just updated the error messages due to i forgot one

ERROR: fsl-image-gui-1.0-r0 do_image_multiubi: MKUBIFS_ARGS and UBINIZE_ARGS have to be set, see http://www.linux-mtd.infradead.org/faq/ubifs.html for details
ERROR: fsl-image-gui-1.0-r0 do_image_multiubi: ExecutionError('/home/ff/ssd-dev/var/yocto/kirkstone/build_xwayland.mx6/tmp/work/var_som_mx6-fslc-linux-gnueabi/fsl-image-gui/1.0-r0/temp/run.do_image_multiubi.2323637', 1, None, None)
ERROR: Logfile of failure stored in: /home/ff/ssd-dev/var/yocto/kirkstone/build_xwayland.mx6/tmp/work/var_som_mx6-fslc-linux-gnueabi/fsl-image-gui/1.0-r0/temp/log.do_image_multiubi.2323637
ERROR: Task (/home/ff/ssd-dev/var/yocto/kirkstone/sources/meta-variscite-sdk/recipes-fsl/images/fsl-image-gui.bb:do_image_multiubi) failed with exit code '1'

@kraj
Copy link
Author

kraj commented Mar 2, 2024

@nsdrude the followed process was as you wrote. I just updated the error messages due to i forgot one

ERROR: fsl-image-gui-1.0-r0 do_image_multiubi: MKUBIFS_ARGS and UBINIZE_ARGS have to be set, see http://www.linux-mtd.infradead.org/faq/ubifs.html for details
ERROR: fsl-image-gui-1.0-r0 do_image_multiubi: ExecutionError('/home/ff/ssd-dev/var/yocto/kirkstone/build_xwayland.mx6/tmp/work/var_som_mx6-fslc-linux-gnueabi/fsl-image-gui/1.0-r0/temp/run.do_image_multiubi.2323637', 1, None, None)
ERROR: Logfile of failure stored in: /home/ff/ssd-dev/var/yocto/kirkstone/build_xwayland.mx6/tmp/work/var_som_mx6-fslc-linux-gnueabi/fsl-image-gui/1.0-r0/temp/log.do_image_multiubi.2323637
ERROR: Task (/home/ff/ssd-dev/var/yocto/kirkstone/sources/meta-variscite-sdk/recipes-fsl/images/fsl-image-gui.bb:do_image_multiubi) failed with exit code '1'

It has been fixed in poky upstream and also backported into kirkstone [1]

So please build with latest kirkstone, if you are using your own copy/branch based on kirkstone then cherry-pick it.

[1] https://git.yoctoproject.org/poky/commit/?h=kirkstone&id=32dd3d59c250f916115b339c29aa4dbfe50a3235

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