1
0
mirror of git://projects.qi-hardware.com/eda-tools.git synced 2025-04-21 12:27:27 +03:00

Added sanity check for characteristics and corrected omissions/errors found.

- boom/manu/Makefile.common (sane): new target to check that values are
  well-formed and that all required fields are present
- boom/manu/murata/murata.gen (GRM*): added references to catalog pages
- boom/manu/murata/murata.gen (GRM*): added footprints 1808, 1812, and
  2220
- boom/manu/murata/murata.gen (GRM*): ordered materials alphabetically
- boom/manu/murata/murata.gen (GRM*): added materials Z5UY5V
- boom/manu/murata/murata.gen (GRM*): added voltages 250V, 630V, 1kV, abd
  3.15kV
- boom/manu/panasonic/panasonic.gen (ERJ*): tolerance used the wrong field
- boom/manu/yageo/yageo.gen (CC*): added voltage 500V
This commit is contained in:
Werner Almesberger
2010-10-17 13:15:33 -03:00
parent fd67bc9f3e
commit bf2e9f2338
5 changed files with 62 additions and 6 deletions

View File

@@ -4,7 +4,7 @@ UC_NAME = $(shell echo $(NAME) | tr [a-z] [A-Z])
EQU = ../../dist/all.equ
.PHONY: all test
.PHONY: all test sane
all: $(NAME).chr
@@ -13,3 +13,34 @@ $(NAME).chr: $(EQU) $(NAME).gen
test:
$(BOOM) gen2chr -n $(UC_NAME) $(EQU) $(NAME).gen
LIMIT = sed '1{x;s/.*/--- $(1) ---/p;x;};6{s/.*/.../;q;}'
MALFORMED = @grep '\<T=$(2)\>' $(NAME).chr | \
grep -v '\<$(3)=[0-9][0-9.]*[fnpumkMG]\?$(4)\>' | \
$(call LIMIT,$(1))
ABSENT = @grep '\<T=$(2)\>' $(NAME).chr | grep -v '\<$(3)=' | \
$(call LIMIT,$(1))
sane:
@# general
$(call ABSENT,FP missing,.*,FP)
@# R
$(call MALFORMED,Malformed R=,R,R,R)
$(call ABSENT,T=R without ",R,P)
@# special case: 0R has no meaningful tolerance
@grep '\<T=R\>' $(NAME).chr | grep -v '\<R=0R\>' | \
grep -v '\<TOL=' | $(call LIMIT,T=R without TOL)
@# V is optional
@# TC ?
@# C
$(call MALFORMED,Malformed C=,C,C,F)
$(call ABSENT,T=C without M,C,M)
$(call ABSENT,T=C without V,C,V)
$(call ABSENT,T=C without TOL,C,TOL)