|
@ -8,21 +8,17 @@ |
|
|
include $(TOPDIR)/rules.mk |
|
|
include $(TOPDIR)/rules.mk |
|
|
|
|
|
|
|
|
PKG_NAME:=micropython |
|
|
PKG_NAME:=micropython |
|
|
PKG_VERSION=1.9.2-$(PKG_SOURCE_VERSION) |
|
|
|
|
|
|
|
|
PKG_VERSION:=1.9.4 |
|
|
PKG_RELEASE:=1 |
|
|
PKG_RELEASE:=1 |
|
|
|
|
|
|
|
|
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz |
|
|
|
|
|
PKG_SOURCE_URL:=https://github.com/micropython/micropython/releases/download/v$(PKG_VERSION) |
|
|
|
|
|
PKG_HASH:=0db042011bffcbd65362b67eb3cca87eaefa9f2a55b747fa75e922c706b8ce1a |
|
|
|
|
|
|
|
|
PKG_MAINTAINER:=Roger D <rogerdammit@gmail.com> |
|
|
PKG_MAINTAINER:=Roger D <rogerdammit@gmail.com> |
|
|
PKG_LICENSE:=MIT |
|
|
PKG_LICENSE:=MIT |
|
|
PKG_LICENSE_FILES:=LICENSE |
|
|
PKG_LICENSE_FILES:=LICENSE |
|
|
|
|
|
|
|
|
PKG_SOURCE_PROTO:=git |
|
|
|
|
|
PKG_SOURCE_URL:=https://github.com/micropython/micropython.git |
|
|
|
|
|
PKG_SOURCE_VERSION:=1f78e7a43130acfa4bedf16c1007a1b0f37c75c3 |
|
|
|
|
|
|
|
|
|
|
|
PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION) |
|
|
|
|
|
PKG_SOURCE:=$(PKG_SOURCE_SUBDIR).tar.xz |
|
|
|
|
|
PKG_MIRROR_HASH:=18234ffd1e91ac461080b4213399a6a18d4163fe314782b2e6ffbd1bfe48537b |
|
|
|
|
|
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_SOURCE_SUBDIR) |
|
|
|
|
|
PKG_BUILD_PARALLEL:=1 |
|
|
PKG_BUILD_PARALLEL:=1 |
|
|
|
|
|
|
|
|
include $(INCLUDE_DIR)/package.mk |
|
|
include $(INCLUDE_DIR)/package.mk |
|
@ -32,7 +28,7 @@ define Package/micropython |
|
|
SECTION:=lang |
|
|
SECTION:=lang |
|
|
CATEGORY:=Languages |
|
|
CATEGORY:=Languages |
|
|
TITLE:=Micro Python |
|
|
TITLE:=Micro Python |
|
|
URL:=http://micropython.org |
|
|
|
|
|
|
|
|
URL:=https://micropython.org |
|
|
DEPENDS:=+libffi |
|
|
DEPENDS:=+libffi |
|
|
endef |
|
|
endef |
|
|
|
|
|
|
|
@ -42,17 +38,17 @@ define Package/micropython/description |
|
|
endef |
|
|
endef |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
MAKE_FLAGS += -C $(PKG_BUILD_DIR)/unix FROZEN_MPY_DIR= |
|
|
|
|
|
|
|
|
MAKE_FLAGS += -C $(PKG_BUILD_DIR)/ports/unix FROZEN_MPY_DIR= |
|
|
|
|
|
|
|
|
define Build/Compile |
|
|
define Build/Compile |
|
|
$(call Build/Compile/Default,axtls) |
|
|
|
|
|
$(call Build/Compile/Default) |
|
|
|
|
|
|
|
|
$(call Build/Compile/Default,axtls) |
|
|
|
|
|
$(call Build/Compile/Default) |
|
|
|
|
|
|
|
|
endef |
|
|
endef |
|
|
|
|
|
|
|
|
define Package/micropython/install |
|
|
define Package/micropython/install |
|
|
$(INSTALL_DIR) $(1)/usr/bin |
|
|
$(INSTALL_DIR) $(1)/usr/bin |
|
|
$(INSTALL_BIN) $(PKG_BUILD_DIR)/unix/micropython $(1)/usr/bin/micropython |
|
|
|
|
|
|
|
|
$(INSTALL_BIN) $(PKG_BUILD_DIR)/ports/unix/micropython $(1)/usr/bin/micropython |
|
|
endef |
|
|
endef |
|
|
|
|
|
|
|
|
$(eval $(call BuildPackage,micropython)) |
|
|
$(eval $(call BuildPackage,micropython)) |