[<<] [<] Page 1 of 1 [>] [>>] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Subject:
Debian templates for dsPIC build toolchain 2.01
From: John Steele Scott ####@####.#### Date: 21 Feb 2006 01:39:15 +0000 Message-Id: <dtdqvn$o3q$1@sea.gmane.org> Hi, Attached to this email are the templates needed to build debs for GCC and Binutils corresponding to Microchip's version 2.01 toolchain. There is not much changed in this release. The main thing which is of more general interest is a set of general rules for GNU make. This ruleset is not from Microchip, but was written by me. The file is in the tarball as pic30-debian-2.01/pic30-support-2.01/pic30-rules.mk. They allow small makefiles to be written like so: DSPIC := 30f3013 PROJECT := blinkenlight OBJS := main.o foo.o bar.o include /usr/share/pic30-support/pic30-rules.mk Implicit rules are used to create object files from C or Assembler as necessary. cheers, John | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Subject:
RE: Debian templates for dsPIC build toolchain 2.01
From: John Steele Scott ####@####.#### Date: 22 Feb 2006 22:47:53 +0000 Message-Id: <dtiplu$k2n$1@sea.gmane.org> Chen Xiao Fan wrote: > Thanks. The make rule file is quite nice. Slight modification will make > it work with pic30-coff as well (just change elf to cof where applicable). > It is also working under Windows with minor modifications... > > Just one question, if the code needs to link to other libraries > (eg: the example code CE019_PIC needs dsp library libdsp-elf.a or > libdsp-coff.a), what should I do in the Makefile without changing > the rule file pic30-rules.mk? Sorry I am not so good at writing > Makefile. Using my example from before, if you wanted to link in libdsp-coff.a, you just need to add it to the LDLIBS variable, _after_ the rules file is included. So the makefile becomes: DSPIC := 30f3013 PROJECT := blinkenlight OBJS := main.o foo.o bar.o include /usr/share/pic30-support/pic30-rules.mk LDLIBS += -ldsp-coff cheers, John | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Subject:
RE: RE: Debian templates for dsPIC build toolchain 2.01
From: John Steele Scott ####@####.#### Date: 23 Feb 2006 22:39:05 +0000 Message-Id: <dtldhc$int$1@sea.gmane.org> Chen Xiao Fan wrote: > By the way, I tried the Debian templates under Ubuntu 5.10 > Breezy and they work flawlessly (I've gcc-3.3 installed along > with the default gcc-4.0.x). Yes, I'm using Breezy myself. The tools should work on any Debian system though. I used the Debian mingw toolchain as a basis for my files. cheers, John | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
[<<] [<] Page 1 of 1 [>] [>>] |