1 Star 0 Fork 42

Toby Gu / Python for OpenHarmony

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
Makefile 1.15 KB
一键复制 编辑 原始数据 按行查看 历史
唐佐林 提交于 2020-11-30 15:14 . Init Version for HOS
include ./py/mkenv.mk
# qstr definitions (must come before including py.mk)
QSTR_DEFS = qstrdefsport.h
# MicroPython feature configurations
MICROPY_ROM_TEXT_COMPRESSION ?= 1
# include py core make definitions
include $(TOP)/py/py.mk
CROSS_COMPILE ?= /home/harmony/gcc_riscv32/bin/riscv32-unknown-elf-
INC += -I.
INC += -I$(TOP)
INC += -I$(BUILD)
DFU = $(TOP)/tools/dfu.py
PYDFU = $(TOP)/tools/pydfu.py
CFLAGS = $(INC) -Wall -Werror -std=c99
ARFLAGS = rc
CSUPEROPT = -Os # save some code space
CFLAGS += -Os -DNDEBUG
CFLAGS += -fdata-sections -ffunction-sections
LIBS =
SRC_C = \
dtpython.c \
uart_core.c \
lib/utils/printf.c \
lib/utils/stdout_helpers.c \
lib/utils/pyexec.c \
$(BUILD)/_frozen_mpy.c \
OBJ = $(PY_CORE_O) $(addprefix $(BUILD)/, $(SRC_C:.c=.o))
all: $(BUILD)/libdtpython.a
$(BUILD)/_frozen_mpy.c: frozentest.mpy $(BUILD)/genhdr/qstrdefs.generated.h
$(ECHO) "MISC freezing bytecode"
$(Q)$(TOP)/tools/mpy-tool.py -f -q $(BUILD)/genhdr/qstrdefs.preprocessed.h -mlongint-impl=none $< > $@
$(BUILD)/libdtpython.a: $(OBJ)
$(ECHO) "ARCHIVE $@"
$(Q)$(AR) $(ARFLAGS) -o $@ $^ $(LIBS)
$(ECHO) "Success! Target ==> $@"
include $(TOP)/py/mkrules.mk
C
1
https://gitee.com/toby-gu/python-for-hos.git
git@gitee.com:toby-gu/python-for-hos.git
toby-gu
python-for-hos
Python for OpenHarmony
master

搜索帮助

53164aa7 5694891 3bd8fe86 5694891