Skip to content

Commit

Permalink
Merge branch 'wip/aarch64-android' into 'master'
Browse files Browse the repository at this point in the history
Introduce gprconfig db support for aarch64-android

See merge request eng/gpr/gprconfig_kb!41
  • Loading branch information
hainque committed Aug 30, 2024
2 parents 0dcc80e + fe17eac commit f853fc8
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 7 deletions.
14 changes: 7 additions & 7 deletions db/compilers.xml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
<!-- GCC 3.x & 4.x (not for GNAT Pro)-->
<compiler_description>
<name>GCC</name>
<executable prefix="1">(.*-wrs-.*|.*-sysgo.*|.*-elf-.*|.*-eabi-.*|.*-eabispe-.*|avr-.*|.*-elinos-linux.*|.*-linux-gnu-|.*mingw32.*|.*-xcoff-.*|arm-linux-androideabi-|arm-linux-gnueabi-|arm-linux-gnueabihf-|e500v2-gnu-linux-|powerpc-.*-linux.*-|.*-darwin.*-|.*-freebsd.*)?gcc(-\d+)?</executable>
<executable prefix="1">(.*-wrs-.*|.*-sysgo.*|.*-elf-.*|.*-eabi-.*|.*-eabispe-.*|avr-.*|.*-elinos-linux.*|.*-linux-gnu-|.*mingw32.*|.*-xcoff-.*|.*linux-android.*|arm-linux-gnueabi-|arm-linux-gnueabihf-|e500v2-gnu-linux-|powerpc-.*-linux.*-|.*-darwin.*-|.*-freebsd.*)?gcc(-\d+)?</executable>
<version>
<external>$EXEC -v</external>
<nogrep regexp="for GNAT Pro"></nogrep>
Expand All @@ -36,7 +36,7 @@
<!-- GCC for GNAT Pro 3.x & 4.x -->
<compiler_description>
<name>GCC_Pro</name>
<executable prefix="1">(.*-wrs-.*|.*-sysgo.*|.*-elf-.*|.*-eabi-.*|.*-eabispe-.*|avr-.*|.*-elinos-linux.*|.*-linux-gnu-|.*mingw32.*|.*-xcoff-.*|arm-linux-androideabi-|arm-linux-gnueabi-|arm-linux-gnueabihf-|e500v2-gnu-linux-|powerpc-.*-linux.*-|.*-darwin.*-|.*-fastos.*|.*-freebsd.*|.*-qnx.*|.*-rtems.*)?gcc</executable>
<executable prefix="1">(.*-wrs-.*|.*-sysgo.*|.*-elf-.*|.*-eabi-.*|.*-eabispe-.*|avr-.*|.*-elinos-linux.*|.*-linux-gnu-|.*mingw32.*|.*-xcoff-.*|.*linux-android.*|arm-linux-gnueabi-|arm-linux-gnueabihf-|e500v2-gnu-linux-|powerpc-.*-linux.*-|.*-darwin.*-|.*-fastos.*|.*-freebsd.*|.*-qnx.*|.*-rtems.*)?gcc</executable>
<version>
<external>${PREFIX}gcc -v</external>

Expand Down Expand Up @@ -121,7 +121,7 @@
<!-- G++ compilers for GNAT Pro -->
<compiler_description>
<name>G++_Pro</name>
<executable prefix="1">(.*-elf-.*|.*-eabi-.*|.*-wrs-.*|.*-fastos.*|.*-freebsd.*|.*-linux-gnu.*-|.*-rtems.*)?g\+\+</executable>
<executable prefix="1">(.*-elf-.*|.*-eabi-.*|.*-wrs-.*|.*-fastos.*|.*-freebsd.*|.*-linux-gnu.*-|.*-linux-android.*|.*-rtems.*)?g\+\+</executable>
<version>
<external>${PREFIX}g++ -v</external>

