]> code.ossystems Code Review - meta-freescale.git/commitdiff
linux-imx.inc: Pass LOADADDRESS to kernel build
authorOtavio Salvador <otavio@ossystems.com.br>
Wed, 17 Apr 2013 18:39:25 +0000 (15:39 -0300)
committerOtavio Salvador <otavio@ossystems.com.br>
Fri, 19 Apr 2013 13:29:26 +0000 (10:29 -0300)
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.

Change-Id: If6434c8a9ced044776766e7916ab391d28d685f1
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
meta-fsl-arm/recipes-kernel/linux/linux-imx.inc

index 5fbdfe0ac076d26c7a3b1852c12cd54f5bfd56f0..9020f571f8253533d6119ff433961dfe6f1ad9ac 100644 (file)
@@ -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"