From e7c51f59738f207edd0cd348c55b1047e49b8b37 Mon Sep 17 00:00:00 2001 From: Hauke Mehrtens Date: Wed, 15 Mar 2017 00:08:14 +0100 Subject: [PATCH 1/2] linuxptp: download directly via http Instead of cloning the released version via git, just download it via http from sourceforge. Signed-off-by: Hauke Mehrtens --- net/linuxptp/Makefile | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/net/linuxptp/Makefile b/net/linuxptp/Makefile index 612852188..a1ad6e38f 100644 --- a/net/linuxptp/Makefile +++ b/net/linuxptp/Makefile @@ -10,15 +10,12 @@ include $(TOPDIR)/rules.mk PKG_NAME:=linuxptp PKG_VERSION:=1.8 PKG_RELEASE:=2 -PKG_REV:=891d56e4292653c5c19ac8345159a1f1f5b2df26 PKG_MAINTAINER:=Wojciech Dubowik -PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2 -PKG_SOURCE_URL:=git://git.code.sf.net/p/linuxptp/code -PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION) -PKG_SOURCE_VERSION:=$(PKG_REV) -PKG_SOURCE_PROTO:=git -PKG_MD5SUM:= +PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tgz +PKG_SOURCE_URL:=@SF/$(PKG_NAME)/v$(PKG_VERSION) +PKG_MD5SUM:=5688cdfe57932273e1dbf35b3b97b9a0 +PKG_HASH:=fa8e00f6ec73cefa7bb313dce7f60dfe5eb9e2bde3353594e9ac18edc93e5165 PKG_LICENSE:=GPL-2.0 PKG_LICENSE_FILES:=COPYING From 3d8b505356a08a822b3248a73f6910ec4ea0bab4 Mon Sep 17 00:00:00 2001 From: Hauke Mehrtens Date: Wed, 15 Mar 2017 00:10:32 +0100 Subject: [PATCH 2/2] linuxptp: fix libc functionality check in incdefs.sh The checks in the incdefs.sh script do not fully work when cross compiling. It probably checks the hosts libc. Just provide the settings manually, as our musl at least supports all these features. Signed-off-by: Hauke Mehrtens --- net/linuxptp/Makefile | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/net/linuxptp/Makefile b/net/linuxptp/Makefile index a1ad6e38f..e75be1830 100644 --- a/net/linuxptp/Makefile +++ b/net/linuxptp/Makefile @@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=linuxptp PKG_VERSION:=1.8 -PKG_RELEASE:=2 +PKG_RELEASE:=3 PKG_MAINTAINER:=Wojciech Dubowik PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tgz @@ -38,8 +38,10 @@ define Package/linuxptp/description computers. endef +EXTRA_CFLAGS += -DHAVE_CLOCK_ADJTIME -DHAVE_POSIX_SPAWN -DHAVE_ONESTEP_SYNC + MAKE_VARS += \ - EXTRA_CFLAGS="$(TARGET_CFLAGS) $(TARGET_CPPFLAGS)" + EXTRA_CFLAGS="$(TARGET_CFLAGS) $(TARGET_CPPFLAGS) $(EXTRA_CFLAGS)" define Package/linuxptp/install $(INSTALL_DIR) $(1)/usr/sbin