From 000f08bb1864d570d5652d621e34f73ecf54626a Mon Sep 17 00:00:00 2001 From: Dmitry Vyukov Date: Mon, 13 May 2019 10:23:16 +0200 Subject: sys/linux: switch ppc64le to little-endian make extract recently broke for powerpc on linux-next with: include/uapi/linux/byteorder/big_endian.h:6:2: error: #error "Unsupported endianness, check your toolchain" #error "Unsupported endianness, check your toolchain" Turns out we always built ppc64le headers as big-endian. First, kernel was configured as BE. Then, we used gcc to build an executable program for host and on x86 gcc does not define __LITTLE_ENDIAN__ so kernel thought that the toolchain is BE too. Configure kernel as LE and define __LITTLE_ENDIAN__. This actually changes values of some consts, but fortunately just few of them. --- sys/linux/vnet_ppc64le.const | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sys/linux/vnet_ppc64le.const') diff --git a/sys/linux/vnet_ppc64le.const b/sys/linux/vnet_ppc64le.const index d51f5c41d..b8e3d7fc5 100644 --- a/sys/linux/vnet_ppc64le.const +++ b/sys/linux/vnet_ppc64le.const @@ -174,8 +174,8 @@ ETH_P_WAN_PPP = 7 ETH_P_WCCP = 34878 ETH_P_X25 = 2053 ETH_P_XDSA = 248 -GUE_FLAG_PRIV = 1 -GUE_PFLAG_REMCSUM = 2147483648 +GUE_FLAG_PRIV = 256 +GUE_PFLAG_REMCSUM = 128 ICMPV6_ADDR_UNREACH = 3 ICMPV6_ADM_PROHIBITED = 1 ICMPV6_DEST_UNREACH = 1 -- cgit mrf-deployment