Root/bom/Makefile

Source at commit 03ee256a3b1a774e72bc79a65e02e62a56fc62dd created 3 years 1 day ago.
By Stefan Schmidt, web: add 0.3 firmware binaries into release folder for web page
1BOOM=PATH=/home/moko/svn.openmoko.org/trunk/eda/boom:../boom:$$PATH boom
2
3BOOM2=../../eda-tools/boom
4BOOM_CONFIG=$(BOOM2)/boom-config
5
6KITS=1
7
8EQU=atrf.equ dk/digi-key.equ $(shell $(BOOM_CONFIG) equ)
9INV=atrf.inv dk/digi-key.inv $(shell $(BOOM_CONFIG) inv)
10DSC=dk/digi-key.dsc $(shell $(BOOM_CONFIG) dsc)
11CHR=atrf.chr $(shell $(BOOM_CONFIG) chr)
12
13
14.PHONY: all again spotless
15.PRECIOUS: %.par %.lst
16
17all: atusb.ord atben.ord cntr.ord
18
19again:
20        $(MAKE) spotless
21        $(MAKE) all
22
23%.ord: %.par $(INV) $(EQU)
24        $(BOOM) part2order $(KITS) $^ >$@ || { rm -f $@; exit 1; }
25
26%.par: $(EQU) $(INV) $(CHR) %.lst atrf.sub
27        $(BOOM) bom2part $^ >$@ || { rm -f $@; exit 1; }
28
29dk/digi-key.inv:
30        $(MAKE) -C dk digi-key.inv
31
32dk/digi-key.dsc:
33        $(MAKE) -C dk digi-key.dsc
34
35%.lst: ../%/*.sch ../%/*.cmp
36        eeschema --bom `pwd`/../$*/$*.sch
37        mv ../$*/$*.lst .
38
39show-%: %.ord $(DSC)
40        grep -vw ATRF $< | $(BOOM) prettyord -t - $(DSC) | \
41          sed 's/^... //'
42
43%-bom.csv: %.ord $(DSC)
44        grep -vw ATRF $< | $(BOOM) prettyord -f -c -r - $(DSC) >$@ || \
45          { rm -f $@; exit 1; }
46
47spotless:
48        $(MAKE) -C dk spotless
49        rm -f atusb.lst atusb.par atusb.ord
50        rm -f atben.lst atben.par atben.ord
51        rm -f atusb-bom.csv atben-bom.csv cntr-bom.csv
52        rm -f cntr.lst cntr.par cntr.ord
53

Archive Download this file



interactive