-
Notifications
You must be signed in to change notification settings - Fork 0
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
recipes-zarhus: images: zarhus-base-image-debug: delete #17
base: develop
Are you sure you want to change the base?
Conversation
@m-iwanicki, it does work now, I suppose I messed up with overrides to But here is another problem to solve, Advanced oelint..........................................................Failed
- hook id: oelint-adv
- exit code: 2
/home/danillklimuk/Projects/Zarhus/meta-zarhus/recipes-zarhus/images/zarhus-base-image.inc:4:error:oelint.vars.specific:'IMAGE_FEATURES' is set specific to ['dbg'], but isn't known from PACKAGES, MACHINE, DISTRO or resources
/home/danillklimuk/Projects/Zarhus/meta-zarhus/recipes-zarhus/images/zarhus-base-image.inc:14:error:oelint.vars.specific:'IMAGE_INSTALL' is set specific to ['dbg'], but isn't known from PACKAGES, MACHINE, DISTRO or resources |
It is strange thoulg that it does not argue about your changes in |
@DaniilKl I pushed fix for oelint error (we have to inform oelint about our overrides as it might not know them). We can generate correct format in kas: sudo apt update
sudo apt install jq
bitbake-getvar --quiet --value OVERRIDES | tr ':' '\n' | jq -Rn '{replacements:{ distros: [inputs]}}' > /repo/.oelint-custom-overrides.json Also I think this part is needed: EXTRA_USERS_PARAMS = "usermod -p '${ROOT_PASSWD}' root;"
+EXTRA_USERS_PARAMS:dbg = "" This way dbg version won't have password. Not sure if there won't be problems later when meta-zarhus will grow but this split on debug/prod target has downsides e.g. when including meta-zarhus in other layers we can't create |
be5162f
to
8724bf4
Compare
@m-iwanicki, thank you! |
This way the entire variable |
Yes. |
I am a bit worried here, as well. Having two recipes is advantageous to me, not only from the point as @m-iwanicki has mentioned, but we also have different image names. With this proposal, I cannot guess just from the image name, if it was debug or production image. Debug features can then easily sneak into production image, which is not a good thing to happen. Maybe w can fix the original problem in another way? |
8724bf4
to
899b72e
Compare
Some rebasing. |
And I am a bit worried here.
But
We could make a note in documentation about this override and features it provides, so users will be aware of it. Users are also aware of it during building when they provide
|
Reduce amount of surplus code. |
We can use overrides to add debug functionalities to images, this will decrease amount of images files, improve scalability and maintanance. Signed-off-by: Daniil Klimuk <daniil.klimuk@3mdeb.com>
We can use overrides to add debug functionalities to images, this will decrease amount of images files, improve scalability and maintenance. This has been originally proposed here #15 (comment).