File tree Expand file tree Collapse file tree 18 files changed +70
-52
lines changed Expand file tree Collapse file tree 18 files changed +70
-52
lines changed Original file line number Diff line number Diff line change @@ -95,6 +95,7 @@ We also need a Makefile at this point for the port:
95
95
96
96
# Include py core make definitions.
97
97
include $(TOP)/py/py.mk
98
+ include $(TOP)/extmod/extmod.mk
98
99
99
100
# Set CFLAGS and libraries.
100
101
CFLAGS = -I. -I$(BUILD) -I$(TOP)
Original file line number Diff line number Diff line change @@ -9,6 +9,7 @@ UNAME_S := $(shell uname -s)
9
9
10
10
# include py core make definitions
11
11
include $(MPTOP)/py/py.mk
12
+ include $(MPTOP)/extmod/extmod.mk
12
13
13
14
INC += -I.
14
15
INC += -I..
Original file line number Diff line number Diff line change 1
- # This makefile fragment provides rules to build 3rd-party components for extmod modules
1
+ # This makefile fragment adds the source code files for the core extmod modules
2
+ # and provides rules to build 3rd-party components for extmod modules.
3
+
4
+ PY_EXTMOD_O_BASENAME = \
5
+ extmod/moduasyncio.o \
6
+ extmod/moductypes.o \
7
+ extmod/modujson.o \
8
+ extmod/moduos.o \
9
+ extmod/modure.o \
10
+ extmod/moduzlib.o \
11
+ extmod/moduheapq.o \
12
+ extmod/modutimeq.o \
13
+ extmod/moduhashlib.o \
14
+ extmod/moducryptolib.o \
15
+ extmod/modubinascii.o \
16
+ extmod/virtpin.o \
17
+ extmod/machine_bitstream.o \
18
+ extmod/machine_mem.o \
19
+ extmod/machine_pinbase.o \
20
+ extmod/machine_signal.o \
21
+ extmod/machine_pulse.o \
22
+ extmod/machine_pwm.o \
23
+ extmod/machine_i2c.o \
24
+ extmod/machine_spi.o \
25
+ extmod/modbluetooth.o \
26
+ extmod/modlwip.o \
27
+ extmod/modussl_axtls.o \
28
+ extmod/modussl_mbedtls.o \
29
+ extmod/moduplatform.o\
30
+ extmod/modurandom.o \
31
+ extmod/moduselect.o \
32
+ extmod/moduwebsocket.o \
33
+ extmod/modwebrepl.o \
34
+ extmod/modframebuf.o \
35
+ extmod/vfs.o \
36
+ extmod/vfs_blockdev.o \
37
+ extmod/vfs_reader.o \
38
+ extmod/vfs_posix.o \
39
+ extmod/vfs_posix_file.o \
40
+ extmod/vfs_fat.o \
41
+ extmod/vfs_fat_diskio.o \
42
+ extmod/vfs_fat_file.o \
43
+ extmod/vfs_lfs.o \
44
+ extmod/utime_mphal.o \
45
+ extmod/uos_dupterm.o \
46
+ shared/libc/abort_.o \
47
+ shared/libc/printf.o \
48
+
49
+ PY_EXTMOD_O = $(addprefix $(BUILD ) /, $(PY_EXTMOD_O_BASENAME ) )
50
+
51
+ PY_O += $(PY_EXTMOD_O )
52
+ SRC_QSTR += $(PY_EXTMOD_O_BASENAME:.o=.c )
2
53
3
54
# ###############################################################################
4
55
# VFS FAT FS
Original file line number Diff line number Diff line change @@ -39,6 +39,7 @@ MICROPY_ROM_TEXT_COMPRESSION ?= 1
39
39
40
40
# include MicroPython make definitions
41
41
include $(TOP ) /py/py.mk
42
+ include $(TOP ) /extmod/extmod.mk
42
43
include application.mk
43
44
else
44
45
ifeq ($(BTARGET ) , bootloader)
Original file line number Diff line number Diff line change @@ -30,6 +30,7 @@ FROZEN_MANIFEST ?= boards/manifest.py
30
30
31
31
# include py core make definitions
32
32
include $(TOP ) /py/py.mk
33
+ include $(TOP ) /extmod/extmod.mk
33
34
34
35
GIT_SUBMODULES = lib/axtls lib/berkeley-db-1.xx
35
36
Original file line number Diff line number Diff line change @@ -5,6 +5,7 @@ CROSS = 0
5
5
QSTR_DEFS = qstrdefsport.h
6
6
7
7
include $(TOP ) /py/py.mk
8
+ include $(TOP ) /extmod/extmod.mk
8
9
9
10
CC = emcc
10
11
LD = emcc
Original file line number Diff line number Diff line change @@ -42,6 +42,7 @@ MICROPY_VFS_FAT ?= 1
42
42
43
43
# Include py core make definitions
44
44
include $(TOP ) /py/py.mk
45
+ include $(TOP ) /extmod/extmod.mk
45
46
46
47
GIT_SUBMODULES = lib/tinyusb lib/nxp_driver lib/lwip lib/mbedtls
47
48
Original file line number Diff line number Diff line change @@ -56,6 +56,7 @@ FROZEN_MANIFEST ?= modules/manifest.py
56
56
57
57
# include py core make definitions
58
58
include ../../py/py.mk
59
+ include ../../extmod/extmod.mk
59
60
60
61
GIT_SUBMODULES = lib/nrfx lib/tinyusb
61
62
Original file line number Diff line number Diff line change @@ -5,6 +5,7 @@ QSTR_DEFS = qstrdefsport.h
5
5
6
6
# include py core make definitions
7
7
include $(TOP ) /py/py.mk
8
+ include $(TOP ) /extmod/extmod.mk
8
9
9
10
XCVERSION ?= 1.35
10
11
XC16 ?= /opt/microchip/xc16/v$(XCVERSION )
Original file line number Diff line number Diff line change @@ -5,6 +5,7 @@ QSTR_DEFS = qstrdefsport.h
5
5
6
6
# include py core make definitions
7
7
include $(TOP ) /py/py.mk
8
+ include $(TOP ) /extmod/extmod.mk
8
9
9
10
# potato or lpc_serial
10
11
UART ?= potato
You can’t perform that action at this time.
0 commit comments