Patchwork [meta-fsl-arm,2/3] linux-imx.inc: Pass LOADADDRESS to kernel build

login
register
mail settings
Submitter Otavio Salvador
Date April 18, 2013, 1:12 p.m.
Message ID <1366290728-14103-2-git-send-email-otavio@ossystems.com.br>
Download mbox | patch
Permalink /patch/48483/
State Changes Requested
Delegated to: Otavio Salvador
Headers show

Comments

Otavio Salvador - April 18, 2013, 1:12 p.m.
By default, the kernel uses the known value for the entry address
however we cannot rely on this for having the right value. To
workaround it we should pass LOADADDRESS value to the kernel build
system.

Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
---
 recipes-kernel/linux/linux-imx.inc | 4 ++++
 1 file changed, 4 insertions(+)

Patch

diff --git a/recipes-kernel/linux/linux-imx.inc b/recipes-kernel/linux/linux-imx.inc
index 5fbdfe0..9020f57 100644
--- a/recipes-kernel/linux/linux-imx.inc
+++ b/recipes-kernel/linux/linux-imx.inc
@@ -19,6 +19,10 @@  SRC_URI = "git://git.freescale.com/imx/linux-2.6-imx.git \
 
 S = "${WORKDIR}/git"
 
+# We need to pass it as param since kernel might support more then one
+# machine, with different entry points
+KERNEL_EXTRA_ARGS += "LOADADDR=${UBOOT_ENTRYPOINT}"
+
 kernel_conf_variable() {
 	CONF_SED_SCRIPT="$CONF_SED_SCRIPT /CONFIG_$1[ =]/d;"
 	if test "$2" = "n"