mirror of
git://git.openembedded.org/meta-openembedded
synced 2026-05-18 23:57:25 +00:00
with make 4.4, linuxptp do_compile will failed with error:
In file included from clock.c:35:
missing.h:61:9: error: redeclaration of enumerator 'HWTSTAMP_TX_ONESTEP_P2P'
61 | HWTSTAMP_TX_ONESTEP_P2P = 3,
| ^~~~~~~~~~~~~~~~~~~~~~~
In file included from clock.c:21:
/buildarea2/WRLCD_Regression/Rerun/build_dir/11201532-build_scp_world_Feature_Test/qemux86-64-standard-std-OE/build/tmp-glibc/work/core2-64-wrs-linux/linuxptp/3.1.1-r0/recipe-sysroot/usr/include/linux/net_tstamp.h:128:9: note: previous definition of 'HWTSTAMP_TX_ONESTEP_P2P' with type 'enum hwtstamp_tx_types'
128 | HWTSTAMP_TX_ONESTEP_P2P,
|
Following change of make 4.4 changes behavior of shell function:
* WARNING: Backward-incompatibility!
Previously makefile variables marked as export were not exported to commands
started by the $(shell ...) function. Now, all exported variables are
exported to $(shell ...).
Signed-off-by: Changqing Li <changqing.li@windriver.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
34 lines
1.2 KiB
BlitzBasic
34 lines
1.2 KiB
BlitzBasic
DESCRIPTION = "Precision Time Protocol (PTP) according to IEEE standard 1588 for Linux"
|
|
HOMEPAGE = "http://linuxptp.sourceforge.net/"
|
|
LICENSE = "GPL-2.0-only"
|
|
LIC_FILES_CHKSUM = "file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263"
|
|
|
|
SRC_URI = "http://sourceforge.net/projects/linuxptp/files/v3.1/linuxptp-${PV}.tgz \
|
|
file://build-Allow-CC-and-prefix-to-be-overriden.patch \
|
|
file://Use-cross-cpp-in-incdefs.patch \
|
|
file://0001-include-string.h-for-strncpy.patch \
|
|
file://0001-makefile-use-conditional-assignment-for-KBUILD_OUTPU.patch \
|
|
"
|
|
|
|
UPSTREAM_CHECK_URI = "https://sourceforge.net/projects/linuxptp/files/"
|
|
UPSTREAM_CHECK_REGEX = "(?P<pver>\d+(\.\d+)+)/"
|
|
|
|
SRC_URI[sha256sum] = "94d6855f9b7f2d8e9b0ca6d384e3fae6226ce6fc012dbad02608bdef3be1c0d9"
|
|
|
|
EXTRA_OEMAKE = "ARCH=${TARGET_ARCH} EXTRA_CFLAGS='${CFLAGS}' mandir=${mandir}"
|
|
|
|
export KBUILD_OUTPUT="${RECIPE_SYSROOT}"
|
|
|
|
do_install() {
|
|
oe_runmake install DESTDIR=${D} prefix=${prefix}
|
|
|
|
# Install example configs from source tree
|
|
install -d ${D}${docdir}/${PN}
|
|
cp -R --no-dereference --preserve=mode,links ${S}/configs ${D}${docdir}/${PN}
|
|
}
|
|
|
|
PACKAGES =+ "${PN}-configs"
|
|
|
|
FILES:${PN}-configs = "${docdir}"
|
|
FILES:${PN}-doc = "${mandir}"
|