]> code.ossystems Code Review - meta-freescale.git/commitdiff
linux-qoriq/4.14: support big endian
authorChunrong Guo <chunrong.guo@nxp.com>
Tue, 17 Apr 2018 06:48:31 +0000 (14:48 +0800)
committerOtavio Salvador <otavio@ossystems.com.br>
Wed, 25 Apr 2018 21:58:26 +0000 (18:58 -0300)
*kernel bigendian option is enabled

Signed-off-by: Chunrong Guo <chunrong.guo@nxp.com>
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
recipes-kernel/linux/linux-qoriq_4.14.bb

index 0a708fe17923b5c7b0d2a77065d20ad4138b708d..f4af8d520fe36b46ce38ada8df414fb291cce8ff 100644 (file)
@@ -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