diff options
-rw-r--r-- | recipes-devtools/cst/cst/0001-gen_otpmk_drbg-fails-compilation-due-to-uninitialize.patch | 28 | ||||
-rw-r--r-- | recipes-devtools/cst/cst_git.bb | 6 |
2 files changed, 32 insertions, 2 deletions
diff --git a/recipes-devtools/cst/cst/0001-gen_otpmk_drbg-fails-compilation-due-to-uninitialize.patch b/recipes-devtools/cst/cst/0001-gen_otpmk_drbg-fails-compilation-due-to-uninitialize.patch new file mode 100644 index 00000000..0dc5c3a6 --- /dev/null +++ b/recipes-devtools/cst/cst/0001-gen_otpmk_drbg-fails-compilation-due-to-uninitialize.patch | |||
@@ -0,0 +1,28 @@ | |||
1 | From 6eb82ed1ba56c398e89f04fb848c5f3c4543e772 Mon Sep 17 00:00:00 2001 | ||
2 | From: Chunrong Guo <chunrong.guo@nxp.com> | ||
3 | Date: Wed, 20 Sep 2017 13:22:34 +0800 | ||
4 | Subject: [PATCH] gen_otpmk_drbg: fails compilation due to uninitialized | ||
5 | variables | ||
6 | |||
7 | Upstream-Status: Submitted | ||
8 | Signed-off-by: Chunrong Guo <chunrong.guo@nxp.com> | ||
9 | --- | ||
10 | tools/key_generation/gen_otpmk_drbg.c | 2 +- | ||
11 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
12 | |||
13 | diff --git a/tools/key_generation/gen_otpmk_drbg.c b/tools/key_generation/gen_otpmk_drbg.c | ||
14 | index 6465367..33e5ea6 100644 | ||
15 | --- a/tools/key_generation/gen_otpmk_drbg.c | ||
16 | +++ b/tools/key_generation/gen_otpmk_drbg.c | ||
17 | @@ -142,7 +142,7 @@ int main(int argc, char *argv[]) | ||
18 | { | ||
19 | char otpmk_in[2]; | ||
20 | int c, i, l, ret; | ||
21 | - char *string; | ||
22 | + char *string = NULL; | ||
23 | char urand_flag = 0; | ||
24 | |||
25 | printf("\n\t#----------------------------------------------------#"); | ||
26 | -- | ||
27 | 2.7.4 | ||
28 | |||
diff --git a/recipes-devtools/cst/cst_git.bb b/recipes-devtools/cst/cst_git.bb index fcae0c79..dc0ae5e8 100644 --- a/recipes-devtools/cst/cst_git.bb +++ b/recipes-devtools/cst/cst_git.bb | |||
@@ -9,8 +9,10 @@ RDEPENDS_${PN} = "bash" | |||
9 | 9 | ||
10 | inherit kernel-arch | 10 | inherit kernel-arch |
11 | 11 | ||
12 | SRC_URI = "git://github.com/qoriq-open-source/cst.git;nobranch=1" | 12 | SRC_URI = "git://github.com/qoriq-open-source/cst.git;nobranch=1 \ |
13 | SRCREV = "6424157985568df3f42a46e24222e38671455ddb" | 13 | file://0001-gen_otpmk_drbg-fails-compilation-due-to-uninitialize.patch \ |
14 | " | ||
15 | SRCREV = "1afb40c13097fc9e8a641aa5d0420498fea01c65" | ||
14 | 16 | ||
15 | S = "${WORKDIR}/git" | 17 | S = "${WORKDIR}/git" |
16 | 18 | ||