From d53c2c2b72ba3ce10666ba96eb6616f3b976fd88 Mon Sep 17 00:00:00 2001 From: Werner Almesberger Date: Wed, 23 Mar 2011 01:31:34 -0300 Subject: [PATCH] added generation of SMT fab file package (in progress) - atben/README-SMT, atusb/README-SMT: description for SMT fab files - bom/Makefile (%-smt.csv, spotless): renamed *-smt.csv to *-bom.csv - makefiles/Makefile.kicad (fab): split into "fab" (PCB and SMT) and fab-pcb (previous "fab"; only PCB) - makefiles/Makefile.kicad (fab-smt): added packaging process for SMT fab files --- atben/README-SMT | 23 +++++++++++++++++++++++ atusb/README-SMT | 25 +++++++++++++++++++++++++ bom/Makefile | 4 ++-- makefiles/Makefile.kicad | 19 ++++++++++++++++++- 4 files changed, 68 insertions(+), 3 deletions(-) create mode 100644 atben/README-SMT create mode 100644 atusb/README-SMT diff --git a/atben/README-SMT b/atben/README-SMT new file mode 100644 index 0000000..e9d2e61 --- /dev/null +++ b/atben/README-SMT @@ -0,0 +1,23 @@ +Board characteristics: + +- two layers, components only on front +- smallest components are 0402 and 0.5 mm pitch QFN +- the following orientation markings are on the silk screen: + B1: circle near pin 1 + U1: triangle at the corner between pins 1 and 32 + + +Design files: + +atben-bom.csv Bill of materials +atben-pos.csv Automatic insertion file +* footprints + +The PCB design files are in a separate archive, atben-pcb-* + + +Interpretation of files: + +- for all coordinates, the origin is the lower left corner of the board +- coordinates in atben-pos.csv are in inches +- rotation in atben-pos.csv is in degrees, counter-clockwise diff --git a/atusb/README-SMT b/atusb/README-SMT new file mode 100644 index 0000000..ad6c8b1 --- /dev/null +++ b/atusb/README-SMT @@ -0,0 +1,25 @@ +Board characteristics: + +- two layers, components only on front +- smallest components are 0402 and 0.5 mm pitch QFN +- one through-hole component: USB connector CON1 +- the following orientation markings are on the silk screen: + B1: circle near pin 1 + D1: plus sign at the anode + U1, U2: triangle at the corner between pins 1 and 32 + + +Design files: + +atusb-bom.csv Bill of materials +atusb-pos.csv Automatic insertion file +* footprints + +The PCB design files are in a separate archive, atusb-pcb-* + + +Interpretation of files: + +- for all coordinates, the origin is the lower left corner of the board +- coordinates in atusb-pos.csv are in inches +- rotation in atusb-pos.csv is in degrees, counter-clockwise diff --git a/bom/Makefile b/bom/Makefile index 9cca584..99f42a7 100644 --- a/bom/Makefile +++ b/bom/Makefile @@ -40,7 +40,7 @@ show-%: %.ord $(DSC) grep -vw ATRF $< | $(BOOM) prettyord -t - $(DSC) | \ sed 's/^... //' -%-smt.csv: %.ord $(DSC) +%-bom.csv: %.ord $(DSC) grep -vw ATRF $< | $(BOOM) prettyord -f -c -r - $(DSC) >$@ || \ { rm -f $@; exit 1; } @@ -48,5 +48,5 @@ spotless: $(MAKE) -C dk spotless rm -f atusb.lst atusb.par atusb.ord rm -f atben.lst atben.par atben.ord - rm -f atusb-smt.csv atben-smt.csv cntr-smt.csv + rm -f atusb-bom.csv atben-bom.csv cntr-bom.csv rm -f cntr.lst cntr.par cntr.ord diff --git a/makefiles/Makefile.kicad b/makefiles/Makefile.kicad index 17267d0..52688c3 100644 --- a/makefiles/Makefile.kicad +++ b/makefiles/Makefile.kicad @@ -82,6 +82,8 @@ PCB_FILES = README-PCB $(NAME)-PCB_Edges.dxf $(NAME).drl \ $(NAME)-Front.gtl $(NAME)-Back.gbl $(NAME)-Mask_Back.gbs \ $(NAME)-PCB_Edges.gbr +SMT_FILES = README-SMT $(NAME)-bom.csv $(NAME)-pos.csv + gerber: pcbnew --plot=gerber --origin=aux \ -l `pcbnew --list-layers $(BRD) | tr '\012' ,` \ @@ -91,7 +93,9 @@ gerber: || { rm -rf _tmp; exit 1; } mv _tmp $(NAME)-SilkS_Front.gto -fab: gerber +fab: fab-pcb fab-smt + +fab-pcb: gerber pcbnew --plot=dxf --origin=aux -l PCB_Edges $(BRD) pcbnew --drill --origin=aux $(BRD) mkdir -p fab @@ -115,6 +119,19 @@ $(NAME)-pos.csv: $(NAME)Front.pos $(NAME).cmp $(POS2FAB) $(NAME)Front.pos $(NAME).cmp >$@ || \ { rm -f "$@"; exit 1; } +../bom/$(NAME)-bom.csv: + $(MAKE) -C ../bom $(NAME)-bom.csv + +$(NAME)-bom.csv: ../bom/$(NAME)-bom.csv + mv $< $@ + +fab-smt: $(NAME)-pos.csv $(NAME)-bom.csv + mkdir -p fab + tar Ccfz .. fab/$(NAME)-smt-$(VERSION).tar.gz \ + $(SMT_FILES:%=$(DIR)/%) + cd ..; zip -l $(DIR)/fab/$(NAME)-smt-$(VERSION).zip \ + $(SMT_FILES:%=$(DIR)/%) + upload: qippl fab/$(NAME)-pcb-$(VERSION).tar.gz \ fab/$(NAME)-pcb-$(VERSION).zip wpan/fab