micropython-lib: new packages
authorChris Packham <judge.packham@gmail.com>
Wed, 16 Sep 2015 23:29:59 +0000 (11:29 +1200)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Thu, 17 Sep 2015 21:37:45 +0000 (23:37 +0200)
Core Python libraries ported to MicroPython.

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>
package/Config.in
package/micropython-lib/Config.in [new file with mode: 0644]
package/micropython-lib/micropython-lib.mk [new file with mode: 0644]

index e702e5f39b1526351f2be2bde90bcce24fa6c8e3..de072e18f0381f2f463fecda05d92bf51f2559dd 100644 (file)
@@ -510,6 +510,7 @@ endmenu
 endif
        source "package/lutok/Config.in"
        source "package/micropython/Config.in"
+       source "package/micropython-lib/Config.in"
        source "package/moarvm/Config.in"
        source "package/mono/Config.in"
 if BR2_PACKAGE_MONO
diff --git a/package/micropython-lib/Config.in b/package/micropython-lib/Config.in
new file mode 100644 (file)
index 0000000..a7e017b
--- /dev/null
@@ -0,0 +1,7 @@
+config BR2_PACKAGE_MICROPYTHON_LIB
+       bool "micropython-lib"
+       depends on BR2_PACKAGE_MICROPYTHON
+       help
+         Core Python libraries ported to MicroPython.
+
+         http://micropython.org
diff --git a/package/micropython-lib/micropython-lib.mk b/package/micropython-lib/micropython-lib.mk
new file mode 100644 (file)
index 0000000..a4a6cf6
--- /dev/null
@@ -0,0 +1,18 @@
+################################################################################
+#
+# micropython-lib
+#
+################################################################################
+
+MICROPYTHON_LIB_VERSION = v0.5
+MICROPYTHON_LIB_SITE = $(call github,micropython,micropython-lib,$(MICROPYTHON_LIB_VERSION))
+MICROPYTHON_LIB_LICENSE = Python software foundation license v2 (some modules), MIT (everything else)
+MICROPYTHON_LIB_LICENSE_FILES = LICENSE
+
+define MICROPYTHON_LIB_INSTALL_TARGET_CMDS
+       $(TARGET_MAKE_ENV) $(MAKE) -C $(@D) \
+               PREFIX=$(TARGET_DIR)/usr/lib/micropython \
+               install
+endef
+
+$(eval $(generic-package))