Mail Archives: geda-user/2021/07/01/14:46:30
Roland Lutz:
> On Thu, 1 Jul 2021, karl AT aspodata DOT se [via geda-user AT delorie DOT com] wrote:
> > I want to have a program that finds dependencies between a .sch and the
> > .sch and .sym files it depends on, suitable for makefiles, to write
> > lines like:
> >
> > a.sch: <somewhere>/a.sym <there>/b.sch ...
>
> Ok, so I couldn't resist
:)
> and hacked together a small backend that doesn't
> have the limitations of `makedepend'; see attached file. After unzipping,
> move it to PREFIX/lib/xorn/backends/ and run
>
> $ gnetlist -o deps.mk -p makedep -O cir top_a.sch top_b.sch top_c.sch
>
> You can omit `-O cir' if you are not interested in the .cir dependencies.
What is that cir thing?
///
$ /usr/local/bin/gnetlist -o deps.mk -p makedep -O cir top.sch
Library "user" contains symbols with conflicting names:
[...
a lot of duplicates in my mirror of cvs.gedasymbols.org,
no surprise there
...]
Loading schematic [top.sch]
Loading schematic [/home/karl/git/openhw/share/gschem/_design_parts/smarc_iMX8MM_power_connection.sch]
Loading schematic [/home/karl/git/openhw/share/gschem/_design_parts/smarc_iMX8MM_power.sch]
Loading schematic [/home/karl/git/openhw/share/gschem/_sub_page/pwr.mc33063.5Vnl.sch]
Loading schematic [/home/karl/git/openhw/share/gschem/_sub_page/pwr.ncp700b_1.8.sch]
Loading schematic [/home/karl/git/openhw/share/gschem/_sub_page/pwr.mcp16301_3V3_sot666.sch]
Loading schematic [/home/karl/git/openhw/share/gschem/_sub_page/pwr.mcp16301_5V_sot666.sch]
Loading schematic [/home/karl/git/openhw/share/gschem/_sub_page/pwr.mcp16301_12V_sot666.sch]
Loading schematic [/home/karl/git/openhw/share/gschem/_sub_page/pwr.lm2676.18V_2A.sch]
/home/karl/git/openhw/share/gschem/_sub_page/pwr.mc33063.5Vnl.sch: error: net= attribute can't be used on an I/O symbol
/home/karl/git/openhw/share/gschem/_sub_page/pwr.mc33063.5Vnl.sch: error: net= attribute can't be used on an I/O symbol
/home/karl/git/openhw/share/gschem/_sub_page/pwr.mc33063.5Vnl.sch: error: net= attribute can't be used on an I/O symbol
/home/karl/git/openhw/share/gschem/_sub_page/pwr.ncp700b_1.8.sch: error: net= attribute can't be used on an I/O symbol
/home/karl/git/openhw/share/gschem/_sub_page/pwr.ncp700b_1.8.sch: error: net= attribute can't be used on an I/O symbol
/home/karl/git/openhw/share/gschem/_sub_page/pwr.ncp700b_1.8.sch: error: net= attribute can't be used on an I/O symbol
/home/karl/git/openhw/share/gschem/_sub_page/pwr.ncp700b_1.8.sch: error: net= attribute can't be used on an I/O symbol
/home/karl/git/openhw/share/gschem/_sub_page/pwr.mcp16301_3V3_sot666.sch: error: net= attribute can't be used on an I/O symbol
/home/karl/git/openhw/share/gschem/_sub_page/pwr.mcp16301_3V3_sot666.sch: error: net= attribute can't be used on an I/O symbol
/home/karl/git/openhw/share/gschem/_sub_page/pwr.mcp16301_3V3_sot666.sch: error: net= attribute can't be used on an I/O symbol
/home/karl/git/openhw/share/gschem/_sub_page/pwr.mcp16301_3V3_sot666.sch: error: net= attribute can't be used on an I/O symbol
/home/karl/git/openhw/share/gschem/_sub_page/pwr.mcp16301_5V_sot666.sch: error: net= attribute can't be used on an I/O symbol
/home/karl/git/openhw/share/gschem/_sub_page/pwr.mcp16301_5V_sot666.sch: error: net= attribute can't be used on an I/O symbol
/home/karl/git/openhw/share/gschem/_sub_page/pwr.mcp16301_5V_sot666.sch: error: net= attribute can't be used on an I/O symbol
/home/karl/git/openhw/share/gschem/_sub_page/pwr.mcp16301_5V_sot666.sch: error: net= attribute can't be used on an I/O symbol
/home/karl/git/openhw/share/gschem/_sub_page/pwr.mcp16301_12V_sot666.sch: error: net= attribute can't be used on an I/O symbol
/home/karl/git/openhw/share/gschem/_sub_page/pwr.mcp16301_12V_sot666.sch: error: net= attribute can't be used on an I/O symbol
/home/karl/git/openhw/share/gschem/_sub_page/pwr.mcp16301_12V_sot666.sch: error: net= attribute can't be used on an I/O symbol
/home/karl/git/openhw/share/gschem/_sub_page/pwr.mcp16301_12V_sot666.sch: error: net= attribute can't be used on an I/O symbol
/home/karl/git/openhw/share/gschem/_sub_page/pwr.lm2676.18V_2A.sch: error: net= attribute can't be used on an I/O symbol
/home/karl/git/openhw/share/gschem/_sub_page/pwr.lm2676.18V_2A.sch: error: net= attribute can't be used on an I/O symbol
/home/karl/git/openhw/share/gschem/_sub_page/pwr.lm2676.18V_2A.sch: error: net= attribute can't be used on an I/O symbol
error: refdes conflict across hierarchy: refdes `_M1' is used by package `M1' on page `_' and by package `M1' on page `_'
error: net name conflict across hierarchy: net name `_/GND' is used by net `GND' on page `_/' and by net `GND' on page `_/'
$ cat deps.mk
top-1.sch:
top.cir: top-1.sch
$
well, the deps.mk doesn't help, but at least I got a list of used
subsheets (from symbols with source=...).
The net attribute on a I/O symbol works perfectly well on lepton btw.
About the refdes conflict, they are supposed to be the same component,
so no conflict was intended, they were intended to be the sam thing,
same with the net name.
Regards,
/Karl Hammar
- Raw text -