Jogamp
Bug 681: Use ELF Header + ARM EABI Section Parsing in PlatformPropsImpl to to disting...
authorSven Gothel <sgothel@jausoft.com>
Fri, 8 Feb 2013 18:21:10 +0000 (19:21 +0100)
committerSven Gothel <sgothel@jausoft.com>
Fri, 8 Feb 2013 18:21:10 +0000 (19:21 +0100)
commit371e1dbff6f5f255ab27ed0ab32368abb06eed82
tree06cdfc232298a9305d7aaaa501fd831726ab52f2
parent60409268e1d43be26b656b191d6684037f943123
Bug 681: Use ELF Header + ARM EABI Section Parsing in PlatformPropsImpl to to distinguish ARM soft-float/hard-float (part-2)

+    /**
+     * Returns the {@link ABIType} of the current platform using given {@link CPUType cpuType}
+     * and {@link OSType osType} as a hint.
+     * <p>
+     * Note the following queries are performed:
+     * <ul>
+     *   <li> not {@link CPUFamily#ARM} -> {@link ABIType#GENERIC_ABI} </li>
+     *   <li> else
+     *   <ul>
+     *     <li> not {@link OSType#LINUX} -> {@link ABIType#EABI_GNU_ARMEL} </li>
+     *     <li> else
+     *     <ul>
+     *       <li> Elf ARM Tags -> {@link ABIType#EABI_GNU_ARMEL}, {@link ABIType#EABI_GNU_ARMHF} </li>
+     *     </ul></li>
+     *   </ul></li>
+     * </ul>
+     * </p>
+     * <p>
+     * Elf ARM Tags are read using {@link ElfHeader}, .. and {@link SectionArmAttributes#abiVFPArgsAcceptsVFPVariant(byte)}.
+     * </p>
+     *
+     * @param cpuType
+     * @param osType
+     * @return
+     */
+    private static final ABIType queryABITypeImpl(CPUType cpuType, OSType osType) {
make/scripts/crosstest-java-linux-armv6-rel.sh
make/scripts/crosstest-java-linux-armv6hf-rel.sh
make/scripts/runtest.sh
src/java/jogamp/common/os/PlatformPropsImpl.java
src/java/jogamp/common/os/elf/ElfHeader.java
src/junit/com/jogamp/common/os/TestElfReader01.java
http://JogAmp.org git info: FAQ, tutorial and man pages.