summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--meta-oe/recipes-support/imx-cst/imx-cst/0001-fix-missing-makefile-rule-dependency.patch45
-rw-r--r--meta-oe/recipes-support/imx-cst/imx-cst_3.4.0.bb1
2 files changed, 46 insertions, 0 deletions
diff --git a/meta-oe/recipes-support/imx-cst/imx-cst/0001-fix-missing-makefile-rule-dependency.patch b/meta-oe/recipes-support/imx-cst/imx-cst/0001-fix-missing-makefile-rule-dependency.patch
new file mode 100644
index 0000000000..ce7626ab31
--- /dev/null
+++ b/meta-oe/recipes-support/imx-cst/imx-cst/0001-fix-missing-makefile-rule-dependency.patch
@@ -0,0 +1,45 @@
1From 73509cb22ffab827dc3e3ccda2781683b8e8296d Mon Sep 17 00:00:00 2001
2From: =?UTF-8?q?K=C3=A9l=C3=A9fa=20San=C3=A9?= <kelefa.sane@smile.fr>
3Date: Mon, 2 Jun 2025 11:07:08 +0200
4Subject: [PATCH] fix missing makefile rule dependency
5
6During, the package build with an high CPU load we can face
7a build failed issue, caused by the header file cst_parser.h not present
8when compiling cst_lexer.c, which depend on cst_parser.h:
9| x86_64-poky-linux-gcc ... -c cst_lexer.c -o cst_lexer.d
10| ../../code/front_end/src/cst_lexer.l:21:10: fatal error:
11|cst_parser.h: No such file or directory
12| 21 | #include "cst_parser.h"
13| | ^~~~~~~~~~~~~~
14| compilation terminated.
15
16The file cst_parser.h is generated during compilation
17by a makefile rule which also generate cst_parser.c
18
19To fix the issue, makefile rule needed to be update
20in order for compilation of cst_lexer.c to be done,
21always after the generation of cst_parser.h and .c
22
23Upstream-Status: Submitted [https://community.nxp.com/t5/Other-NXP-Products/Package-imx-code-signing-tool-3-4-0-dfsg-2-build-issue/m-p/2108575#M28853]
24
25Signed-off-by: Kelefa Sane <kelefa.sane@smile.fr>
26---
27 code/build/make/rules.mk | 5 +++++
28 1 file changed, 5 insertions(+)
29
30diff --git a/code/build/make/rules.mk b/code/build/make/rules.mk
31index 7720e4b..239108b 100644
32--- a/code/build/make/rules.mk
33+++ b/code/build/make/rules.mk
34@@ -35,6 +35,11 @@ LFLAGS := -t
35 @echo "Link $@"
36 $(LD) $^ $(LDFLAGS) -o $@
37
38+# Compilation of cst_lexer.c require cst_parser.h
39+# (cst_lexer.c include cst_parser.h) which is generated
40+# by the same makefile genrating cst_parser.c
41+cst_lexer.o: cst_parser.c
42+
43 %.o: %.c
44 @echo "Compile $@"
45 # generate dependency file
diff --git a/meta-oe/recipes-support/imx-cst/imx-cst_3.4.0.bb b/meta-oe/recipes-support/imx-cst/imx-cst_3.4.0.bb
index c4b7ce032d..375c0b4e10 100644
--- a/meta-oe/recipes-support/imx-cst/imx-cst_3.4.0.bb
+++ b/meta-oe/recipes-support/imx-cst/imx-cst_3.4.0.bb
@@ -16,6 +16,7 @@ DEBIAN_PGK_VERSION = "${PV}+dfsg"
16 16
17SRC_URI = "\ 17SRC_URI = "\
18 ${DEBIAN_MIRROR}/main/i/${DEBIAN_PGK_NAME}/${DEBIAN_PGK_NAME}_${DEBIAN_PGK_VERSION}.orig.tar.xz \ 18 ${DEBIAN_MIRROR}/main/i/${DEBIAN_PGK_NAME}/${DEBIAN_PGK_NAME}_${DEBIAN_PGK_VERSION}.orig.tar.xz \
19 file://0001-fix-missing-makefile-rule-dependency.patch \
19" 20"
20 21
21SRC_URI[sha256sum] = "52ee3cee3bc500a42095f73c4584e223b4b9d2dfc1cd3e5df965c5952eba8c8d" 22SRC_URI[sha256sum] = "52ee3cee3bc500a42095f73c4584e223b4b9d2dfc1cd3e5df965c5952eba8c8d"