www.delorie.com/archives/browse.cgi   search  
Mail Archives: geda-user/2021/07/01/14:46:30

X-Authentication-Warning: delorie.com: mail set sender to geda-user-bounces using -f
X-Recipient: geda-user AT delorie DOT com
X-Mailer: exmh version 2.8.0 04/21/2012 with nmh-1.7+dev
X-Exmh-Isig-CompType: repl
X-Exmh-Isig-Folder: inbox
From: "karl AT aspodata DOT se [via geda-user AT delorie DOT com]" <geda-user AT delorie DOT com>
To: geda-user AT delorie DOT com
Subject: Re: [geda-user] how to find sch-sym depenencies for Makefile
In-reply-to: <alpine.DEB.2.21.2107011920230.3544@nimbus>
References: <20210701152018 DOT F248283D521B AT turkos DOT aspodata DOT se> <alpine DOT DEB DOT 2 DOT 21 DOT 2107011920230 DOT 3544 AT nimbus>
Comments: In-reply-to Roland Lutz <rlutz AT hedmen DOT org>
message dated "Thu, 01 Jul 2021 19:34:44 +0200."
Mime-Version: 1.0
Message-Id: <20210701184511.1646D83D521B@turkos.aspodata.se>
Date: Thu, 1 Jul 2021 20:45:11 +0200 (CEST)
X-Virus-Scanned: ClamAV using ClamSMTP
Reply-To: geda-user AT delorie DOT com
Errors-To: nobody AT delorie DOT com
X-Mailing-List: geda-user AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

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 -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019