Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
TASTE
uPython-mirror
Commits
b372bfca
Commit
b372bfca
authored
Jan 03, 2014
by
Paul Sokolovsky
Browse files
Rename default config file to mpconfig.h, and port's to mpconfigport.h.
mpconfig.h will automatically pull mpconfigport.h.
parent
ef18102b
Changes
6
Hide whitespace changes
Inline
Side-by-side
py/malloc.c
View file @
b372bfca
...
...
@@ -3,7 +3,6 @@
#include
"misc.h"
#include
"mpconfig.h"
#include
"defaultconfig.h"
#if MICROPY_MEM_STATS
static
int
total_bytes_allocated
=
0
;
...
...
py/
default
config.h
→
py/
mp
config.h
View file @
b372bfca
// This file contains default configuration settings for MicroPython.
// You can override any of these options in mpconfig.h for your port.
// You can override any of these options using mpconfigport.h file located
// in a directory of your port.
#include
<mpconfigport.h>
// Any options not explicitly set in mpconfigport.h will get default
// values below.
// Whether to collect memory allocation stats
#ifndef MICROPY_MEM_STATS
...
...
stm/Makefile
View file @
b372bfca
...
...
@@ -187,7 +187,7 @@ $(BUILD)/%.o: $(PYSRC)/%.s
$(BUILD)/%.o
:
$(PYSRC)/%.S
$(CC)
$(CFLAGS)
-c
-o
$@
$<
$(BUILD)/%.o
:
$(PYSRC)/%.c mpconfig.h
$(BUILD)/%.o
:
$(PYSRC)/%.c mpconfig
port
.h
$(CC)
$(CFLAGS)
-c
-o
$@
$<
$(BUILD)/emitnthumb.o
:
$(PYSRC)/emitnative.c $(PYSRC)/emit.h
...
...
stm/mpconfig.h
→
stm/mpconfig
port
.h
View file @
b372bfca
#include
<stdint.h>
// options to control how Micro Python is built
#define MICROPY_ENABLE_FLOAT (1)
...
...
unix/Makefile
View file @
b372bfca
...
...
@@ -79,7 +79,7 @@ $(BUILD)/%.o: %.c
$(BUILD)/%.o
:
$(PYSRC)/%.S
$(CC)
$(CFLAGS)
-c
-o
$@
$<
$(BUILD)/%.o
:
$(PYSRC)/%.c mpconfig.h
$(BUILD)/%.o
:
$(PYSRC)/%.c mpconfig
port
.h
$(CC)
$(CFLAGS)
-c
-o
$@
$<
$(BUILD)/emitnx64.o
:
$(PYSRC)/emitnative.c $(PYSRC)/emit.h
...
...
@@ -92,7 +92,7 @@ $(BUILD)/emitnthumb.o: $(PYSRC)/emitnative.c $(PYSRC)/emit.h
$(BUILD)/vm.o
:
$(PYSRC)/vm.c
$(CC)
$(CFLAGS)
-O3
-c
-o
$@
$<
$(BUILD)/main.o
:
mpconfig.h
$(BUILD)/main.o
:
mpconfig
port
.h
$(BUILD)/parse.o
:
$(PYSRC)/grammar.h
$(BUILD)/compile.o
:
$(PYSRC)/grammar.h
$(BUILD)/emitcpy.o
:
$(PYSRC)/emit.h
...
...
unix/mpconfig.h
→
unix/mpconfig
port
.h
View file @
b372bfca
File moved
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment