diff options
-rw-r--r-- | meta-oe/recipes-connectivity/linuxptp/linuxptp/0001-include-string.h-for-strncpy.patch | 13 | ||||
-rw-r--r-- | meta-oe/recipes-connectivity/linuxptp/linuxptp/0002-linuxptp-Use-CC-in-incdefs.sh.patch | 24 |
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 @@ | |||
1 | From ecfc8e287eb6811e42c4e2800a913822f554d7c8 Mon Sep 17 00:00:00 2001 | 1 | From 6120cee594c543d17ae015bc601012debcf57177 Mon Sep 17 00:00:00 2001 |
2 | From: Khem Raj <raj.khem@gmail.com> | 2 | From: Khem Raj <raj.khem@gmail.com> |
3 | Date: Wed, 31 Aug 2022 19:09:18 -0700 | 3 | Date: Mon, 23 Oct 2023 10:43:42 +0100 |
4 | Subject: [PATCH] include string.h for strncpy() | 4 | Subject: [PATCH] include string.h for strncpy() |
5 | 5 | ||
6 | Upstream-Status: Pending | ||
7 | |||
8 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | 6 | Signed-off-by: Khem Raj <raj.khem@gmail.com> |
9 | 7 | Upstream-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 | ||
14 | diff --git a/interface.c b/interface.c | 12 | diff --git a/interface.c b/interface.c |
15 | index 29229ad..9a83c36 100644 | 13 | index 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 | -- | ||
25 | 2.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 @@ | |||
1 | From 2cc19a679ec37715df546dd9f00d8d9b0ab20059 Mon Sep 17 00:00:00 2001 | 1 | From cffb4807ac0b9ff7aea2aa4f3842985b5363d184 Mon Sep 17 00:00:00 2001 |
2 | From: Luca Fancellu <luca.fancellu@arm.com> | 2 | From: Luca Fancellu <luca.fancellu@arm.com> |
3 | Date: Wed, 18 Oct 2023 11:10:18 +0100 | 3 | Date: Mon, 23 Oct 2023 10:43:43 +0100 |
4 | Subject: [PATCH] linuxptp: Use ${CC} in incdefs.sh | 4 | Subject: [PATCH] linuxptp: Use ${CC} in incdefs.sh |
5 | 5 | ||
6 | The Makefile is defining CC and incdefs.sh is using | 6 | The Makefile is defining CC and incdefs.sh is using |
@@ -8,13 +8,14 @@ ${CROSS_COMPILE}cpp inside it, allowing both to use different | |||
8 | compilers depending on what the user pass during make invocation | 8 | compilers depending on what the user pass during make invocation |
9 | as CC. | 9 | as CC. |
10 | 10 | ||
11 | Align them using ${CC} also inside incdefs.sh | 11 | Align them using ${CC} also inside incdefs.sh. |
12 | 12 | ||
13 | Signed-off-by: Luca Fancellu <luca.fancellu@arm.com> | 13 | Signed-off-by: Luca Fancellu <luca.fancellu@arm.com> |
14 | Upstream-Status: Pending | 14 | Upstream-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 | ||
19 | diff --git a/incdefs.sh b/incdefs.sh | 20 | diff --git a/incdefs.sh b/incdefs.sh |
20 | index a9e94f777f6b..391e63c7fac6 100755 | 21 | index 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 |
33 | diff --git a/makefile b/makefile | ||
34 | index 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 | -- |
33 | 2.34.1 | 47 | 2.34.1 |
34 | 48 | ||