summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZelan Zou <zelan.zou@nxp.com>2026-01-07 18:40:14 +0800
committerZelan Zou <zelan.zou@nxp.com>2026-02-11 14:35:21 +0800
commitda7577940bcd01888ab396b392955f81773b1df5 (patch)
treec91b651c2b5d07635f529dafa22187da1006cb10
parent3763572a265c6b0226b3dbf524b987667ab841e8 (diff)
downloadmeta-freescale-da7577940bcd01888ab396b392955f81773b1df5.tar.gz
ceetm: Update to lf-6.12.49-2.2.0
Add patch to fix build error with gcc15 commit log : 46b3565 (HEAD -> master, tag: lf-6.18.y-1.0.0-tc1, tag: lf-6.18.2-1.0.0-rc1, tag: lf-6.12.49-2.2.0-rc2, tag: lf-6.12.49-2.2.0-rc1, tag: lf-6.12.49-2.2.0, tag: lf-6.12.34-2.1.0-rc2, tag: lf-6.12.34-2.1.0-rc1, tag: lf-6.12.34-2.1.0, tag: lf-6.12.3-1.0.0-rc3, tag: lf-6.12.3-1.0.0, tag: lf-6.12.20-2.0.0-rc2, tag: lf-6.12.20-2.0.0-rc1, tag: lf-6.12.20-2.0.0, origin/master, origin/jira/YOCIMX-8305, origin/HEAD) ceetm: replace print_rate() with tc_print_rate() 8c1ba25 ceetm: adjust all qdisc_util function pointers to match those in latest iproute2 e4423ad Only set CC in case it's not already set Signed-off-by: Zelan Zou <zelan.zou@nxp.com>
-rw-r--r--recipes-kernel/ceetm/ceetm/0001-Makefile-Fix-build-error-with-gcc15-YOCIMX-8305.patch28
-rw-r--r--recipes-kernel/ceetm/ceetm/0001-use-new-api-tc_print_rate.patch71
-rw-r--r--recipes-kernel/ceetm/ceetm_git.bb4
3 files changed, 30 insertions, 73 deletions
diff --git a/recipes-kernel/ceetm/ceetm/0001-Makefile-Fix-build-error-with-gcc15-YOCIMX-8305.patch b/recipes-kernel/ceetm/ceetm/0001-Makefile-Fix-build-error-with-gcc15-YOCIMX-8305.patch
new file mode 100644
index 000000000..93b375eaa
--- /dev/null
+++ b/recipes-kernel/ceetm/ceetm/0001-Makefile-Fix-build-error-with-gcc15-YOCIMX-8305.patch
@@ -0,0 +1,28 @@
1From 9049175076c4d6706e6264f894680d5d1845e409 Mon Sep 17 00:00:00 2001
2From: Zelan Zou <zelan.zou@nxp.com>
3Date: Fri, 13 Sep 2024 04:22:13 +0200
4Subject: [PATCH] Makefile: Fix build error with gcc15 [YOCIMX-8305]
5
6Upstream-Status: Pending
7
8Signed-off-by: Zelan Zou <zelan.zou@nxp.com>
9---
10 Makefile | 2 +-
11 1 file changed, 1 insertion(+), 1 deletion(-)
12
13diff --git a/Makefile b/Makefile
14index 9e55dad..60f8f7f 100644
15--- a/Makefile
16+++ b/Makefile
17@@ -8,7 +8,7 @@ LDFLAGS += -Wl,-export-dynamic
18 # if you are not using flex-builder. Download the iproute2 sources for the
19 # desired version and point to those instead.
20 ifneq ($(IPROUTE2_DIR),)
21-CFLAGS += -I$(IPROUTE2_DIR) -I$(IPROUTE2_DIR)/include -I$(IPROUTE2_DIR)/usr/include/ -I$(IPROUTE2_DIR)/usr/include/include
22+CFLAGS += -I$(IPROUTE2_DIR) -I$(IPROUTE2_DIR)/include -I$(IPROUTE2_DIR)/usr/include/ -I$(IPROUTE2_DIR)/usr/include/include -Wno-error=incompatible-pointer-types
23 endif
24
25 MODDESTDIR := $(DESTDIR)/usr/lib/tc
26--
272.25.1
28
diff --git a/recipes-kernel/ceetm/ceetm/0001-use-new-api-tc_print_rate.patch b/recipes-kernel/ceetm/ceetm/0001-use-new-api-tc_print_rate.patch
deleted file mode 100644
index bd077f8ac..000000000
--- a/recipes-kernel/ceetm/ceetm/0001-use-new-api-tc_print_rate.patch
+++ /dev/null
@@ -1,71 +0,0 @@
1From 1eeee62be6f4f4c0564a1ebbf47b5d1ebd7ab282 Mon Sep 17 00:00:00 2001
2From: Ting Liu <ting.liu@nxp.com>
3Date: Thu, 15 Apr 2021 14:43:31 +0530
4Subject: [PATCH] use new api tc_print_rate
5
6Fix the build issue due to api change in iproute2:
7| dpaa1_ceetm.c:637:4: error: too few arguments to function 'print_rate'
8| print_rate(buf, sizeof(buf), qopt->rate);
9| ^~~~~~~~~~
10
11Upstream-Status: Pending
12
13Signed-off-by: Ting Liu <ting.liu@nxp.com>
14---
15 dpaa1_ceetm.c | 12 ++++--------
16 dpaa2_ceetm.c | 6 ++----
17 2 files changed, 6 insertions(+), 12 deletions(-)
18
19diff --git a/dpaa1_ceetm.c b/dpaa1_ceetm.c
20index 15a2cd8..347e79a 100644
21--- a/dpaa1_ceetm.c
22+++ b/dpaa1_ceetm.c
23@@ -634,11 +634,9 @@ int dpaa1_ceetm_print_qopt(struct qdisc_util *qu, FILE *f,
24 fprintf(f, "type root");
25
26 if (qopt->shaped) {
27- print_rate(buf, sizeof(buf), qopt->rate);
28- fprintf(f, " shaped rate %s ", buf);
29+ tc_print_rate(PRINT_FP, NULL, " shaped rate %s ", qopt->rate);
30
31- print_rate(buf, sizeof(buf), qopt->ceil);
32- fprintf(f, "ceil %s ", buf);
33+ tc_print_rate(PRINT_FP, NULL, "ceil %s ", qopt->ceil);
34
35 fprintf(f, "overhead %u ", qopt->overhead);
36
37@@ -692,11 +690,9 @@ int dpaa1_ceetm_print_copt(struct qdisc_util *qu, FILE *f,
38 fprintf(f, "type root ");
39
40 if (copt->shaped) {
41- print_rate(buf, sizeof(buf), copt->rate);
42- fprintf(f, "shaped rate %s ", buf);
43+ tc_print_rate(PRINT_FP, NULL, "shaped rate %s ", copt->rate);
44
45- print_rate(buf, sizeof(buf), copt->ceil);
46- fprintf(f, "ceil %s ", buf);
47+ tc_print_rate(PRINT_FP, NULL, "ceil %s ", copt->ceil);
48
49 } else {
50 fprintf(f, "unshaped tbl %d", copt->tbl);
51diff --git a/dpaa2_ceetm.c b/dpaa2_ceetm.c
52index 6b1b033..0505046 100644
53--- a/dpaa2_ceetm.c
54+++ b/dpaa2_ceetm.c
55@@ -516,11 +516,9 @@ int dpaa2_ceetm_print_copt(struct qdisc_util *qu, FILE *f, struct rtattr *opt)
56 fprintf(f, "type root ");
57
58 if (copt->shaped) {
59- print_rate(buf, sizeof(buf), copt->shaping_cfg.cir);
60- fprintf(f, "CIR %s ", buf);
61+ tc_print_rate(PRINT_FP, NULL, "CIR %s ", copt->shaping_cfg.cir);
62
63- print_rate(buf, sizeof(buf), copt->shaping_cfg.eir);
64- fprintf(f, "EIR %s ", buf);
65+ tc_print_rate(PRINT_FP, NULL, "EIR %s ", copt->shaping_cfg.eir);
66
67 fprintf(f, "CBS %d EBS %d ", copt->shaping_cfg.cbs, copt->shaping_cfg.ebs);
68
69--
702.25.1
71
diff --git a/recipes-kernel/ceetm/ceetm_git.bb b/recipes-kernel/ceetm/ceetm_git.bb
index 947a31280..2356b8db4 100644
--- a/recipes-kernel/ceetm/ceetm_git.bb
+++ b/recipes-kernel/ceetm/ceetm_git.bb
@@ -3,9 +3,9 @@ LICENSE = "GPL-2.0-only"
3LIC_FILES_CHKSUM = "file://LICENSE;md5=b234ee4d69f5fce4486a80fdaf4a4263" 3LIC_FILES_CHKSUM = "file://LICENSE;md5=b234ee4d69f5fce4486a80fdaf4a4263"
4 4
5SRC_URI = "git://github.com/nxp-qoriq/ceetm;protocol=https;nobranch=1" 5SRC_URI = "git://github.com/nxp-qoriq/ceetm;protocol=https;nobranch=1"
6SRCREV = "27218bc625e83458db2301f6c07de133cb5f6792" 6SRCREV = "46b3565a48ca20f90ad601cef8250cdd35f18b22"
7SRC_URI:append = " file://0001-Makefile-update-CFLAGS.patch \ 7SRC_URI:append = " file://0001-Makefile-update-CFLAGS.patch \
8 file://0001-use-new-api-tc_print_rate.patch \ 8 file://0001-Makefile-Fix-build-error-with-gcc15-YOCIMX-8305.patch \
9" 9"
10DEPENDS = "iproute2" 10DEPENDS = "iproute2"
11 11