build,json: 3rd fixup of default_packages
authorPaul Spooren <mail@aparcar.org>
Thu, 25 Mar 2021 20:25:54 +0000 (10:25 -1000)
committerPaul Spooren <mail@aparcar.org>
Thu, 25 Mar 2021 20:25:54 +0000 (10:25 -1000)
commit7880a648484eb9d9cda87078660567f2e7e565e2
tree05fbb8e15c7465c4e3432a36c7462023f7bb3143
parentb36068d35d9edbd8ed6aaeed6f4c863bfe4cfbee
build,json: 3rd fixup of default_packages

This became a bit of a tragedy, caused by a corner cases which wasn't
put into account during testing. DEFAULT_PACKAGES are defined in
target/linux/<target>/Makefile but also in
target/linux/<target>/<subtarget>/target.mk.

The latter was no longer imported when using DUMP=1, however not using
DUMP=1 while running the Makefile in target/linux/<target>/ caused duplicate
packages in the list.

As a solution, which should have been used from day 0, `make` runs in
target/linux/ without DUMP=1, resulting in no duplicate packages and all
inclusions from include/target.mk, linux/target/<target>/{Makefile,
<subtarget>/target.mk}

While at it, sort the list of default packages.

Signed-off-by: Paul Spooren <mail@aparcar.org>
scripts/json_overview_image_info.py