[LEDE-DEV] [PATCH] scripts: fix build warning when overriding packages

Zefir Kurtisi zefir.kurtisi at neratec.com
Wed Oct 12 08:50:56 PDT 2016


If core packages are overridden, CONFIG_OVERRIDE_PKGS is set
based on the scan order of packages, which eventually causes
that config value to be modified on each build and with
that causes the build process to warn for configuration
being out of sync.

This commit changes the CONFIG_OVERRIDE_PKGS to be sorted
and prevents that false warning.

Signed-off-by: Zefir Kurtisi <zefir.kurtisi at neratec.com>
---
 scripts/package-metadata.pl | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/scripts/package-metadata.pl b/scripts/package-metadata.pl
index 44494ef..0b8f983 100755
--- a/scripts/package-metadata.pl
+++ b/scripts/package-metadata.pl
@@ -348,7 +348,7 @@ sub print_package_overrides() {
 	keys %overrides > 0 or return;
 	print "\tconfig OVERRIDE_PKGS\n";
 	print "\t\tstring\n";
-	print "\t\tdefault \"".join(" ", keys %overrides)."\"\n\n";
+	 print "\t\tdefault \"".join(" ", sort keys %overrides)."\"\n\n";
 }
 
 sub gen_package_config() {
-- 
2.7.4




More information about the Lede-dev mailing list