blob: 1eb2bea73a055edeba59b7f3e324f88c337db520 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
|
#
# Copyright (C) 2008-2015 OpenWrt.org
#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
#
include $(TOPDIR)/rules.mk
PKG_NAME:=micropython-lib
PKG_RELEASE:=1
PKG_SOURCE_PROTO:=git
PKG_SOURCE_URL:=https://github.com/micropython/micropython-lib.git
PKG_SOURCE_VERSION:=db4c739863e49fc874bdaae8aa8c316c7ed4276a
PKG_SOURCE_DATE:=20220506
PKG_MIRROR_HASH:=ec4be91755fcd4d4fa61e1e7eadc748377ba63b82b7bb4254864473fafcd3173
PKG_MAINTAINER:=Jeffery To <jeffery.to@gmail.com>
PKG_LICENSE:=MIT PSF-2.0
PKG_LICENSE_FILES:=LICENSE
PKG_BUILD_PARALLEL:=1
include $(INCLUDE_DIR)/package.mk
define Package/micropython-lib
SUBMENU:=Python
SECTION:=lang
CATEGORY:=Languages
TITLE:=micropython-lib
URL:=https://github.com/micropython/micropython-lib
DEPENDS:=+micropython
endef
define Package/micropython-lib/description
This is a repository of libraries designed to be useful for writing
MicroPython applications.
endef
Build/Compile:=:
define Package/micropython-lib/install
for dir in micropython python-ecosys python-stdlib unix-ffi; do \
$(INSTALL_DIR) $(1)/usr/lib/micropython/$$$$dir ; \
$(CP) $(PKG_BUILD_DIR)/$$$$dir/* $(1)/usr/lib/micropython/$$$$dir/ ; \
done
$(FIND) $(1)/usr/lib/micropython \
-not -type d \( -not -name '*.py' -o -name 'test_*' -o -name 'setup.py' \) -delete
$(FIND) $(1)/usr/lib/micropython -mindepth 1 -empty -type d -delete
endef
$(eval $(call BuildPackage,micropython-lib))
|