diff options
author | Gregory Nutt <gnutt@nuttx.org> | 2015-01-14 09:17:51 -0600 |
---|---|---|
committer | Gregory Nutt <gnutt@nuttx.org> | 2015-01-14 09:17:51 -0600 |
commit | a95a0244293d6cfe7d2d4b6e550ee0ec825961cd (patch) | |
tree | 4725d865718083793bf36443b8fa7756d9adeed1 /apps/interpreters/micropython | |
parent | 9d518f0a76e6ee24132d9fca1c3250a3c484faf0 (diff) | |
download | nuttx-a95a0244293d6cfe7d2d4b6e550ee0ec825961cd.tar.gz nuttx-a95a0244293d6cfe7d2d4b6e550ee0ec825961cd.tar.bz2 nuttx-a95a0244293d6cfe7d2d4b6e550ee0ec825961cd.zip |
Add comments to Micro Python Makefile
Diffstat (limited to 'apps/interpreters/micropython')
-rw-r--r-- | apps/interpreters/micropython/Makefile | 17 |
1 files changed, 15 insertions, 2 deletions
diff --git a/apps/interpreters/micropython/Makefile b/apps/interpreters/micropython/Makefile index 05b38b43c..e4b1b7f05 100644 --- a/apps/interpreters/micropython/Makefile +++ b/apps/interpreters/micropython/Makefile @@ -34,10 +34,14 @@ # ########################################################################### +# Standard includes + -include $(TOPDIR)/.config -include $(TOPDIR)/Make.defs include $(APPDIR)/Make.defs +# Set up build configuration and environment + WD := ${shell pwd | sed -e 's/ /\\ /g'} CONFIG_INTERPRETERS_MICROPYTHON_URL ?= "https://github.com/micropython/micropython/archive" @@ -50,10 +54,15 @@ WGET ?= wget MICROPYTHON_UNPACKNAME = micropython-$(MICROPYTHON_VERSION) UNPACK ?= tar -zxf -CROSS_COMPILE ?= $(CROSSDEV) - MICROPYTHON_UNPACKDIR = $(WD)/$(MICROPYTHON_UNPACKNAME) MICROPTHYON_SRCDIR = $(MICROPYTHON_UNPACKDIR)/py + +# Get the Micro Python build environment. mkenv.mk has these dependencies +# +# V - Enable verbose output (same meaning as in NuttX) +# CROSS_COMPILE - Tool prefix (same as CROSSDEV in NuttX) + +CROSS_COMPILE ?= $(CROSSDEV) -include $(MICROPTHYON_SRCDIR)/mkenv.mk # qstr definitions (must come before including py.mk) @@ -72,6 +81,8 @@ INC = -I. -I$(WD) -I$(MICROPYTHON_UNPACKDIR) -I$(PY_SRC) -I$(BUILD) CFLAGS +=$(INC) +# Built-in application info + CONFIG_INTERPRETERS_MICROPYTHON_APPNAME ?= micropython CONFIG_INTERPRETERS_MICROPYTHON_STACKSIZE ?= 2048 CONFIG_INTERPRETERS_MICROPYTHON_PRIORITY ?= SCHED_PRIORITY_DEFAULT @@ -83,6 +94,8 @@ PRIORITY = $(CONFIG_INTERPRETERS_MICROPYTHON_PRIORITY) CONFIG_INTERPRETERS_MICROPYTHON_PROGNAME ?= micropython$(EXEEXT) PROGNAME = $(CONFIG_INTERPRETERS_MICROPYTHON_PROGNAME) +# Files + ASRCS = CSRCS = pyexec.c py_readline.c MAINSRC = micropython_main.c |