[meta-freescale] [PATCH v2 6/7] linux-qoriq/4.9: support big endian
chunrong.guo at nxp.com
chunrong.guo at nxp.com
Mon Apr 16 23:48:32 PDT 2018
From: Chunrong Guo <chunrong.guo at nxp.com>
*kernel bigendian option is enabled
Signed-off-by: Chunrong Guo <chunrong.guo at nxp.com>
---
recipes-kernel/linux/linux-qoriq_4.9.bb | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
diff --git a/recipes-kernel/linux/linux-qoriq_4.9.bb b/recipes-kernel/linux/linux-qoriq_4.9.bb
index 7229b01..f6d2942 100644
--- a/recipes-kernel/linux/linux-qoriq_4.9.bb
+++ b/recipes-kernel/linux/linux-qoriq_4.9.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 Freescale 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
--
1.9.0
More information about the meta-freescale
mailing list