Jump to content

[Armbian build PR] - artifacts: introduce `calculate_hash_for_variables()` which normalizes the input; use in kernel/uboot/etc


Recommended Posts

Posted

artifacts: introduce calculate_hash_for_variables() which normalizes the input; use in kernel/uboot/etc

Does not look like it, but this is a bugfix -- UBOOT_TARGET_MAP might contain $SRC (due to BL31=, etc) and that is hashed into something only ever matches by accident Also fixes artifact-armbian-desktop vs appgroups/config_base differences

  • some hashed variables might contain "${SRC}", so hashes never match, unless built in Docker   - this strips away SRC from all vars and adds debugging so we can detect more later.
  • artifact-uboot: include more variables into hash, for ATF & rk stuff
  • artifact-armbian-desktop:   - hashed vars actually contain /armbian in different context, skip normalization in this case   - include results of relevant aggregation into artifact_input_variables     - otherwise: desktops with different appgroups/configs lead to build failures in pipeline     - will cause warnings in JSON preparation step, if more than one appgroups/config combo is targeted, since repo can only have one

View the full article

×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines