Merge changes from topic "product-flags2" into main

* changes:
  Reapply "release_config: build flags can be lists"
  Reapply "Add support for product-specific build flags"