mirror of
https://gitea.osmocom.org/sim-card/simtrace.git
synced 2026-03-27 02:38:37 +03:00
hw: Rakefile can check component properties
This commit is contained in:
@@ -52,7 +52,7 @@ def read_sch(path)
|
|||||||
if element[:type]=="C" then
|
if element[:type]=="C" then
|
||||||
element[:symbol] = l.split(" ")[-1]
|
element[:symbol] = l.split(" ")[-1]
|
||||||
# get the default attributes (if any)
|
# get the default attributes (if any)
|
||||||
element[:bloc] = symbols[element[:symbol]]
|
element[:block] = symbols[element[:symbol]]
|
||||||
end
|
end
|
||||||
else
|
else
|
||||||
raise "don't know how to handle line: #{l}"
|
raise "don't know how to handle line: #{l}"
|
||||||
@@ -131,6 +131,7 @@ task :read
|
|||||||
puts name+" has no ID" if element[:block]["refdes"].include? "?"
|
puts name+" has no ID" if element[:block]["refdes"].include? "?"
|
||||||
["device","value","footprint","manufacturer","manufacturer-part","documentation","digikey-part"].each do |attribute|
|
["device","value","footprint","manufacturer","manufacturer-part","documentation","digikey-part"].each do |attribute|
|
||||||
puts name+" has no "+attribute unless element[:block][attribute]
|
puts name+" has no "+attribute unless element[:block][attribute]
|
||||||
|
break if element[:block]["footprint"] =~ /^HEADER/ or element[:block]["footprint"] =~ /^JUMPER/
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user