8000 all: Make netutils.h available to all ports by default. · micropython/micropython@e0f5df5 · GitHub
[go: up one dir, main page]

Skip to content

Commit e0f5df5

Browse files
author
Paul Sokolovsky
committed
all: Make netutils.h available to all ports by default.
Generally, ports should inherit INC from py.mk, append to it, not overwrite it. TODO: Likely should do the same for other vars too.
1 parent 8ee153f commit e0f5df5

File tree

10 files changed

+11
-9
lines changed

10 files changed

+11
-9
lines changed

bare-arm/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ include ../py/py.mk
88

99
CROSS_COMPILE = arm-none-eabi-
1010

11-
INC = -I.
11+
INC += -I.
1212
INC += -I..
1313
INC += -I$(BUILD)
1414

esp8266/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ BAUD = 115200
1414
CROSS_COMPILE = xtensa-lx106-elf-
1515
ESP_SDK = $(shell $(CC) -print-sysroot)/usr
1616

17-
INC = -I.
17+
INC += -I.
1818
INC += -I..
1919
INC += -I../stmhal
2020
INC += -I../lib/mp-readline

minimal/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ ifeq ($(CROSS), 1)
1212
CROSS_COMPILE = arm-none-eabi-
1313
endif
1414

15-
INC = -I.
15+
INC += -I.
1616
INC += -I..
1717
INC += -I../lib/mp-readline
1818
INC += -I../stmhal

pic16bit/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ CROSS_COMPILE = $(XC16)/bin/xc16-
1212
PARTFAMILY = dsPIC33F
1313
PART = 33FJ256GP506
1414

15-
INC = -I.
15+
INC += -I.
1616
INC += -I..
1717
INC += -I../lib/mp-readline
1818
INC += -I../stmhal

py/py.mk

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ PY_QSTR_DEFS = $(PY_SRC)/qstrdefs.h
1010
# some code is performance bottleneck and compiled with other optimization options
1111
CSUPEROPT = -O3
1212

13+
INC += -I../lib/netutils
14+
1315
ifeq ($(MICROPY_PY_USSL),1)
1416
CFLAGS_MOD += -DMICROPY_PY_USSL=1 -I../lib/axtls/ssl -I../lib/axtls/crypto -I../lib/axtls/config
1517
LDFLAGS_MOD += -L../lib/axtls/_stage -laxtls

qemu-arm/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ include ../py/py.mk
99

1010
CROSS_COMPILE = arm-none-eabi-
1111

12-
INC = -I.
12+
INC += -I.
1313
INC += -I..
1414
INC += -I$(BUILD)
1515
INC += -I../tools/tinytest/

stmhal/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ DEVICE=0483:df11
3232

3333
CROSS_COMPILE = arm-none-eabi-
3434

35-
INC = -I.
35+
INC += -I.
3636
INC += -I..
3737
INC += -I$(BUILD)
3838
INC += -I$(CMSIS_DIR)/inc

teensy/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ endif
2929
CFLAGS_TEENSY = -DF_CPU=96000000 -DUSB_SERIAL -D__MK20DX256__
3030
CFLAGS_CORTEX_M4 = -mthumb -mtune=cortex-m4 -mcpu=cortex-m4 -msoft-float -mfloat-abi=soft -fsingle-precision-constant -Wdouble-promotion $(CFLAGS_TEENSY)
3131

32-
INC = -I.
32+
INC += -I.
3333
INC += -I..
3434
INC += -I../stmhal
3535
INC += -I../lib/mp-readline

unix/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ UNAME_S := $(shell uname -s)
1313
# include py core make definitions
1414
include ../py/py.mk
1515

16-
INC = -I.
16+
INC += -I.
1717
INC += -I..
1818
INC += -I$(BUILD)
1919

windows/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ QSTR_DEFS = ../unix/qstrdefsport.h
1010
# include py core make definitions
1111
include ../py/py.mk
1212

13-
INC = -I.
13+
INC += -I.
1414
INC += -I..
1515
INC += -I$(BUILD)
1616

0 commit comments

Comments
 (0)
0