blob: e0a22c5bb305bd74a98c5d04858b94f5bf0f8a04 [file] [log] [blame]
Andrew Geisslerc926e172021-05-07 16:11:35 -05001From bff7f16f7f41de8df67beb03722f235828ef2249 Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com>
3Date: Mon, 3 May 2021 15:48:19 -0700
4Subject: [PATCH] gen_build_files: Use C locale when calling sed on globbed files
5
6sort order is different based on chosen locale and also default shell
7being bash or dash
8
9This sets the environment variable LC_ALL to the value C, which will
10enforce bytewise sorting, irrespective of the shell
11
12Upstream-Status: Pending
13Signed-off-by: Khem Raj <raj.khem@gmail.com>
14---
15 scripts/gen_build_files.sh | 2 +-
16 1 file changed, 1 insertion(+), 1 deletion(-)
17
18--- a/scripts/gen_build_files.sh
19+++ b/scripts/gen_build_files.sh
20@@ -4,6 +4,8 @@
21 # but users complain that many sed implementations
22 # are misinterpreting --.
23
24+export LC_ALL=C
25+
26 test $# -ge 2 || { echo "Syntax: $0 SRCTREE OBJTREE"; exit 1; }
27
28 # cd to objtree