Expand All @@ -138,7 +138,7 @@
<!-- Assembler (not for GNAT Pro) -->
<compiler_description>
<name>GCC-ASM</name>
<executable prefix="1">(.*-wrs-.*|.*-sysgo.*|.*-elf-.*|.*-eabi-.*|.*-eabispe-.*|avr-.*|.*-elinos-linux.*|.*-linux-gnu-|.*mingw32.*|.*-xcoff-.*|arm-linux-androideabi-|arm-linux-gnueabi-|arm-linux-gnueabihf-|e500v2-gnu-linux-|powerpc-.*-linux.*-|.*-darwin.*-|.*-fastos.*|.*-freebsd.*|.*-qnx.*|.*-rtems.*)?gcc(-\d+)?</executable>
<executable prefix="1">(.*-wrs-.*|.*-sysgo.*|.*-elf-.*|.*-eabi-.*|.*-eabispe-.*|avr-.*|.*-elinos-linux.*|.*-linux-gnu-|.*mingw32.*|.*-xcoff-.*|.*linux-android.*|arm-linux-gnueabi-|arm-linux-gnueabihf-|e500v2-gnu-linux-|powerpc-.*-linux.*-|.*-darwin.*-|.*-fastos.*|.*-freebsd.*|.*-qnx.*|.*-rtems.*)?gcc(-\d+)?</executable>
<version>
<external>$EXEC -v</external>
<nogrep regexp="for GNAT Pro"></nogrep>
Expand All @@ -154,7 +154,7 @@
<!-- Assembler (for GNAT Pro) -->
<compiler_description>
<name>GCC-ASM_Pro</name>
<executable prefix="1">(.*-wrs-.*|.*-sysgo.*|.*-elf-.*|.*-eabi-.*|.*-eabispe-.*|avr-.*|.*-elinos-linux.*|.*-linux-gnu-|.*mingw32.*|.*-xcoff-.*|arm-linux-androideabi-|arm-linux-gnueabi-|arm-linux-gnueabihf-|e500v2-gnu-linux-|powerpc-.*-linux.*-|.*-darwin.*-|.*-.*fastos.*|.*-freebsd.*|.*-qnx.*|.*-rtems.*)?gcc</executable>
<executable prefix="1">(.*-wrs-.*|.*-sysgo.*|.*-elf-.*|.*-eabi-.*|.*-eabispe-.*|avr-.*|.*-elinos-linux.*|.*-linux-gnu-|.*mingw32.*|.*-xcoff-.*|.*linux-android.*|arm-linux-gnueabi-|arm-linux-gnueabihf-|e500v2-gnu-linux-|powerpc-.*-linux.*-|.*-darwin.*-|.*-.*fastos.*|.*-freebsd.*|.*-qnx.*|.*-rtems.*)?gcc</executable>
<version>
<external>${PREFIX}gcc -v</external>
<grep regexp="^gcc \S+ (\S+) \d+ (\(prerelease\) )?\(?for GNAT Pro" group="1"></grep>
Expand All @@ -169,7 +169,7 @@
<!-- Binary image -->
<compiler_description>
<name>LD</name>
<executable prefix="1">(.*-wrs.*-|.*-sysgo.*-|.*-elf.*-|.*-eabi.*-|.*-eabispe.*-|avr.*-|.*-elinos-linux.*-|.*-linux-gnu-|.*mingw32.*-|.*-xcoff.*-|arm-linux-androideabi-|arm-linux-gnueabi-|arm-linux-gnueabihf-|e500v2-gnu-linux-|powerpc-.*-linux.*-|.*-darwin.*-|.*-fastos.*|.*-freebsd.*|.*-qnx.*-|.*-rtems.*-)?ld</executable>
<executable prefix="1">(.*-wrs.*-|.*-sysgo.*-|.*-elf.*-|.*-eabi.*-|.*-eabispe.*-|avr.*-|.*-elinos-linux.*-|.*-linux-gnu-|.*mingw32.*-|.*-xcoff.*-|.*linux-android.*|arm-linux-gnueabi-|arm-linux-gnueabihf-|e500v2-gnu-linux-|powerpc-.*-linux.*-|.*-darwin.*-|.*-fastos.*|.*-freebsd.*|.*-qnx.*-|.*-rtems.*-)?ld</executable>
<version>
<external>${PREFIX}ld -v</external>
<grep regexp="^(GNU ld.*|LLD) (\S+)" group="2"></grep>
Expand All @@ -189,7 +189,7 @@
-->
<compiler_description>
<name>GNAT</name>
<executable prefix="1">(.*-wrs-.*|.*-sysgo.*|.*-elf-.*|.*-eabi-.*|.*-eabispe-.*|avr-.*|.*-elinos-linux.*|.*-linux-gnu-|.*mingw32.*|.*-xcoff-.*|arm-linux-androideabi-|arm-linux-gnueabi-|arm-linux-gnueabihf-|e500v2-gnu-linux-|powerpc-.*-linux.*-|.*-darwin.*-|.*-fastos.*|.*-freebsd.*|.*-qnx.*|.*-rtems.*)?gnatls</executable>
<executable prefix="1">(.*-wrs-.*|.*-sysgo.*|.*-elf-.*|.*-eabi-.*|.*-eabispe-.*|avr-.*|.*-elinos-linux.*|.*-linux-gnu-|.*mingw32.*|.*-xcoff-.*|.*linux-android.*|arm-linux-gnueabi-|arm-linux-gnueabihf-|e500v2-gnu-linux-|powerpc-.*-linux.*-|.*-darwin.*-|.*-fastos.*|.*-freebsd.*|.*-qnx.*|.*-rtems.*)?gnatls</executable>
<version>
<external>${PREFIX}gnatls -v --version</external>
<grep regexp="^GNATLS.+?(\d+(\.\d+)?)" group="1"></grep>
Expand Down
1 change: 1 addition & 0 deletions db/cross.xml
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@
<target name="^arm-linux-androideabi" />
<target name="^arm-linux-gnueabi" />
<target name="^arm-linux-gnueabihf" />
<target name="^aarch64-linux-android" />
<target name="^aarch64-.*linux-gnu" />
<target name="^e500v2-gnu-linux" />
<target name="^.*-netbsd.*$" />
Expand Down
13 changes: 13 additions & 0 deletions db/linker.xml
Original file line number Diff line number Diff line change
Expand Up @@ -676,6 +676,19 @@
</config>
</configuration>

<configuration>
<!-- aarch64-android - cross compiler. -->
<targets>
<target name="^aarch64-linux-android$" />
</targets>
<config>
for Archive_Builder use ("aarch64-linux-android-ar", "cr");
for Archive_Builder_Append_Option use ("q");
for Archive_Indexer use ("aarch64-linux-android-ranlib");
for Archive_Suffix use ".a";
</config>
</configuration>

<configuration>
<!-- aarch64-linux - native compiler. -->
<targets>
Expand Down
6 changes: 6 additions & 0 deletions db/targetset.xml
Original file line number Diff line number Diff line change
Expand Up @@ -647,6 +647,12 @@
<target>arm-linux-androideabi</target>
</targetset>

<!-- aarch64-android -->
<targetset canonical="aarch64-android">
<target>aarch64-android</target>
<target>aarch64-linux-android</target>
</targetset>

<!-- aarch64-pikeos5 -->

<targetset canonical="aarch64-pikeos5">
Expand Down

0 comments on commit f853fc8

Please sign in to comment.