]> code.ossystems Code Review - meta-freescale.git/commitdiff
linux-qoriq-sdk.inc: add var to configure build for 64-bit kernel on 32-bit machine
authorMatthew McClintock <msm@freescale.com>
Wed, 12 Sep 2012 20:46:15 +0000 (15:46 -0500)
committerMatthew McClintock <msm@freescale.com>
Wed, 12 Sep 2012 21:45:04 +0000 (16:45 -0500)
Signed-off-by: Matthew McClintock <msm@freescale.com>
meta-fsl-ppc/recipes-kernel/linux/linux-qoriq-sdk.inc

index 1b76a28cdde20c0df0f2dc5e0d8b2b24f05f879d..35ee5e32e52b36fd1552fd1e18d76ee571189c5c 100644 (file)
@@ -14,3 +14,11 @@ S = '${@base_conditional("KSRC", "", "${WORKDIR}/git", "${KSRC}", d)}'
 
 # make everything compatible for the time being
 COMPATIBLE_MACHINE_$MACHINE = "$MACHINE"
+
+python () {
+       promote_kernel = d.getVar('BUILD_64BIT_KERNEL')
+
+       if promote_kernel != 0:
+               d.setVar('KERNEL_CC_append', ' -m64')
+               d.setVar('KERNEL_LD_append', ' -melf64ppc')
+}