Re: Debian templates for dsPIC build toolchain 2.05
"Xiaofan Chen" <[email protected]> Fri, 15 Dec 2006 20:13:37 +0800
| Newsgroups | gmane.comp.hardware.microcontrollers.gnupic |
|---|---|
| Message-ID | <[email protected]> |
On 12/15/06, Xiaofan Chen <[email protected]> wrote: > On 12/15/06, John Steele Scott <[email protected]> wrote: > > Hi everybody, > > > > I finally got around to patching Microchip's C30 version 2.05 to build and > > operate nicely on Debian. This means people should be able to compile code > > for the 24F, 24H and 33F devices now. I'm still only using the 30F family > > myself, (actually only the 30F3013 these days). > > > > Basic instructions: Unzip the attached file, which gives you three > > directories. For each directory you want to build: fill in the "upstream" > > subdirectory appropriately, then run "dpkg-buildpackage -rfakeroot -b". > > > > > > Thanks. I could build the pic30-binutils and pic30-support package but > I am having a problem building the pic30-gcc package (the build process > looks okay). > > rm debian/pic30-gcc/usr/share/man/man1/{cpp,gcov}.1* > rm: cannot remove `debian/pic30-gcc/usr/share/man/man1/{cpp,gcov}.1*': > No such file or directory > make: *** [install-stamp] Error 1 > > I am using Ubuntu 6.10. Slightly changing the rules file solved the problem. File pic30-deb-templates-2.05/pic30-gcc-2.05/debian/rules: rm debian/pic30-gcc/usr/share/man/man1/{cpp,gcov}.1* --> rm debian/$(package)/$(man1dir)/cpp.1* rm debian/$(package)/$(man1dir)/gcov.1* By the way, Piklab has integrated C30 support (wine or native). The following is the build log with the default C30 test project for Piklab. /usr/bin/pic30-elf-gcc -mcpu=30F2010 -I/usr/pic30-elf/include/ -S -g test_c.c /usr/bin/pic30-elf-as -g -a=test.lst -otest.o -I/usr/share/pic30-support/inc/ -p30F2010 test.s /usr/bin/pic30-elf-as -g -a=test_c.lst -otest_c.o -I/usr/share/pic30-support/inc/ test_c.s /usr/bin/pic30-elf-ld -Map test_c.map -otest_c.elf -L/usr/pic30-elf/lib/ -T/usr/share/pic30-support/gld/p30f2010.gld test_c.o test.o /usr/bin/pic30-elf-bin2hex test_c.elf *** Success *** Regards, Xiaofan