diff options
Diffstat (limited to 'meta-oe/recipes-security/keyutils/files/0001-tests-toolbox.inc.sh-update-regex-for-getting-endian.patch')
-rw-r--r-- | meta-oe/recipes-security/keyutils/files/0001-tests-toolbox.inc.sh-update-regex-for-getting-endian.patch | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/meta-oe/recipes-security/keyutils/files/0001-tests-toolbox.inc.sh-update-regex-for-getting-endian.patch b/meta-oe/recipes-security/keyutils/files/0001-tests-toolbox.inc.sh-update-regex-for-getting-endian.patch index 728f464331..769118e422 100644 --- a/meta-oe/recipes-security/keyutils/files/0001-tests-toolbox.inc.sh-update-regex-for-getting-endian.patch +++ b/meta-oe/recipes-security/keyutils/files/0001-tests-toolbox.inc.sh-update-regex-for-getting-endian.patch | |||
@@ -1,4 +1,4 @@ | |||
1 | From 935a31dd6f14bd1aff735495f0fdbae4ca05c695 Mon Sep 17 00:00:00 2001 | 1 | From b84ecc2e3e56a25a3efd56c8942ad6bab3ff9ba1 Mon Sep 17 00:00:00 2001 |
2 | From: Changqing Li <changqing.li@windriver.com> | 2 | From: Changqing Li <changqing.li@windriver.com> |
3 | Date: Fri, 2 Dec 2022 15:35:40 +0800 | 3 | Date: Fri, 2 Dec 2022 15:35:40 +0800 |
4 | Subject: [PATCH] tests/toolbox.inc.sh: update regex for getting endian | 4 | Subject: [PATCH] tests/toolbox.inc.sh: update regex for getting endian |
@@ -14,22 +14,22 @@ Signed-off-by: Changqing Li <changqing.li@windriver.com> | |||
14 | 1 file changed, 2 insertions(+), 2 deletions(-) | 14 | 1 file changed, 2 insertions(+), 2 deletions(-) |
15 | 15 | ||
16 | diff --git a/tests/toolbox.inc.sh b/tests/toolbox.inc.sh | 16 | diff --git a/tests/toolbox.inc.sh b/tests/toolbox.inc.sh |
17 | index 1964450..e827e20 100644 | 17 | index 8bf0db6f6d87..7ea2f253ba7d 100644 |
18 | --- a/tests/toolbox.inc.sh | 18 | --- a/tests/toolbox.inc.sh |
19 | +++ b/tests/toolbox.inc.sh | 19 | +++ b/tests/toolbox.inc.sh |
20 | @@ -13,10 +13,10 @@ | 20 | @@ -13,10 +13,10 @@ |
21 | echo === $OUTPUTFILE === | 21 | echo === $OUTPUTFILE === |
22 | 22 | ||
23 | endian=`file -L /proc/$$/exe` | 23 | endian=`file -L /proc/$$/exe` |
24 | -if expr "$endian" : '.* MSB \+\(executable\|shared object\).*' >&/dev/null | 24 | -if expr "$endian" : '.* MSB \+\(pie executable\|executable\|shared object\).*' >&/dev/null |
25 | +if expr "$endian" : '.* MSB .*\(executable\|shared object\).*' >&/dev/null | 25 | +if expr "$endian" : '.* MSB .*\(pie executable\|executable\|shared object\).*' >&/dev/null |
26 | then | 26 | then |
27 | endian=BE | 27 | endian=BE |
28 | -elif expr "$endian" : '.* LSB \+\(executable\|shared object\).*' >&/dev/null | 28 | -elif expr "$endian" : '.* LSB \+\(pie executable\|executable\|shared object\).*' >&/dev/null |
29 | +elif expr "$endian" : '.* LSB .*\(executable\|shared object\).*' >&/dev/null | 29 | +elif expr "$endian" : '.* LSB .*\(pie executable\|executable\|shared object\).*' >&/dev/null |
30 | then | 30 | then |
31 | endian=LE | 31 | endian=LE |
32 | else | 32 | else |
33 | -- | 33 | -- |
34 | 2.25.1 | 34 | 2.39.0 |
35 | 35 | ||