9646e80fca
Micro Python is a lean and fast implementation of the Python 3 programming language that is optimised to run on a microcontroller. [Thomas: fix minor typo in Config.in noticed by Vicente.] Signed-off-by: Chris Packham <judge.packham@gmail.com> Reviewed-by: Vicente Olivert Riera <Vincent.Riera@imgtec.com> Tested-by: Vicente Olivert Riera <Vincent.Riera@imgtec.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
33 lines
919 B
Makefile
33 lines
919 B
Makefile
################################################################################
|
|
#
|
|
# micropython
|
|
#
|
|
################################################################################
|
|
|
|
MICROPYTHON_VERSION = v1.4.5
|
|
MICROPYTHON_SITE = $(call github,micropython,micropython,$(MICROPYTHON_VERSION))
|
|
MICROPYTHON_LICENSE = MIT
|
|
MICROPYTHON_LICENSE_FILES = LICENSE
|
|
MICROPYTHON_DEPENDENCIES = host-pkgconf libffi
|
|
|
|
# Use fallback implementation for exception handling on architectures that don't
|
|
# have explicit support.
|
|
ifeq ($(BR2_powerpc),y)
|
|
MICROPYTHON_CFLAGS = -DMICROPY_GCREGS_SETJMP=1
|
|
endif
|
|
|
|
define MICROPYTHON_BUILD_CMDS
|
|
$(TARGET_MAKE_ENV) $(MAKE) -C $(@D)/unix \
|
|
CROSS_COMPILE=$(TARGET_CROSS) \
|
|
CFLAGS_EXTRA=$(MICROPYTHON_CFLAGS)
|
|
endef
|
|
|
|
define MICROPYTHON_INSTALL_TARGET_CMDS
|
|
$(TARGET_MAKE_ENV) $(MAKE) -C $(@D)/unix \
|
|
DESTDIR=$(TARGET_DIR) \
|
|
PREFIX=$(TARGET_DIR)/usr \
|
|
install
|
|
endef
|
|
|
|
$(eval $(generic-package))
|