From: Leon Anavi <leon.anavi@konsulko.com>
Date: Fri, 30 Aug 2019 16:01:45 +0000 (+0300)
Subject: agl_raspberrypi3.inc: Set CMA for SOTA
X-Git-Tag: halibut_8.0.1~1
X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=commitdiff_plain;h=refs%2Fchanges%2F08%2F22308%2F2;p=AGL%2Fmeta-agl.git

agl_raspberrypi3.inc: Set CMA for SOTA

Add CMA to the kernel arguments in uEnv.txt for U-Boot in images
with enabled feature agl-sota for software-over-the-air (SOTA)
updates for Raspberry Pi 3 B/B+.

Bug-AGL: SPEC-2729

Signed-off-by: Leon Anavi <leon.anavi@konsulko.com>
Change-Id: Id6914de6a41ebfd3fc28ca2948a15d891c9a30b3
(cherry picked from commit 86f76e0578b4cbb1a3b286b6e959e317866f9c31)
---

diff --git a/meta-agl-bsp/conf/include/agl_raspberrypi3.inc b/meta-agl-bsp/conf/include/agl_raspberrypi3.inc
index 298cacd56..cc3074858 100644
--- a/meta-agl-bsp/conf/include/agl_raspberrypi3.inc
+++ b/meta-agl-bsp/conf/include/agl_raspberrypi3.inc
@@ -2,6 +2,8 @@
 GPU_MEM = "128"
 
 ENABLE_CMA = "1"
+# Add CMA to the kernel arguments for SOTA
+OSTREE_KERNEL_ARGS_sota_append = " cma=256M"
 CMA_LWM = "16"
 CMA_HWM = "32"