-
Notifications
You must be signed in to change notification settings - Fork 17
/
Makefile
39 lines (33 loc) · 1.41 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
# Must be name of the .kicad_pro, .kicad_pcb and root .kicad_sch
PROJECT_NAME = entree
# Directory containing PROJECT_NAME.kicad_* files
PROJECT_ROOT = .
# Can be a string or number indicating release revision
# REVISION = 0
# Define and set to 1 to limit info output
# KICADMK_QUIET = 1
# Define and set to 1 to append git describe tag and hash to export zips
KICADMK_APPEND_GIT ?= 1
# Define and set to 0 to not generate log of variables to include in exports
# KICADMK_INCLUDE_LOG = 1
# Define and set to 1 to print the log content at start to shell
# KICADMK_PRINT_LOG = 0
PCB_PDF_FLAGS = --ibt
SCH_ERC_FLAGS = --severity-error
PCB_DRC_FLAGS = --severity-error
# Define a command that generates a BoM - kibom installed with pip by default but could be path to Python script
BOM_CMD ?= kibom
# KiBoM by default creates output with _bom_REV.csv appended, pass a config file to it to match target BoM name
BOM_CMD_FLAGS = --cfg $(PROJECT_ROOT)/bom.ini
ifneq ($(VARIANT),)
BOM_CMD_FLAGS += --variant $(VARIANT)
BOM_FILENAME = $(PROJECT_NAME)-$(VARIANT).csv
endif
# Location of KiCad Makefile repository if not defined in environment, eg: export KICADMK_DIR=/home/me/kicad-makefile
# KICADMK_DIR = ./kicad-makefile
# Optionally include a supplier Makefile to define flags used by that supplier
include $(KICADMK_DIR)/suppliers/PCBWay.mk
# Include the KiCad Makefile
include $(KICADMK_DIR)/Kicad.mk
nousbpd:
$(MAKE) VARIANT=nousbpd