-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmicropython.mk
More file actions
21 lines (18 loc) · 1.13 KB
/
Copy pathmicropython.mk
File metadata and controls
21 lines (18 loc) · 1.13 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# MicroPython Make glue for the audio pump's platform driver (unix, windows).
#
# The engine is not here any more: the pull loop, the ring, the events, the tap
# and the lock all live in audiodsp and are built by audiodsp's own glue. This
# builds the one file that knows what a thread, a mutex, a clock and a sink
# are, and it compiles against audiodsp's headers -- AUDIODSP_DIR points at the
# audiodsp checkout, and the default assumes the usual workspace layout (this
# repo and audiodsp as siblings).
AUDIOPUMP_MOD_DIR := $(USERMOD_DIR)
AUDIODSP_DIR ?= $(abspath $(AUDIOPUMP_MOD_DIR)/../audiodsp)
CFLAGS_USERMOD += -I$(AUDIODSP_DIR)/src
SRC_USERMOD_C += $(AUDIOPUMP_MOD_DIR)/_audioif.c
SRC_USERMOD_C += $(AUDIOPUMP_MOD_DIR)/audiobusio.c
# --- which audioif this firmware was built from ----------------------
# Computed at build time from this repo's own git, never stored; "unknown" when
# there is no git (a tarball). Read on a target as <module>.__revision__.
AUDIOIF_REVISION := $(shell git -C $(AUDIOPUMP_MOD_DIR) describe --always --dirty --abbrev=7 2>/dev/null || echo unknown)
CFLAGS_USERMOD += -DAUDIOIF_REVISION='"$(AUDIOIF_REVISION)"'