extmod: Make extmod.mk self-contained.
This makes it so that all a port needs to do is set the relevant variables and "include extmod.mk" and doesn't need to worry about adding anything to OBJ, CFLAGS, SRC_QSTR, etc. Make all extmod variables (src, flags, etc) private to extmod.mk. Also move common/shared, extmod-related fragments (e.g. wiznet, cyw43, bluetooth) into extmod.mk. Now that SRC_MOD, CFLAGS_MOD, CXXFLAGS_MOD are unused by both extmod.mk (and user-C-modules in a previous commit), remove all uses of them from port makefiles. Signed-off-by: Jim Mussared <jim.mussared@gmail.com>
This commit is contained in:
committed by
Damien George
parent
87011f6353
commit
d6d8722558
@@ -33,6 +33,9 @@
|
||||
#include "py/stream.h"
|
||||
#include "py/mperrno.h"
|
||||
#include "py/mphal.h"
|
||||
|
||||
#if MICROPY_PY_NETWORK_WIZNET5K
|
||||
|
||||
#include "shared/netutils/netutils.h"
|
||||
#include "extmod/modnetwork.h"
|
||||
#include "extmod/machine_spi.h"
|
||||
@@ -40,8 +43,6 @@
|
||||
#include "modmachine.h"
|
||||
#include "drivers/bus/spi.h"
|
||||
|
||||
#if MICROPY_PY_NETWORK_WIZNET5K
|
||||
|
||||
#include "lib/wiznet5k/Ethernet/wizchip_conf.h"
|
||||
|
||||
// The WIZNET5K module supports two usage modes:
|
||||
|
||||
Reference in New Issue
Block a user