From: Otavio Salvador Date: Wed, 17 Apr 2013 18:39:25 +0000 (-0300) Subject: linux-imx.inc: Pass LOADADDRESS to kernel build X-Git-Tag: 2.1~1409 X-Git-Url: https://code.ossystems.io/gitweb?a=commitdiff_plain;h=73988c5113055f0d08892e64b56e189be3e5bbeb;p=meta-freescale.git linux-imx.inc: Pass LOADADDRESS to kernel build 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 --- diff --git a/meta-fsl-arm/recipes-kernel/linux/linux-imx.inc b/meta-fsl-arm/recipes-kernel/linux/linux-imx.inc index 5fbdfe0a..9020f571 100644 --- a/meta-fsl-arm/recipes-kernel/linux/linux-imx.inc +++ b/meta-fsl-arm/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"