From: Yann E. MORIN Date: Sun, 12 Nov 2017 17:45:39 +0000 (+0100) Subject: core: sort packages and eliminate duplicates in show-targets X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=203219ca93947bbf5d43edba89380ff41ef5a8a8;p=buildroot.git core: sort packages and eliminate duplicates in show-targets Currently, enabling more than one filesystem image will make 'show-targets' list a few host packages more than once. This is because all filesystem images add the same set of host-packages to their dependencies, which are then added as-is to the package list. Thus, host-fakeroot, host-makedevs and, if needed, host-mkpasswd will appear as many times as there are filesystem images enabled. Fix that by sorting the package list, thus eliminating duplicates from that list. Also sort the rootfs list for good measure. Sort the two separately, so that rootfses are last. Signed-off-by: "Yann E. MORIN" Cc: Thomas Petazzoni Cc: Arnout Vandecappelle Cc: Peter Korsgaard Reviewed-by: Romain Naour Signed-off-by: Thomas Petazzoni --- diff --git a/Makefile b/Makefile index ef10c90489..d52852153f 100644 --- a/Makefile +++ b/Makefile @@ -793,7 +793,7 @@ legal-info: dirs legal-info-clean legal-info-prepare $(foreach p,$(PACKAGES),$(p .PHONY: show-targets show-targets: - @echo $(PACKAGES) $(TARGETS_ROOTFS) + @echo $(sort $(PACKAGES)) $(sort $(TARGETS_ROOTFS)) .PHONY: show-build-order show-build-order: $(patsubst %,%-show-build-order,$(PACKAGES))