RFC Migrate IMAGE_FORMAT_LEGACY to Kconfig
Get series with b4
b4 am [email protected]Versions newest first
- v1 RFC Latest0 of 1 patch 0 repliesNew
Patches in v1 No applies recorded yet
The patch the cover letter announces is not in this archive.
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [U-Boot] [RFC PATCH v1 0/1] Migrate IMAGE_FORMAT_LEGACY to Kconfig
Quoted 8 lines · Alex Kiernan
On the face of it, this is a straightforward moveconfig, but because of how
CONFIG_FIT_SIGNATURE,CONFIG_IMAGE_FORMAT_LEGACYandCONFIG_DISABLE_IMAGE_LEGACYinteracted when you enabledCONFIG_FIT_SIGNATURE, you gotCONFIG_IMAGE_FORMAT_LEGACYdisabled immediately unless you had some way of explicitly enabling it elsewhere.
Quoted 6 lines
Kconfigdoesn't give us this -CONFIG_IMAGE_FORMAT_LEGACYstarts off enabled,CONFIG_FIT_SIGNATUREstarts off disabled and if you enableCONFIG_FIT_SIGNATUREthenCONFIG_IMAGE_FORMAT_LEGACYstays enabled.Is there some way to preserve the existing behaviour through
Kconfigthat I've failed to figure out?
When I do these, it's a multi-step moveconfig.py that goes something like:
- Introduce FOO (no deps)
- moveconfig.py -y it.
- Introduce BAR (no deps)
- moveconfig.py -y it.
- for FILE in configs/*defconfig;do grep -q FOO $FILE || echo '# CONFIG_FOO is not set' >> $FILE;done
- Repeat the for loop but for BAR.
- Introduce deps
- moveconfig.py -sC
- Build before/after for a few boards that I know are tricky, use buildman -SCvel/Ssdel to confirm size changes didn't happen.
- If good, world-build checking sizes.
And in some cases like this particular one, there might need to be an initial first comment to invert the logic, and as that can be tricky when adding a new option that _should_ be default y, first I add it without default y, moveconfig.py -y it, for loop like above, then add default y and moveconfig.py -s.
Signature · 8 lines
Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 819 bytes Desc: not available URL: <http://lists.denx.de/pipermail/u-boot/attachments/20180419/9b794dc9/attachment.sig>