Skip to contentSkip to conversation

core: splimplify locales whitelisting

PATCH New Yann E. MORIN 2 participants 2 messages Jun 15, 2020 – Jun 18, 2020 Kbuild

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 core: splimplify locales whitelisting

Cc Peter Korsgaard <[email protected]>
---
 Makefile | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
Makefile +1 -2
index d2f3455bd1..fae3b2a1ba 100644
@@ -695,8 +695,7 @@ LOCALE_NOPURGE = $(call qstrip,$(BR2_ENABLE_LOCALE_WHITELIST))
 # in the whitelist file. If it doesn't, kill it.
 # Finally, specifically for X11, regenerate locale.dir from the whitelist.
 define PURGE_LOCALES
-	rm -f $(LOCALE_WHITELIST)
-	for i in $(LOCALE_NOPURGE) locale-archive; do echo $$i >> $(LOCALE_WHITELIST); done
+	printf '%s\n' $(LOCALE_NOPURGE) locale-archive > $(LOCALE_WHITELIST)
 
 	for dir in $(addprefix $(TARGET_DIR),/usr/share/locale /usr/share/X11/locale /usr/lib/locale); \
 	do \
Signature · 1 line
2.20.1
#1 lore raw

PATCH 1/1 core: splimplify locales whitelisting

Quoted 5 lines · On Mon, 15 Jun 2020 13:16:43 +0200 "Yann E. MORIN" <[email protected]>…
Cc Peter Korsgaard <[email protected]>
---
 Makefile | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

Applied to master, thanks.

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com