A fiew Micro Python build fixes. There are still issues
This commit is contained in:
parent
c07914fa3c
commit
2297a7e36b
1
interpreters/micropython/.gitignore
vendored
1
interpreters/micropython/.gitignore
vendored
@ -1,5 +1,6 @@
|
||||
/micropython-*
|
||||
/v*.tar.gz
|
||||
/build
|
||||
/Make.dep
|
||||
/.depend
|
||||
/.built
|
||||
|
@ -50,8 +50,9 @@ WGET ?= wget
|
||||
MICROPYTHON_UNPACKNAME = micropython-$(MICROPYTHON_VERSION)
|
||||
UNPACK ?= tar -zxf
|
||||
|
||||
MICROPYTHON_PATH = $(WD)/$(MICROPYTHON_UNPACKNAME)/py
|
||||
-include $(MICROPYTHON_PATH)/mkenv.mk
|
||||
MICROPYTHON_UNPACKDIR = $(WD)/$(MICROPYTHON_UNPACKNAME)
|
||||
MICROPTHYON_SRCDIR = $(MICROPYTHON_UNPACKDIR)/py
|
||||
-include $(MICROPTHYON_SRCDIR)/mkenv.mk
|
||||
|
||||
# qstr definitions (must come before including py.mk)
|
||||
|
||||
@ -59,13 +60,13 @@ QSTR_DEFS = qstrdefsport.h
|
||||
|
||||
# include py core make definitions
|
||||
|
||||
-include $(MICROPYTHON_PATH)/py.mk
|
||||
-include $(MICROPTHYON_SRCDIR)/py.mk
|
||||
|
||||
# c99 is needed for micropython
|
||||
|
||||
CFLAGS+=-std=c99 -Wno-shadow -Wno-strict-prototypes
|
||||
|
||||
INC = -I. -I$(WD) -I$(PY_SRC) -I$(BUILD)
|
||||
INC = -I. -I$(WD) -I$(MICROPYTHON_UNPACKDIR) -I$(PY_SRC) -I$(BUILD)
|
||||
|
||||
CFLAGS +=$(INC)
|
||||
|
||||
@ -160,5 +161,5 @@ distclean: clean
|
||||
$(call DELFILE, .downloaded)
|
||||
$(call DELFILE, .$(MICROPYTHON_TARBALL))
|
||||
|
||||
-include $(MICROPYTHON_PATH)/mkrules.mk
|
||||
-include $(MICROPTHYON_SRCDIR)/mkrules.mk
|
||||
-include Make.dep
|
||||
|
@ -41,7 +41,6 @@
|
||||
****************************************************************************/
|
||||
|
||||
#include <stdint.h>
|
||||
#include <wchar_t.h>
|
||||
|
||||
/* We need to provide a declaration/definition of alloca() */
|
||||
|
||||
@ -100,6 +99,7 @@
|
||||
* Public Types
|
||||
****************************************************************************/
|
||||
|
||||
typedef int wint_t; /* For newlib's math.h. See wchar_t */
|
||||
typedef int32_t mp_int_t; /* must be pointer size */
|
||||
typedef uint32_t mp_uint_t; /* must be pointer size */
|
||||
typedef void *machine_ptr_t; /* must be of pointer size */
|
||||
|
@ -30,6 +30,12 @@
|
||||
#ifndef __APPS_INTERPRETERS_MICROPYTHON_PYEXEC_H
|
||||
#define __APPS_INTERPRETERS_MICROPYTHON_PYEXEC_H 1
|
||||
|
||||
/****************************************************************************
|
||||
* Included Files
|
||||
****************************************************************************/
|
||||
|
||||
#include "py/obj.h"
|
||||
|
||||
/****************************************************************************
|
||||
* Pre-processor Definitions
|
||||
****************************************************************************/
|
||||
|
Loading…
Reference in New Issue
Block a user