ee = ../../../env/bin/python3 -m ee report_dir = ee/reports sch = ../../../thirdparty/olinuxino/HARDWARE/A64-OLinuXino/A64-OLinuXino_Rev_D/A64-OlinuXino_Rev_D.sch sch_files = $ ../../../thirdparty/olinuxino/HARDWARE/A64-OLinuXino/A64-OLinuXino_Rev_D/A64-OlinuXino_Rev_D.sch $ ../../../thirdparty/olinuxino/HARDWARE/A64-OLinuXino/A64-OLinuXino_Rev_D/NAND$ Flash$ ,$ eMMC,$ T-Card$ and$ Audio.sch $ ../../../thirdparty/olinuxino/HARDWARE/A64-OLinuXino/A64-OLinuXino_Rev_D/Power$ Supply,$ Extensions$ and$ MiPi-DSI$ .sch $ ../../../thirdparty/olinuxino/HARDWARE/A64-OLinuXino/A64-OLinuXino_Rev_D/USB&HDMI,WiFi&BT,Ethernet,LCD.sch pcb = ../../../thirdparty/olinuxino/HARDWARE/A64-OLinuXino/A64-OLinuXino_Rev_D/A64-OlinuXino_Rev_D.kicad_pcb rule kicad-gerber description = kicad-gerber command = $ee kicad-gerber $ --output-dir $gerber_dir $ --pcb $pcb # mkdir -p $( # (cd $(GERBER_DIR); zip tmp.zip $(foreach GBR,$(GERBERS),$(notdir $(GBR)))) # mv $(GERBER_DIR)/tmp.zip $@ rule kicad-make-bom description = kicad-make-bom $out command = $ee kicad-make-bom --sch $sch --out $out $strategy rule part-create-distributor-search-list description = part-create-distributor-search-list distributor: $distributor command = $ee part-create-distributor-search-list --in $in --out $out rule digikey-search-parts description = digikey-search-parts command = $ee digikey-search-parts --in $in --out $out rule digikey-normalize-facts description = digikey-normalize-facts command = $ee digikey-normalize-facts --in $in --out $out rule element14-search-parts description = element14-search-parts command = $ee element14-search-parts --in $in --out $out rule element14-normalize-facts description = element14-normalize-facts command = $ee element14-normalize-facts --in $in --out $out rule create-order description = create-order command = $ee create-order --schematic $schematic --part-db $part_dbs --out $out rule import-parts-yaml description = import-parts-yaml $in command = $ee import-parts-yaml --in $in --out $out build gerbers: phony prod/gerber.zip build prod/gerber.zip: kicad-gerber $pcb gerber_dir = prod build ee/sch.xml: kicad-make-bom $sch strategy = --strategy olinuxino.make_bom_strategy # Distributor digikey build ee/digikey/search-list.xml: part-create-distributor-search-list ee/sch.xml distributor = digikey build ee/digikey/downloaded.xml: digikey-search-parts ee/digikey/search-list.xml build ee/digikey/normalized.xml: digikey-normalize-facts ee/digikey/downloaded.xml default ee/digikey/normalized.xml build ee/order.xml | $report_dir/order.rst: create-order ee/sch.xml ee/digikey/normalized.xml schematic = ee/sch.xml part_dbs = ee/digikey/normalized.xml default ee/order.xml