It can be hard to implement a reliable detection of endianness. Previous trials in testpmd failed. The IBM Power patchset introduced a config option.
This patchset try to improve the situation by having a detection in EAL headers. Please test it (especially on IBM Power) with different toolchains or distributions. Thomas Monjalon (2): eal: detect endianness app/testpmd: fix endianness detection -- 2.1.3