1
0
mirror of git://projects.qi-hardware.com/eda-tools.git synced 2024-11-22 10:31:54 +02:00

fab/m1/: update path name and drill file offset for M1r4

This commit is contained in:
Werner Almesberger 2012-07-10 12:25:34 -03:00
parent 748a01fb9a
commit f6720c767f
3 changed files with 18 additions and 2 deletions

View File

@ -1,9 +1,13 @@
D=rc3_gerber
ifndef REV
REV = rc3
endif
D=$(REV)_gerber
all: front.png back.png
drill.pho:
tr -d '\015' <$(D)/drl00.drl | ./drl2gerber >$@
tr -d '\015' <$(D)/drl00.drl | REV=$(REV) ./drl2gerber >$@
front.png: drill.pho
cd $(D) && ../prettygerbv -d ../drill.pho foo front ../$@

View File

@ -1,3 +1,9 @@
wget http://downloads.qi-hardware.com/hardware/milkymist_one/gerber/rc3/rc3_gerber.tar.bz2
tar xfj rc3_gerber.tar.bz2
make
------------------------------------------------------------------------------
wget http://downloads.qi-hardware.com/hardware/milkymist_one/gerber/r4/r4_gerber.tar.bz2
tar xfj r4_gerber.tar.bz2
make REV=r4

View File

@ -19,8 +19,14 @@ print "G90*\n" || die; # absolute Mode
print "%MOIN*%*\n" || die; # inches, RS274X-style
print "%FSLAX34Y34*%\n" || die; # format
# M1rc3
$x0 = 7300;
$y0 = 268910;
# M1r4
if ($ENV{"REV"} eq "r4") {
$x0 = 34022;
$y0 = 293540;
}
sub u()