Skip to content

Commit 014d5a5

Browse files
committed
mpy-cross fixes
1 parent fef42eb commit 014d5a5

File tree

3 files changed

+9
-5
lines changed

3 files changed

+9
-5
lines changed

mpy-cross/Makefile

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
include ../py/mkenv.mk
22

33
# define main target
4-
// CIRCUITPY-CHANGE
4+
# CIRCUITPY-CHANGE
55
PROG ?= mpy-cross
66

77
# qstr definitions (must come before including py.mk)
@@ -22,7 +22,7 @@ CWARN = -Wall -Werror
2222
CWARN += -Wextra -Wno-unused-parameter -Wpointer-arith
2323
CFLAGS += $(INC) $(CWARN) -std=gnu99 $(COPT) $(CFLAGS_EXTRA)
2424
CFLAGS += -fdata-sections -ffunction-sections -fno-asynchronous-unwind-tables
25-
// CIRCUITPY-CHANGE
25+
# CIRCUITPY-CHANGE
2626
CFLAGS += -DCIRCUITPY
2727

2828
# Debugging/Optimization
@@ -48,7 +48,7 @@ endif
4848
LDFLAGS += $(LDFLAGS_MOD) $(LDFLAGS_ARCH) -lm $(LDFLAGS_EXTRA)
4949

5050
# source files
51-
// CIRCUITPY-CHANGE: extra files
51+
# CIRCUITPY-CHANGE: extra files
5252
SRC_C = \
5353
main.c \
5454
gccollect.c \

mpy-cross/mpconfigport.h

+4
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,10 @@
2626

2727
// options to control how MicroPython is built
2828

29+
// CIRCUITPY-CHANGE: mpy-cross doesn't have background tasks
30+
#define RUN_BACKGROUND_TASKS ((void)0)
31+
32+
2933
#define MICROPY_ALLOC_PATH_MAX (PATH_MAX)
3034
#define MICROPY_PERSISTENT_CODE_LOAD (0)
3135
#define MICROPY_PERSISTENT_CODE_SAVE (1)

py/asmx64.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -124,8 +124,8 @@ void asm_x64_call_ind(asm_x64_t *as, size_t fun_id, int temp_r32);
124124
// Holds a pointer to mp_fun_table
125125
#define ASM_X64_REG_FUN_TABLE ASM_X64_REG_RBP
126126

127-
#// CIRCUITPY-CHANGE: prevent #if warning
128-
if defined(GENERIC_ASM_API) && GENERIC_ASM_API
127+
// CIRCUITPY-CHANGE: prevent #if warning
128+
#if defined(GENERIC_ASM_API) && GENERIC_ASM_API
129129

130130
// The following macros provide a (mostly) arch-independent API to
131131
// generate native code, and are used by the native emitter.

0 commit comments

Comments
 (0)