mirror of
https://github.com/micropython/micropython.git
synced 2026-01-07 04:30:24 +01:00
all: Update to point to files in new shared/ directory.
Signed-off-by: Damien George <damien@micropython.org>
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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) {
|
||||
|
||||
@@ -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];
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user