aboutsummaryrefslogtreecommitdiffstats
path: root/recipes-kernel
diff options
context:
space:
mode:
authorChunrong Guo <chunrong.guo@nxp.com>2018-04-17 14:48:32 +0800
committerOtavio Salvador <otavio@ossystems.com.br>2018-04-25 18:58:26 -0300
commitcaff565e628bf14fae1e5b861c950550de1357d5 (patch)
treea5274279f2a8da5d4038eea89c6bb7ab84e22998 /recipes-kernel
parent2afea5dae14931aca6352269b004bff443391d9c (diff)
downloadmeta-freescale-caff565e628bf14fae1e5b861c950550de1357d5.tar.gz
meta-freescale-caff565e628bf14fae1e5b861c950550de1357d5.tar.bz2
meta-freescale-caff565e628bf14fae1e5b861c950550de1357d5.zip
linux-qoriq/4.9: support big endian
*kernel bigendian option is enabled Signed-off-by: Chunrong Guo <chunrong.guo@nxp.com> Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
Diffstat (limited to 'recipes-kernel')
-rw-r--r--recipes-kernel/linux/linux-qoriq_4.9.bb8
1 files changed, 7 insertions, 1 deletions
diff --git a/recipes-kernel/linux/linux-qoriq_4.9.bb b/recipes-kernel/linux/linux-qoriq_4.9.bb
index 7229b014..f6d29429 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