-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathMakefile
More file actions
57 lines (44 loc) · 1.66 KB
/
Makefile
File metadata and controls
57 lines (44 loc) · 1.66 KB
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
################################################################################
# Makefile for Digitabulum
# Author: J. Ian Lindsay
# Date: 2017.02.11
#
# Currently supported targets:
# make PLATFORM=LINUX
# make PLATFORM=ESP32
# make PLATFORM=STM32F7
################################################################################
################################################################################
## ESP32
ifeq ($(PLATFORM),ESP32)
ifndef IDF_PATH
$(error If building for ESP32, you must supply the IDF_PATH variable.)
endif
BUILD_ROOT := $(shell pwd)
export MANUVR_PLATFORM = ESP32
export OUTPUT_PATH = $(BUILD_ROOT)/build
export SZ = $(IDF_PATH)/xtensa-esp32-elf/bin/xtensa-esp32-elf-size
PROJECT_NAME := digitabulum-r2
BUILD_DIR_BASE := $(OUTPUT_PATH)
EXTRA_COMPONENT_DIRS := $(BUILD_ROOT)/src/Digitabulum $(BUILD_ROOT)/src/Targets/ESP32 $(BUILD_ROOT)/lib/ManuvrOS/ManuvrOS
# Pull in the esp-idf...
include $(IDF_PATH)/make/project.mk
endif # ESP32
################################################################################
## Linux target
ifeq ($(PLATFORM),LINUX)
export MANUVR_PLATFORM = LINUX
export FIRMWARE_NAME = "digitabulum-r2"
export BUILD_ROOT = $(shell pwd)
export OUTPUT_PATH = $(BUILD_ROOT)/build
include src/Targets/scripts/linux.mk
endif # LINUX
################################################################################
## STM32F7 target
ifeq ($(PLATFORM),STM32F7)
export MANUVR_PLATFORM = STM32F7
export FIRMWARE_NAME = "digitabulum-r2"
export BUILD_ROOT = $(shell pwd)
export OUTPUT_PATH = $(BUILD_ROOT)/build
include src/Targets/scripts/stm32.mk
endif # STM32F7