Endian configuration

Signed-off-by: leo-ma <begeekmyfriend@gmail.com>