gnupic: Thread: Debian templates for dsPIC build toolchain 2.05


[<<] [<] Page 1 of 1 [>] [>>]
Subject: Debian templates for dsPIC build toolchain 2.05
From: John Steele Scott ####@####.####
Date: 15 Dec 2006 04:56:01 +0000
Message-Id: <elt9s2$pk$1@sea.gmane.org>

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".

Where to get the upstream bits:
pic30-gcc:
<http://ww1.microchip.com/downloads/en/DeviceDoc/mplabc30v2_05.tgz>

pic30-binutils:
<http://ww1.microchip.com/downloads/en/DeviceDoc/mplabalc30v2_05.tgz>

pic30-support (optional, non-free):
Copy over the include, lib and support directories from a Windows install of
MPLAB C30, as well as the file c30_device.info.

If you don't use the pic30-support package, grab the file c30_device.info
from the binutils or gcc tarballs and copy it to /usr/share/pic30-support/.
I've patched the binutils so they won't complain if c30_device.info is
missing, but if you're using GCC rather than pure assembly you should
probably install c30_device.info.

If people have any questions, I'll be around next week, but then away until
the second week of January.

cheers,

John

[Content type application/x-bzip2 not shown. Download]
Subject: Re: Debian templates for dsPIC build toolchain 2.05
From: John Steele Scott ####@####.####
Date: 17 Dec 2006 22:50:54 +0000
Message-Id: <em4hjj$m0o$1@sea.gmane.org>

Xiaofan Chen wrote:
>> 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*

Thanks for reporting this. I've applied your fix to my rules file. Edgy uses
dash as it's /bin/sh, so bash brace expansion cannot be taken for granted.
I'm still using dapper here.

cheers,

John

[<<] [<] Page 1 of 1 [>] [>>]


Powered by ezmlm-browse 0.20.