initial buildroot for linux 5.15
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
config BR2_PACKAGE_MICROPYTHON
|
||||
bool "micropython"
|
||||
depends on BR2_TOOLCHAIN_HAS_THREADS
|
||||
depends on !BR2_STATIC_LIBS
|
||||
select BR2_PACKAGE_LIBFFI
|
||||
help
|
||||
Micro Python is a lean and fast implementation of the Python
|
||||
3 programming language that is optimised to run on a
|
||||
microcontroller.
|
||||
|
||||
http://micropython.org
|
||||
|
||||
comment "micropython needs a toolchain w/ threads, dynamic library"
|
||||
depends on !BR2_TOOLCHAIN_HAS_THREADS || BR2_STATIC_LIBS
|
||||
@@ -0,0 +1,3 @@
|
||||
#locally computed
|
||||
sha256 c21dbf8144237b3dbe3847c9ad5264cd0f3104eb078c810b3986004cce8fcd70 micropython-1.17.tar.gz
|
||||
sha256 59b1f0947a87c90d0d29dbe2c8deb3d1f8263bbbd2fb5ebcc79a649cff6dfcba LICENSE
|
||||
@@ -0,0 +1,55 @@
|
||||
################################################################################
|
||||
#
|
||||
# micropython
|
||||
#
|
||||
################################################################################
|
||||
|
||||
MICROPYTHON_VERSION = 1.17
|
||||
MICROPYTHON_SITE = $(call github,micropython,micropython,v$(MICROPYTHON_VERSION))
|
||||
# Micropython has a lot of code copied from other projects, and also a number
|
||||
# of submodules for various libs. However, we don't even clone the submodules,
|
||||
# and most of the copied code is not used in the unix build.
|
||||
MICROPYTHON_LICENSE = MIT, BSD-1-Clause, BSD-3-Clause, Zlib
|
||||
MICROPYTHON_LICENSE_FILES = LICENSE
|
||||
MICROPYTHON_DEPENDENCIES = host-pkgconf libffi host-python3
|
||||
|
||||
# Set GIT_DIR so package won't use buildroot's version number
|
||||
MICROPYTHON_MAKE_ENV = \
|
||||
$(TARGET_MAKE_ENV) \
|
||||
GIT_DIR=.
|
||||
|
||||
# Use fallback implementation for exception handling on architectures that don't
|
||||
# have explicit support.
|
||||
ifeq ($(BR2_i386)$(BR2_x86_64)$(BR2_arm)$(BR2_armeb),)
|
||||
MICROPYTHON_CFLAGS = -DMICROPY_GCREGS_SETJMP=1
|
||||
endif
|
||||
|
||||
# xtensa has problems with nlr_push, use setjmp based implementation instead
|
||||
ifeq ($(BR2_xtensa),y)
|
||||
MICROPYTHON_CFLAGS = -DMICROPY_NLR_SETJMP=1
|
||||
endif
|
||||
|
||||
# When building from a tarball we don't have some of the dependencies that are in
|
||||
# the git repository as submodules
|
||||
MICROPYTHON_MAKE_OPTS += \
|
||||
MICROPY_PY_BTREE=0 \
|
||||
MICROPY_PY_USSL=0 \
|
||||
CROSS_COMPILE=$(TARGET_CROSS) \
|
||||
CFLAGS_EXTRA=$(MICROPYTHON_CFLAGS) \
|
||||
CWARN=
|
||||
|
||||
define MICROPYTHON_BUILD_CMDS
|
||||
$(MICROPYTHON_MAKE_ENV) $(MAKE) -C $(@D)/mpy-cross
|
||||
$(MICROPYTHON_MAKE_ENV) $(MAKE) -C $(@D)/ports/unix \
|
||||
$(MICROPYTHON_MAKE_OPTS)
|
||||
endef
|
||||
|
||||
define MICROPYTHON_INSTALL_TARGET_CMDS
|
||||
$(MICROPYTHON_MAKE_ENV) $(MAKE) -C $(@D)/ports/unix \
|
||||
$(MICROPYTHON_MAKE_OPTS) \
|
||||
DESTDIR=$(TARGET_DIR) \
|
||||
PREFIX=/usr \
|
||||
install
|
||||
endef
|
||||
|
||||
$(eval $(generic-package))
|
||||
Reference in New Issue
Block a user