-
Notifications
You must be signed in to change notification settings - Fork 51
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'wip/ppc-lynx178' into 'master'
ppc-lynx: add light runtime support See merge request eng/toolchain/bb-runtimes!144
- Loading branch information
Showing
12 changed files
with
339 additions
and
49 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
from support.bsp_sources.target import Target | ||
from support.bsp_sources.archsupport import ArchSupport | ||
|
||
|
||
class Lynx(Target): | ||
def __init__(self): | ||
super().__init__() | ||
self.add_gnat_sources("src/s-macres__libc.adb", "lynx/stdio_symbols.c") | ||
|
||
def has_libc(self, profile): | ||
return True | ||
|
||
@property | ||
def has_single_precision_fpu(self): | ||
return True | ||
|
||
@property | ||
def has_double_precision_fpu(self): | ||
return True | ||
|
||
@property | ||
def is_os_target(self): | ||
return True | ||
|
||
@property | ||
def has_command_line_arguments(self): | ||
return True | ||
|
||
@property | ||
def is_legacy_format(self): | ||
return True | ||
|
||
|
||
class PPCLynx(Lynx): | ||
def __init__(self): | ||
super().__init__() | ||
|
||
@property | ||
def target(self): | ||
return "ppc-lynx178" | ||
|
||
@property | ||
def name(self): | ||
return "lynx" | ||
|
||
@property | ||
def system_ads(self): | ||
return { | ||
"light": "system-lynxos178-ppc.ads", | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
/**************************************************************************** | ||
* * | ||
* GNAT RUN-TIME COMPONENTS * | ||
* * | ||
* S T D I O S Y M B O L S * | ||
* * | ||
* C Implementation File * | ||
* * | ||
* Copyright (C) 2024-2024, Free Software Foundation, Inc. * | ||
* * | ||
* GNAT is free software; you can redistribute it and/or modify it under * | ||
* terms of the GNU General Public License as published by the Free Soft- * | ||
* ware Foundation; either version 3, or (at your option) any later ver- * | ||
* sion. GNAT is distributed in the hope that it will be useful, but WITH- * | ||
* OUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY * | ||
* or FITNESS FOR A PARTICULAR PURPOSE. * | ||
* * | ||
* As a special exception under Section 7 of GPL version 3, you are granted * | ||
* additional permissions described in the GCC Runtime Library Exception, * | ||
* version 3.1, as published by the Free Software Foundation. * | ||
* * | ||
* You should have received a copy of the GNU General Public License and * | ||
* a copy of the GCC Runtime Library Exception along with this program; * | ||
* see the files COPYING3 and COPYING.RUNTIME respectively. If not, see * | ||
* <http://www.gnu.org/licenses/>. * | ||
* * | ||
* GNAT was originally developed by the GNAT team at New York University. * | ||
* Extensive contributions were provided by Ada Core Technologies Inc. * | ||
* * | ||
****************************************************************************/ | ||
|
||
#include <stdio.h> | ||
|
||
/* | ||
* stdin, stdout and stderr are C defines and must be exposed for | ||
* a-textio__ppclynx178.adb. | ||
*/ | ||
|
||
FILE * | ||
__gnat_constant_stdin (void) | ||
{ | ||
return stdin; | ||
} | ||
|
||
FILE * | ||
__gnat_constant_stdout (void) | ||
{ | ||
return stdout; | ||
} | ||
|
||
FILE * | ||
__gnat_constant_stderr (void) | ||
{ | ||
return stderr; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.