summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--meta-oe/recipes-connectivity/linuxptp/linuxptp/0001-include-string.h-for-strncpy.patch13
-rw-r--r--meta-oe/recipes-connectivity/linuxptp/linuxptp/0002-linuxptp-Use-CC-in-incdefs.sh.patch24
2 files changed, 26 insertions, 11 deletions
diff --git a/meta-oe/recipes-connectivity/linuxptp/linuxptp/0001-include-string.h-for-strncpy.patch b/meta-oe/recipes-connectivity/linuxptp/linuxptp/0001-include-string.h-for-strncpy.patch
index ae54469927..b117dcf670 100644
--- a/meta-oe/recipes-connectivity/linuxptp/linuxptp/0001-include-string.h-for-strncpy.patch
+++ b/meta-oe/recipes-connectivity/linuxptp/linuxptp/0001-include-string.h-for-strncpy.patch
@@ -1,18 +1,16 @@
1From ecfc8e287eb6811e42c4e2800a913822f554d7c8 Mon Sep 17 00:00:00 2001 1From 6120cee594c543d17ae015bc601012debcf57177 Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com> 2From: Khem Raj <raj.khem@gmail.com>
3Date: Wed, 31 Aug 2022 19:09:18 -0700 3Date: Mon, 23 Oct 2023 10:43:42 +0100
4Subject: [PATCH] include string.h for strncpy() 4Subject: [PATCH] include string.h for strncpy()
5 5
6Upstream-Status: Pending
7
8Signed-off-by: Khem Raj <raj.khem@gmail.com> 6Signed-off-by: Khem Raj <raj.khem@gmail.com>
9 7Upstream-Status: Backport [master: 6120cee594c543d17ae015bc601012debcf57177]
10--- 8---
11 interface.c | 1 + 9 interface.c | 1 +
12 1 file changed, 1 insertion(+) 10 1 file changed, 1 insertion(+)
13 11
14diff --git a/interface.c b/interface.c 12diff --git a/interface.c b/interface.c
15index 29229ad..9a83c36 100644 13index 29229ad6f53d..9a83c36933e7 100644
16--- a/interface.c 14--- a/interface.c
17+++ b/interface.c 15+++ b/interface.c
18@@ -5,6 +5,7 @@ 16@@ -5,6 +5,7 @@
@@ -23,3 +21,6 @@ index 29229ad..9a83c36 100644
23 #include "interface.h" 21 #include "interface.h"
24 22
25 struct interface { 23 struct interface {
24--
252.34.1
26
diff --git a/meta-oe/recipes-connectivity/linuxptp/linuxptp/0002-linuxptp-Use-CC-in-incdefs.sh.patch b/meta-oe/recipes-connectivity/linuxptp/linuxptp/0002-linuxptp-Use-CC-in-incdefs.sh.patch
index e6a3386df0..3cf3a63b94 100644
--- a/meta-oe/recipes-connectivity/linuxptp/linuxptp/0002-linuxptp-Use-CC-in-incdefs.sh.patch
+++ b/meta-oe/recipes-connectivity/linuxptp/linuxptp/0002-linuxptp-Use-CC-in-incdefs.sh.patch
@@ -1,6 +1,6 @@
1From 2cc19a679ec37715df546dd9f00d8d9b0ab20059 Mon Sep 17 00:00:00 2001 1From cffb4807ac0b9ff7aea2aa4f3842985b5363d184 Mon Sep 17 00:00:00 2001
2From: Luca Fancellu <luca.fancellu@arm.com> 2From: Luca Fancellu <luca.fancellu@arm.com>
3Date: Wed, 18 Oct 2023 11:10:18 +0100 3Date: Mon, 23 Oct 2023 10:43:43 +0100
4Subject: [PATCH] linuxptp: Use ${CC} in incdefs.sh 4Subject: [PATCH] linuxptp: Use ${CC} in incdefs.sh
5 5
6The Makefile is defining CC and incdefs.sh is using 6The Makefile is defining CC and incdefs.sh is using
@@ -8,13 +8,14 @@ ${CROSS_COMPILE}cpp inside it, allowing both to use different
8compilers depending on what the user pass during make invocation 8compilers depending on what the user pass during make invocation
9as CC. 9as CC.
10 10
11Align them using ${CC} also inside incdefs.sh 11Align them using ${CC} also inside incdefs.sh.
12 12
13Signed-off-by: Luca Fancellu <luca.fancellu@arm.com> 13Signed-off-by: Luca Fancellu <luca.fancellu@arm.com>
14Upstream-Status: Pending 14Upstream-Status: Backport [master: cffb4807ac0b9ff7aea2aa4f3842985b5363d184]
15--- 15---
16 incdefs.sh | 2 +- 16 incdefs.sh | 2 +-
17 1 file changed, 1 insertion(+), 1 deletion(-) 17 makefile | 2 +-
18 2 files changed, 2 insertions(+), 2 deletions(-)
18 19
19diff --git a/incdefs.sh b/incdefs.sh 20diff --git a/incdefs.sh b/incdefs.sh
20index a9e94f777f6b..391e63c7fac6 100755 21index a9e94f777f6b..391e63c7fac6 100755
@@ -29,6 +30,19 @@ index a9e94f777f6b..391e63c7fac6 100755
29 30
30 # Look for clock_adjtime(). 31 # Look for clock_adjtime().
31 for d in $dirs; do 32 for d in $dirs; do
33diff --git a/makefile b/makefile
34index 3e3b8b35fc96..7fc5f6fb8fa8 100644
35--- a/makefile
36+++ b/makefile
37@@ -39,7 +39,7 @@ OBJECTS = $(OBJ) hwstamp_ctl.o nsm.o phc2sys.o phc_ctl.o pmc.o pmc_agent.o \
38 SRC = $(OBJECTS:.o=.c)
39 DEPEND = $(OBJECTS:.o=.d)
40 srcdir := $(dir $(lastword $(MAKEFILE_LIST)))
41-incdefs := $(shell $(srcdir)/incdefs.sh)
42+incdefs := $(shell CC="$(CC)" $(srcdir)/incdefs.sh)
43 version := $(shell $(srcdir)/version.sh $(srcdir))
44 VPATH = $(srcdir)
45
32-- 46--
332.34.1 472.34.1
34 48