avr-gcc-list
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[avr-gcc-list] Long awaited autoconf/automake example


From: Nick Downing
Subject: [avr-gcc-list] Long awaited autoconf/automake example
Date: 12 Jun 2003 21:23:22 +1000

dear List

Yay, yay, yippee, hooray, after an evening of intensive debugging I am
ready to present a "first cut" of an AVR program which is portable to
Linux.  There's still a few rough edges, eg. a few warnings during the
"configure" stage that I am planning to work on some more.  In the mean
time I would appreciate everyone's comments.  The brief documentation:

1.  It's a "hello, world" program which has been gettextized, and it
supports one extra language (test this by running "LANGUAGE=nl hello").

2.  When compiling for an AVR target you have to give "--disable-nls" to
prevent it trying to compile "libintl" for the AVR (this doesn't work).

3.  When compiling for the default target (your Linux / Windows PC), you
give the commands "configure ; make" then, as root, "make install".

4.  When compiling for the default target, the installed files are:

/usr/local/bin/hello
/usr/local/share/locale/LC_MESSAGE/locale/hello-hytech.mo

5.  When compiling for the AVR, you have a choice of MCUs.  At present
the choice is restricted to "at90s4433" or "at90s8535".  The default is
"at90s4433".  The command lines I used for testing the package were:

configure --host=avr --with-mcu=at90s8535 --disable-nls
make

6.  When compiling for the AVR target, the installed files are:

/usr/local/share/hello-hytech/hello.hex
/usr/local/share/hello-hytech/hello.eep

OK!  Good luck!  I nearly forgot to mention, the package is here:
http://www.hytechscales.com/avr_gcc_files/hello-hytech-1.0.tar.gz

I would appreciate everyone's comments.  For my own needs I plan to make
the UART baudrate, and the AVR clock frequency, controllable via --with
switches to configure.  (I know --with is supposed to be for packages,
but --enable-baud-rate just doesn't sound right).  Any other good ideas?

cheers,
Nick



reply via email to

[Prev in Thread] Current Thread [Next in Thread]