mpy-cross: Make build independent of extmod directory.

mpy-cross doesn't depend on any code in the extmod directory so completely
exclude it from the build (extmod may still be scanned for qstrs but that
is controlled by py/  This speeds up the build a little, and
improves abstraction of this component.

Also, make -I$(BUILD) take precedence over -I$(TOP) in case there are stray
files in the root directory that would be picked up.
Damien George 2018-07-10 14:11:28 +10:00
parent c700ff52a0
commit ee40d1704f
2 changed files with 5 additions and 4 deletions

View File

@ -25,9 +25,9 @@ UNAME_S := $(shell uname -s)
# include py core make definitions
include $(TOP)/py/
INC += -I.
INC += -I$(TOP)
INC += -I.
INC += -I$(TOP)
# compiler settings
CWARN = -Wall -Werror
@ -68,7 +68,7 @@ ifneq (,$(findstring mingw,$(COMPILER_TARGET)))
SRC_C += ports/windows/fmode.c
OBJ = $(PY_O)
OBJ += $(addprefix $(BUILD)/, $(SRC_C:.c=.o))
include $(TOP)/py/

View File

@ -1 +1,2 @@
// empty file
// prevent including extmod/virtpin.h
#define mp_hal_pin_obj_t