diff options
author | Sven Gothel <[email protected]> | 2012-04-18 22:29:13 +0200 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2012-04-18 22:29:13 +0200 |
commit | f04a677dbf7c222342b77bb29f52ecb57f8ecc83 (patch) | |
tree | 47d818c43dbb10f93c6332dae2e77a362c64f6b1 /make/lib | |
parent | c8d1335ed7217a091508efdca92a3e1438fad390 (diff) |
Linux ARMel eabi: Use armv6t, soft-float - low profile to target more devices. Our ARMhf build is high profile.
Diffstat (limited to 'make/lib')
-rw-r--r-- | make/lib/gluegen-cpptasks-linux-armv4.xml | 58 |
1 files changed, 58 insertions, 0 deletions
diff --git a/make/lib/gluegen-cpptasks-linux-armv4.xml b/make/lib/gluegen-cpptasks-linux-armv4.xml new file mode 100644 index 0000000..1e5f162 --- /dev/null +++ b/make/lib/gluegen-cpptasks-linux-armv4.xml @@ -0,0 +1,58 @@ +<?xml version="1.0" encoding="UTF-8"?> + +<!-- + This is an example of how to add custom compiler/linker + arguments for a crosscompiler. + + You can use such files with setting the property 'gluegen-cpptasks.file', ie: + + -Dgluegen-cpptasks.file=`pwd`/lib/gluegen-cpptasks-linux-32bit.xml + + In case you want to compile for 32bit on a 64bit machine, + you might also need to set the 'os.arch' to 'x86'. + Example: gluegen/make/make.gluegen.all.linux-x86.sh + --> + +<project name="GlueGen-cpptasks-linux-armv4" basedir="." > + +<!-- Set OS and ARCH for crosscompilation compiler configuration --> +<target name="gluegen.cpptasks.detect.os.custom"> + <property name="gluegen.cpptasks.detected.os" value="true" /> + <property name="isUnix" value="true" /> + <property name="isLinux" value="true" /> + <property name="isLinuxARMv7" value="true" /> + <property name="isX11" value="true" /> + <property name="jvmDataModel.arg" value="-Djnlp.no.jvm.data.model.set=true" /> + <property name="isCrosscompilation" value="true" /> + <property name="isAbiEabiGnuArmel" value="true" /> + <echo message="gluegen.cpptasks.detect.os.custom: GLUEGEN_CPPTASKS_FILE 'gluegen-cpptasks-linux-armv4' done"/> +</target> + +<import file="${gluegen.root.abs-path}/make/gluegen-cpptasks-base.xml" optional="false" /> + +<target name="gluegen.cpptasks.configure.compiler" depends="setup.java.home.dir"> + <echo message="Custom forced compiler Linux ARMv4t soft float" /> + + <compiler id="compiler.cfg.linux.armv7" name="gcc"> + <defineset> + <define name="__unix__"/> + <define name="__X11__" if="isX11"/> + <define name="_DEBUG" if="c.compiler.use-debug"/> + <define name="DEBUG" if="c.compiler.use-debug"/> + <define name="NDEBUG" unless="c.compiler.use-debug"/> + </defineset> + <compilerarg value="-fpic" /> + <compilerarg value="-march=armv4t" /> + <compilerarg value="-msoft-float" /> + </compiler> + + <linker id="linker.cfg.linux.armv7" name="gcc"> + <linkerarg value="-fpic" /> + <linkerarg value="-march=armv4t" /> + </linker> + +</target> + +</project> + + |