Date:2011-03-23 05:31:34 (8 years 8 months ago)
Author:Werner Almesberger
Commit:d53c2c2b72ba3ce10666ba96eb6616f3b976fd88
Message: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
Files: atben/README-SMT (1 diff)
atusb/README-SMT (1 diff)
bom/Makefile (2 diffs)
makefiles/Makefile.kicad (3 diffs)

Change Details

atben/README-SMT
1Board characteristics:
2
3- two layers, components only on front
4- smallest components are 0402 and 0.5 mm pitch QFN
5- the following orientation markings are on the silk screen:
6  B1: circle near pin 1
7  U1: triangle at the corner between pins 1 and 32
8
9
10Design files:
11
12atben-bom.csv Bill of materials
13atben-pos.csv Automatic insertion file
14* footprints
15
16The PCB design files are in a separate archive, atben-pcb-*
17
18
19Interpretation of files:
20
21- for all coordinates, the origin is the lower left corner of the board
22- coordinates in atben-pos.csv are in inches
23- rotation in atben-pos.csv is in degrees, counter-clockwise
atusb/README-SMT
1Board characteristics:
2
3- two layers, components only on front
4- smallest components are 0402 and 0.5 mm pitch QFN
5- one through-hole component: USB connector CON1
6- the following orientation markings are on the silk screen:
7  B1: circle near pin 1
8  D1: plus sign at the anode
9  U1, U2: triangle at the corner between pins 1 and 32
10
11
12Design files:
13
14atusb-bom.csv Bill of materials
15atusb-pos.csv Automatic insertion file
16* footprints
17
18The PCB design files are in a separate archive, atusb-pcb-*
19
20
21Interpretation of files:
22
23- for all coordinates, the origin is the lower left corner of the board
24- coordinates in atusb-pos.csv are in inches
25- rotation in atusb-pos.csv is in degrees, counter-clockwise
bom/Makefile
4040        grep -vw ATRF $< | $(BOOM) prettyord -t - $(DSC) | \
4141          sed 's/^... //'
4242
43%-smt.csv: %.ord $(DSC)
43%-bom.csv: %.ord $(DSC)
4444        grep -vw ATRF $< | $(BOOM) prettyord -f -c -r - $(DSC) >$@ || \
4545          { rm -f $@; exit 1; }
4646
...... 
4848        $(MAKE) -C dk spotless
4949        rm -f atusb.lst atusb.par atusb.ord
5050        rm -f atben.lst atben.par atben.ord
51        rm -f atusb-smt.csv atben-smt.csv cntr-smt.csv
51        rm -f atusb-bom.csv atben-bom.csv cntr-bom.csv
5252        rm -f cntr.lst cntr.par cntr.ord
makefiles/Makefile.kicad
8282        $(NAME)-Front.gtl $(NAME)-Back.gbl $(NAME)-Mask_Back.gbs \
8383        $(NAME)-PCB_Edges.gbr
8484
85SMT_FILES = README-SMT $(NAME)-bom.csv $(NAME)-pos.csv
86
8587gerber:
8688        pcbnew --plot=gerber --origin=aux \
8789          -l `pcbnew --list-layers $(BRD) | tr '\012' ,` \
...... 
9193          || { rm -rf _tmp; exit 1; }
9294        mv _tmp $(NAME)-SilkS_Front.gto
9395
94fab: gerber
96fab: fab-pcb fab-smt
97
98fab-pcb: gerber
9599        pcbnew --plot=dxf --origin=aux -l PCB_Edges $(BRD)
96100        pcbnew --drill --origin=aux $(BRD)
97101        mkdir -p fab
...... 
115119        $(POS2FAB) $(NAME)Front.pos $(NAME).cmp >$@ || \
116120          { rm -f "$@"; exit 1; }
117121
122../bom/$(NAME)-bom.csv:
123        $(MAKE) -C ../bom $(NAME)-bom.csv
124
125$(NAME)-bom.csv: ../bom/$(NAME)-bom.csv
126        mv $< $@
127
128fab-smt: $(NAME)-pos.csv $(NAME)-bom.csv
129        mkdir -p fab
130        tar Ccfz .. fab/$(NAME)-smt-$(VERSION).tar.gz \
131          $(SMT_FILES:%=$(DIR)/%)
132        cd ..; zip -l $(DIR)/fab/$(NAME)-smt-$(VERSION).zip \
133          $(SMT_FILES:%=$(DIR)/%)
134
118135upload:
119136        qippl fab/$(NAME)-pcb-$(VERSION).tar.gz \
120137          fab/$(NAME)-pcb-$(VERSION).zip wpan/fab

Archive Download the corresponding diff file



interactive