Signed-off-by: Jacob Stiffler <[email protected]>
---
 .../linuxptp/change-pr_warn-to-pr_warning.patch      | 20 ++++++++++++++++++++
 recipes-connectivity/linuxptp/linuxptp_%.bbappend    |  9 ++++++---
 2 files changed, 26 insertions(+), 3 deletions(-)
 create mode 100644 
recipes-connectivity/linuxptp/linuxptp/change-pr_warn-to-pr_warning.patch

diff --git 
a/recipes-connectivity/linuxptp/linuxptp/change-pr_warn-to-pr_warning.patch 
b/recipes-connectivity/linuxptp/linuxptp/change-pr_warn-to-pr_warning.patch
new file mode 100644
index 0000000..faa19ff
--- /dev/null
+++ b/recipes-connectivity/linuxptp/linuxptp/change-pr_warn-to-pr_warning.patch
@@ -0,0 +1,20 @@
+diff --git a/phc2sys.c b/phc2sys.c
+index e3aec67..9a36668 100644
+--- a/phc2sys.c
++++ b/phc2sys.c
+@@ -607,13 +607,13 @@ static void enable_pps_output(clockid_t src, int enable)
+ static void set_pps_offset(clockid_t src, int offset)
+ {
+       if (!phc_has_pps(src)) {
+-              pr_warn("src clk %d does not have pps", src);
++              pr_warning("src clk %d does not have pps", src);
+               return;
+       }
+ 
+       pr_info("set_pps_offset(%d): offset = %d", src, offset);
+       if (ioctl(CLOCKID_TO_FD(src), PTP_PPS_OFFSET, offset) < 0)
+-              pr_warn("failed to set PPS offset");
++              pr_warning("failed to set PPS offset");
+ }
+ 
+ static int read_pps(int fd, int64_t *offset, uint64_t *ts)
diff --git a/recipes-connectivity/linuxptp/linuxptp_%.bbappend 
b/recipes-connectivity/linuxptp/linuxptp_%.bbappend
index 5990e08..3637427 100644
--- a/recipes-connectivity/linuxptp/linuxptp_%.bbappend
+++ b/recipes-connectivity/linuxptp/linuxptp_%.bbappend
@@ -1,11 +1,14 @@
-PR_append = ".tisdk1"
+PR_append = ".tisdk2"
 PV = "1.8+"
 
+FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:"
+
 BRANCH = "ti-linuxptp-release"
 SRC_URI = 
"git://git.ti.com/processor-sdk/linuxptp.git;protocol=git;branch=${BRANCH} \
-           file://build-Allow-CC-and-prefix-to-be-overriden.patch"
+           file://build-Allow-CC-and-prefix-to-be-overriden.patch \
+           file://change-pr_warn-to-pr_warning.patch"
 
-SRCREV = "15de3319fadb0c49b085cb7ea83ca5ecd398f75a"
+SRCREV = "19abd3664ded04f57e7d3a0daf9831cc373715f7"
 
 S = "${WORKDIR}/git"
 
-- 
2.7.4

_______________________________________________
meta-arago mailing list
[email protected]
http://arago-project.org/cgi-bin/mailman/listinfo/meta-arago

Reply via email to