scripts: target-metadata don't add PROFILES twice
authorPaul Spooren <mail@aparcar.org>
Wed, 15 Apr 2020 00:49:54 +0000 (14:49 -1000)
committerPaul Spooren <mail@aparcar.org>
Fri, 15 Jan 2021 08:42:21 +0000 (22:42 -1000)
commit4dad3244297d8315b25ef029286681be4e7123a0
tree776dc5429e2fd01dfbcc68890a332457ce3b303f
parent412dc26c99beeeeace3e56321fc392e590f4144d
scripts: target-metadata don't add PROFILES twice

Since 4ee3cf2b5a profiles with alternative vendor names may appear
multiple times in `tmp/.targetinfo` or `.targetinfo` (for
ImageBuilders).

The `target-metadata.pl` script adds these profiles then twice to
`PROFILE_NAMES` and the ImageBuilder show the profile twice when running
`make info`.

This patch removes duplicate profile IDs and only adds them once to
`.profiles.mk`.

Signed-off-by: Paul Spooren <mail@aparcar.org>
scripts/target-metadata.pl