Merge branch 'release-GW4203B' into dev-GW4203B

This commit is contained in:
Zane Kaminski 2024-04-24 06:19:25 -04:00
commit 563fa8a965
2 changed files with 10 additions and 1 deletions

1
.gitignore vendored
View File

@ -40,3 +40,4 @@ CPLD/LCMXO*/impl1/*
!CPLD/LCMXO*/impl1/*.twr !CPLD/LCMXO*/impl1/*.twr
!CPLD/LCMXO*/impl1/*.tw1 !CPLD/LCMXO*/impl1/*.tw1
*.bak *.bak
*.lck

View File

@ -2,8 +2,13 @@ KICAD = /Applications/KiCad/KiCad.app/Contents/MacOS/kicad-cli
LAYERS = F.Cu,In1.Cu,In2.Cu,B.Cu,F.Paste,F.SilkS,B.SilkS,F.Mask,B.Mask,Edge.Cuts LAYERS = F.Cu,In1.Cu,In2.Cu,B.Cu,F.Paste,F.SilkS,B.SilkS,F.Mask,B.Mask,Edge.Cuts
CHIPTYPE = $(shell echo $@ | cut -f2 -d"/") CHIPTYPE = $(shell echo $@ | cut -f2 -d"/")
PYTHON = python3
BOM_SCRIPT = ../GW_KiCADBuild/export_bom.py
F_PCB = $@/../RAM2E.kicad_pcb F_PCB = $@/../RAM2E.kicad_pcb
F_SCH = $@/../RAM2E.kicad_sch F_SCH = $@/../RAM2E.kicad_sch
F_NETLIST = $@/RAM2E-NET.xml
F_BOM = $@/RAM2E-BOM.csv
F_POS_N = $@/RAM2E-top-pos F_POS_N = $@/RAM2E-top-pos
F_POS = $(F_POS_N).csv F_POS = $(F_POS_N).csv
F_POS_VCORE = $(F_POS_N).VCORE.csv F_POS_VCORE = $(F_POS_N).VCORE.csv
@ -18,6 +23,8 @@ CMD_GERBER = pcb export gerbers $(OPT_GERBER) -o $@/ $(F_PCB)
CMD_DRILL = pcb export drill -o $@/ $(F_PCB) CMD_DRILL = pcb export drill -o $@/ $(F_PCB)
CMD_NETLIST = sch export netlist --format kicadxml -o $(F_NETLIST) $(F_SCH)
OPT_POS = --smd-only --units mm --side front --format csv OPT_POS = --smd-only --units mm --side front --format csv
CMD_POS = pcb export pos $(OPT_POS) -o $(F_POS) $(F_PCB) CMD_POS = pcb export pos $(OPT_POS) -o $(F_POS) $(F_PCB)
@ -43,10 +50,11 @@ Hardware/MAX/gerber Hardware/LCMXO2/gerber:
$(KICAD) $(CMD_GERBER) $(KICAD) $(CMD_GERBER)
$(KICAD) $(CMD_DRILL) $(KICAD) $(CMD_DRILL)
$(KICAD) $(CMD_POS) $(KICAD) $(CMD_POS)
$(KICAD) $(CMD_NETLIST)
sed -i '' 's/PosX/MidX/g' $(F_POS) sed -i '' 's/PosX/MidX/g' $(F_POS)
sed -i '' 's/PosY/MidY/g' $(F_POS) sed -i '' 's/PosY/MidY/g' $(F_POS)
sed -i '' 's/Rot/Rotation/g' $(F_POS) sed -i '' 's/Rot/Rotation/g' $(F_POS)
sed -i '' '/"R7"/d' $(F_POS) $(PYTHON) $(BOM_SCRIPT) $(F_NETLIST) $(F_BOM)
cp $(F_POS) $(F_POS_VCORE) cp $(F_POS) $(F_POS_VCORE)
cp $(F_POS) $(F_POS_JUMPER) cp $(F_POS) $(F_POS_JUMPER)
sed -i '' '/"R1"/d' $(F_POS_VCORE) sed -i '' '/"R1"/d' $(F_POS_VCORE)