From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,4e7df01d3b597a03 X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Received: by 10.68.211.136 with SMTP id nc8mr1337815pbc.6.1335269783505; Tue, 24 Apr 2012 05:16:23 -0700 (PDT) Path: r9ni92978pbh.0!nntp.google.com!news1.google.com!news2.google.com!npeer01.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!post02.iad.highwinds-media.com!news.flashnewsgroups.com-b7.4zTQh5tI3A!not-for-mail From: Stephen Leake Newsgroups: comp.lang.ada Subject: Re: Converting a simple makefile in a GPS project. References: <428617.3.1334627550218.JavaMail.geo-discussion-forums@ynnn9> <82bompjjcc.fsf@stephe-leake.org> <20445554.1190.1335148453769.JavaMail.geo-discussion-forums@ynbi5> Date: Tue, 24 Apr 2012 08:17:07 -0400 Message-ID: <82ty09gw8s.fsf@stephe-leake.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2 (windows-nt) Cancel-Lock: sha1:yo2jo4dNImj1jf+pamm/sfnAdXU= MIME-Version: 1.0 X-Complaints-To: abuse@flashnewsgroups.com Organization: FlashNewsgroups.com X-Trace: 5344b4f969997e029e66113434 X-Received-Bytes: 3959 Content-Type: text/plain; charset=us-ascii Date: 2012-04-24T08:17:07-04:00 List-Id: "Rego, P." writes: > Now I got to run all the line (and variants) > avr-gnatmake main -o $@ -Os -mmcu=avr4 --RTS=zfp -largs crtm8._o -nostdlib -lgcc -mavr4 -Tdata=0x00800200 > > from makefile. Now the next step is to include the lines in .gpr project file > (1) avr-objdump -h -S main.elf >"main.lss" > (2) avr-objcopy -O ihex $< $@ I'd have given up on gpr and kept the makefile, since it's simpler (and better documented); why are you bothering with the gpr file? > in a way that when I run Build, the Builder generates inside the bin > folder the main.elf (already ok), the main.lss, and the main.hex > files. The avr-size, avrdude and clean parts are not necessary; (the > avrdude I can execute from an outside batch, no problem). > > I looked into gprbuilder_ug documentation and there are lots of info, > I did not find something like it. Maybe would exist a more direct way > inside .gpr project? Here's what I use to run 'auto_text_io', which is similar. First, auto_text_io.xml, in /share/gprconfig: Auto_Text_IO auto_text_io Auto_Text_IO auto_text_io -? ${PREFIX}gcc -dumpmachine package Compiler is for Driver ("Auto_Text_IO") use "${PATH}auto_text_io"; for Include_Path ("Auto_Text_IO") use "ADA_INCLUDE_PATH"; for Required_Switches ("Auto_Text_IO") use ("-f"); for Dependency_Switches ("Auto_Text_IO") use ("-M"); end Compiler; package Naming is for Body_Suffix ("Auto_Text_IO") use ".ads"; end Naming; for Inherit_Source_Path ("Auto_Text_IO") use ("Ada"); for Object_Generated ("Auto_Text_IO") use "false"; Then a gpr file sal_text_io.gpr: project SAL_Text_IO is for Languages use ("Auto_Text_IO"); for Source_Dirs use ("../Source_Common"); for Object_Dir use "auto"; for Source_Files use ("sal-gen_math-gen_den_hart.ads", "sal-gen_math-gen_dof_2.ads", "sal-gen_math-gen_dof_3.ads", "sal-gen_math-gen_dof_6.ads", "sal-gen_math-gen_manipulator.ads", "sal-gen_math-gen_polynomials.ads", "sal-gen_math-gen_scalar.ads", "sal-interfaces_more.ads", "sal-time_conversions.ads"); end SAL_Text_IO; and a makefile rule to run it: text_io : gprbuild -p -k --autoconf=../auto/auto.cgpr --target=x86-windows -Psal_text_io.gpr Your application should be similar. -- -- Stephe