From abd5ca46c824ed9d60d2bc62219cfe7dd5e2f611 Mon Sep 17 00:00:00 2001 From: florian Date: Mon, 8 Aug 2011 20:10:19 +0000 Subject: [PATCH] + build unit and lazarus project for the embedded target git-svn-id: trunk@18151 - --- .gitattributes | 2 ++ rtl/embedded/buildrtl.lpi | 63 +++++++++++++++++++++++++++++++++++++++ rtl/embedded/buildrtl.pp | 27 +++++++++++++++++ 3 files changed, 92 insertions(+) create mode 100644 rtl/embedded/buildrtl.lpi create mode 100644 rtl/embedded/buildrtl.pp diff --git a/.gitattributes b/.gitattributes index 452ae4670e..ab671c5663 100644 --- a/.gitattributes +++ b/.gitattributes @@ -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 diff --git a/rtl/embedded/buildrtl.lpi b/rtl/embedded/buildrtl.lpi new file mode 100644 index 0000000000..0a19ee181e --- /dev/null +++ b/rtl/embedded/buildrtl.lpi @@ -0,0 +1,63 @@ + + + + + + + + + + + + + + + + + </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 "if not exist ../units/$(TargetCPU)-embedded mkdir ../units/$(TargetCPU)-embedded""/> + <ShowAllMessages Value="True"/> + </ExecuteBefore> + </Other> + </CompilerOptions> +</CONFIG> diff --git a/rtl/embedded/buildrtl.pp b/rtl/embedded/buildrtl.pp new file mode 100644 index 0000000000..01771945dc --- /dev/null +++ b/rtl/embedded/buildrtl.pp @@ -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.