summaryrefslogtreecommitdiff
path: root/packages/dsplink/dsplink.inc
diff options
context:
space:
mode:
authorKoen Kooi <koen@openembedded.org>2008-07-11 10:45:12 +0000
committerKoen Kooi <koen@openembedded.org>2008-07-11 10:45:12 +0000
commit8ade10b54bf971c5ec0f74ad28a130ca68f0dc26 (patch)
treec53bacea0cd3d613aa76108c5ee709e81805d721 /packages/dsplink/dsplink.inc
parent02591ec50dcd3d3dcd5d7ebca53e89241b4b0e34 (diff)
dsplink: attempt to fix kernel architecture flags.
before: vermagic: 2.6.26-rc9-omap1 mod_unload modversions ARMv5 after: vermagic: 2.6.26-rc9-omap1 mod_unload modversions ARMv7 Still not loading on omap3, though
Diffstat (limited to 'packages/dsplink/dsplink.inc')
-rw-r--r--packages/dsplink/dsplink.inc11
1 files changed, 10 insertions, 1 deletions
diff --git a/packages/dsplink/dsplink.inc b/packages/dsplink/dsplink.inc
index 4ea750ea98..95f2552eb6 100644
--- a/packages/dsplink/dsplink.inc
+++ b/packages/dsplink/dsplink.inc
@@ -23,6 +23,13 @@ DSPLINKSOC ?= "DM6446"
DSPLINKSOC_beagleboard = "3530"
+
+USERARMFLAGS = "${TARGET_CC_ARCH}"
+KERNELARMFLAGS = "-D__LINUX_ARM_ARCH__=5 -march=armv5t -mtune=arm9tdmi"
+KERNELARMFLAGS_armv6 = "-D__LINUX_ARM_ARCH__=6 -march=armv6j -mtune=arm1136jf-s"
+KERNELARMFLAGS_armv7a = "-D__LINUX_ARM_ARCH__=7 -march=armv7-a -mtune=cortex-a8"
+
+
export DSPLINKPLATFORM
export DSPLINKDSP
@@ -43,7 +50,9 @@ do_configure () {
sed -i -e s:SED_ME_CROSS:${STAGING_INCDIR}:g \
-e s:SED_ME_STAGINGDIR:${STAGING_DIR_TARGET}:g \
-e s:SED_ME_TARGET_PREFIX:${TARGET_PREFIX}:g \
- -e s:SED_ME_KERNELDIR:${STAGING_KERNEL_DIR}:g \
+ -e s:SED_ME_KERNELDIR:${STAGING_KERNEL_DIR}:g \
+ -e 's:SEDME_KERNEL_ARMFLAGS:${KERNELARMFLAGS}:g' \
+ -e 's:SEDME_USER_ARMFLAGS:${USERARMFLAGS}:g' \
${S}/make/Linux/davinci_mvlpro5.0.mk
}