From 2afea5dae14931aca6352269b004bff443391d9c Mon Sep 17 00:00:00 2001 From: Chunrong Guo Date: Tue, 17 Apr 2018 14:48:31 +0800 Subject: [PATCH] linux-qoriq/4.14: support big endian *kernel bigendian option is enabled Signed-off-by: Chunrong Guo Signed-off-by: Otavio Salvador --- recipes-kernel/linux/linux-qoriq_4.14.bb | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/recipes-kernel/linux/linux-qoriq_4.14.bb b/recipes-kernel/linux/linux-qoriq_4.14.bb index 0a708fe1..f4af8d52 100644 --- a/recipes-kernel/linux/linux-qoriq_4.14.bb +++ b/recipes-kernel/linux/linux-qoriq_4.14.bb @@ -1,4 +1,4 @@ -inherit kernel qoriq_build_64bit_kernel +inherit kernel qoriq_build_64bit_kernel siteinfo inherit fsl-kernel-localversion SUMMARY = "Linux Kernel for NXP QorIQ platforms" @@ -36,6 +36,12 @@ do_merge_delta_config() { # create config with make config oe_runmake -C ${S} O=${B} ${KERNEL_DEFCONFIG} + # check if bigendian is enabled + if [ "${SITEINFO_ENDIANNESS}" = "be" ]; then + echo "CONFIG_CPU_BIG_ENDIAN=y" >> .config + echo "CONFIG_MTD_CFI_BE_BYTE_SWAP=y" >> .config + fi + # add config fragments for deltacfg in ${DELTA_KERNEL_DEFCONFIG}; do if [ -f ${S}/arch/${ARCH}/configs/${deltacfg} ]; then -- 2.40.1