+ build unit and lazarus project for the embedded target

git-svn-id: trunk@18151 -
This commit is contained in:
florian 2011-08-08 20:10:19 +00:00
parent 144e59a1a7
commit abd5ca46c8
3 changed files with 92 additions and 0 deletions

2
.gitattributes vendored
View File

@ -7011,6 +7011,8 @@ rtl/embedded/arm/stellaris.pp svneol=native#text/plain
rtl/embedded/arm/stm32f103.pp svneol=native#text/plain
rtl/embedded/avr/atmega128.pp svneol=native#text/plain
rtl/embedded/avr/start.inc svneol=native#text/plain
rtl/embedded/buildrtl.lpi svneol=native#text/plain
rtl/embedded/buildrtl.pp svneol=native#text/plain
rtl/embedded/check.inc svneol=native#text/plain
rtl/embedded/empty.cfg svneol=native#text/plain
rtl/embedded/rtl.cfg svneol=native#text/plain

63
rtl/embedded/buildrtl.lpi Normal file
View File

@ -0,0 +1,63 @@
<?xml version="1.0"?>
<CONFIG>
<ProjectOptions>
<Version Value="7"/>
<General>
<Flags>
<MainUnitHasUsesSectionForAllUnits Value="False"/>
<MainUnitHasCreateFormStatements Value="False"/>
<MainUnitHasTitleStatement Value="False"/>
<Runnable Value="False"/>
<LRSInOutputDirectory Value="False"/>
</Flags>
<SessionStorage Value="InProjectDir"/>
<MainUnit Value="0"/>
<TargetFileExt Value=".exe"/>
<Title Value="buildrtl"/>
</General>
<VersionInfo>
<ProjectVersion Value=""/>
</VersionInfo>
<PublishOptions>
<Version Value="2"/>
<IgnoreBinaries Value="False"/>
<IncludeFileFilter Value="*.(pas|pp|inc|lfm|lpr|lrs|lpi|lpk|sh|xml)"/>
<ExcludeFileFilter Value="*.(bak|ppu|ppw|o|so);*~;backup"/>
</PublishOptions>
<RunParams>
<local>
<FormatVersion Value="1"/>
<LaunchingApplication PathPlusParams="/usr/X11R6/bin/xterm -T 'Lazarus Run Output' -e $(LazarusDir)/tools/runwait.sh $(TargetCmdLine)"/>
</local>
</RunParams>
<Units Count="1">
<Unit0>
<Filename Value="buildrtl.pp"/>
<IsPartOfProject Value="True"/>
<UnitName Value="buildrtl"/>
</Unit0>
</Units>
</ProjectOptions>
<CompilerOptions>
<Version Value="8"/>
<SearchPaths>
<IncludeFiles Value="../inc/;../$(TargetCPU)/;../objpas/classes/;../objpas/sysutils/;../objpas/;$(TargetCPU)/"/>
<OtherUnitFiles Value="../objpas/;../objpas/classes/;../objpas/sysutils/;../inc/;../$(TargetCPU)/"/>
<UnitOutputDirectory Value="../units/$(TargetCPU)-embedded"/>
</SearchPaths>
<Parsing>
<Style Value="2"/>
</Parsing>
<Other>
<Verbosity>
<ShowNotes Value="False"/>
<ShowHints Value="False"/>
</Verbosity>
<CompilerPath Value="$(CompPath)"/>
<ExecuteBefore>
<Command Value="cmd.exe /c &quot;if not exist ../units/$(TargetCPU)-embedded mkdir ../units/$(TargetCPU)-embedded&quot;"/>
<ShowAllMessages Value="True"/>
</ExecuteBefore>
</Other>
</CompilerOptions>
</CONFIG>

27
rtl/embedded/buildrtl.pp Normal file
View File

@ -0,0 +1,27 @@
{ This unit is only used to edit the rtl with lazarus }
unit buildrtl;
interface
uses
system, unixtype, ctypes, baseunix, strings, objpas, macpas, syscall, unixutil,
fpintres, heaptrc, lineinfo, lnfodwrf,
termio, unix, linux, initc, cmem, mmx,
crt, printer, linuxvcs,
sysutils, typinfo, math, matrix, varutils,
charset, ucomplex, getopts,
errors, sockets, gpm, ipc, serial, terminfo, dl, dynlibs,
video, mouse, keyboard, variants, types, dateutils, sysconst, fmtbcd,
cthreads, classes, fgl, convutils, stdconvs, strutils, rtlconsts, dos, objects, cwstring, fpcylix, clocale,
exeinfo,
{$ifdef CPUARM}
stellaris
{$endif CPUARM}
{$ifdef CPUAVR}
atmega128
{$endif CPUAVR}
;
implementation
end.