grub-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH 1/3] gentpl.py: ensure output is deterministic


From: Alexander Kanavin
Subject: [PATCH 1/3] gentpl.py: ensure output is deterministic
Date: Thu, 1 Jun 2023 09:38:18 +0200

The output of the SOURCES lines in grub-core/Makefile.core.am, generated
from grub-core/Makefile.core.def with gentpl.py is not deterministic due to
missing sorting of the list used to generate it. Add such a sort.

Signed-off-by: Alexander Kanavin <alex@linutronix.de>
---
 gentpl.py | 1 +
 1 file changed, 1 insertion(+)

diff --git a/gentpl.py b/gentpl.py
index d0470b3b2..bfab2113a 100644
--- a/gentpl.py
+++ b/gentpl.py
@@ -569,6 +569,7 @@ def foreach_platform_value(defn, platform, suffix, closure):
     for group in RMAP[platform]:
         for value in defn.find_all(group + suffix):
             r.append(closure(value))
+    r.sort()
     return ''.join(r)
 
 def platform_conditional(platform, closure):
-- 
2.30.2




reply via email to

[Prev in Thread] Current Thread [Next in Thread]