Zephyr compilation fail when activating gptp
Activating the gPTP passing the option CONFIG_NET_GPTP=y
to embedded samples configuration files lead to an inclusion error using the script build-zephyr-samples.sh
.
/zephyrproject/s2opc/src/Common/helpers_platform_dep/zephyr/p_sopc_time.c:36:10: fatal error: zephyr/ethernet/gptp/gptp_messages.h: No such file or directory
36 | #include <zephyr/ethernet/gptp/gptp_messages.h>
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Looking to zephyr samples samples/net/gptp/src/gptp.c
suggest that the inclusion should be for zephyr version 2.7.1 and 3.2.0
#include <ethernet/gptp/gptp_messages.h>
#include <ethernet/gptp/gptp_data_set.h>