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/socket_packet_ppc64le.const | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sys/linux/socket_packet_ppc64le.const') diff --git a/sys/linux/socket_packet_ppc64le.const b/sys/linux/socket_packet_ppc64le.const index 79f28f517..2de392a9e 100644 --- a/sys/linux/socket_packet_ppc64le.const +++ b/sys/linux/socket_packet_ppc64le.const @@ -4,7 +4,7 @@ ARPHRD_ETHER = 1 ETH_P_802_2 = 4 ETH_P_802_3 = 1 ETH_P_ALL = 3 -ETH_P_ALL_BE = 3 +ETH_P_ALL_BE = 768 ETH_P_ARCNET = 26 ETH_P_AX25 = 2 ETH_P_CAIF = 247 -- cgit mrf-deployment