all: Update to point to files in new shared/ directory.

Signed-off-by: Damien George <damien@micropython.org>
This commit is contained in:
Damien George
2021-07-09 14:19:15 +10:00
parent 4d546713ec
commit 136369d72f
141 changed files with 324 additions and 306 deletions

View File

@@ -10,13 +10,13 @@ a C file which contains the data from the zip file.
A typical addition to a makefile would look like:
```
SRC_C += \
lib/memzip/import.c \
lib/memzip/lexermemzip.c \
lib/memzip/memzip.c \
shared/memzip/import.c \
shared/memzip/lexermemzip.c \
shared/memzip/memzip.c \
OBJ += $(BUILD)/memzip-files.o
MAKE_MEMZIP = ../lib/memzip/make-memzip.py
MAKE_MEMZIP = ../shared/memzip/make-memzip.py
$(BUILD)/memzip-files.o: $(BUILD)/memzip-files.c
$(call compile_c)

View File

@@ -35,7 +35,7 @@
#if MICROPY_PY_LWIP
#include "lib/netutils/dhcpserver.h"
#include "shared/netutils/dhcpserver.h"
#include "lwip/udp.h"
#define DHCPDISCOVER (1)

View File

@@ -30,7 +30,7 @@
#include <string.h>
#include "py/runtime.h"
#include "lib/netutils/netutils.h"
#include "shared/netutils/netutils.h"
// Takes an array with a raw IPv4 address and returns something like '192.168.0.1'.
mp_obj_t netutils_format_ipv4_addr(uint8_t *ip, netutils_endian_t endian) {

View File

@@ -25,7 +25,7 @@
*/
#include "py/mphal.h"
#include "lib/netutils/netutils.h"
#include "shared/netutils/netutils.h"
static uint32_t get_be16(const uint8_t *buf) {
return buf[0] << 8 | buf[1];

View File

@@ -31,7 +31,7 @@
#include "py/mpstate.h"
#include "py/repl.h"
#include "py/mphal.h"
#include "lib/mp-readline/readline.h"
#include "shared/readline/readline.h"
#if 0 // print debugging info
#define DEBUG_PRINT (1)

View File

@@ -28,7 +28,7 @@
#include "py/mpstate.h"
#include "py/gc.h"
#include "lib/utils/gchelper.h"
#include "shared/runtime/gchelper.h"
#if MICROPY_ENABLE_GC

View File

@@ -28,7 +28,7 @@
#include "py/mpstate.h"
#include "py/gc.h"
#include "lib/utils/gchelper.h"
#include "shared/runtime/gchelper.h"
#if MICROPY_ENABLE_GC

View File

@@ -29,7 +29,7 @@
#include "py/runtime.h"
#include "py/gc.h"
#include "lib/utils/mpirq.h"
#include "shared/runtime/mpirq.h"
#if MICROPY_ENABLE_SCHEDULER

View File

@@ -39,8 +39,8 @@
#include "irq.h"
#include "usb.h"
#endif
#include "lib/mp-readline/readline.h"
#include "lib/utils/pyexec.h"
#include "shared/readline/readline.h"
#include "shared/runtime/pyexec.h"
#include "genhdr/mpversion.h"
pyexec_mode_kind_t pyexec_mode_kind = PYEXEC_MODE_FRIENDLY_REPL;

View File

@@ -27,7 +27,7 @@
#include "py/obj.h"
#include "lib/timeutils/timeutils.h"
#include "shared/timeutils/timeutils.h"
// LEAPOCH corresponds to 2000-03-01, which is a mod-400 year, immediately
// after Feb 29. We calculate seconds as a signed integer relative to that.