Kivy Recipe For Yocto

Here is the recipe I’ve made recently to integrate Kivy 2.0.0 in Yocto (dunfell). It’s probably far from perfect, but I guess it can help other Yocto+Kivy users like me. Note that I had to patch the setup.py of Kivy to work around a bug. This bug has been fixed now, so this patch won’t be useful for future versions. SUMMARY = "Recipe to embedded the Python PiP Package Kivy" HOMEPAGE = "https://kivy.org/" LICENSE = "MIT" LIC_FILES_CHKSUM = "file://LICENSE;md5=f0c851d60495c7e27225a819e179208a" PYPI_PACKAGE = "Kivy" USE_WAYLAND = "1" export USE_WAYLAND inherit dos2unix pypi setuptools3 SRC_URI += " \ file://0001-setup.py-Fix-get_modulename_from_file.patch \ " SRC_URI[md5sum] = "410d3968c7f45171285bcac76bbad265" SRC_URI[sha256sum] = "d25e44eb44e43762b2fd0c5874e51954e0f1181fd9800d8a6756be6d084812d8" DEPENDS += " \ gstreamer1.0 \ gstreamer1.0-python \ libsdl2 \ libsdl2-image \ libsdl2-mixer \ libsdl2-ttf \ pango \ python3-cython-native \ " RDEPENDS_${PN} = " \ gstreamer1.0 \ gstreamer1.0-python \ libsdl2 \ libsdl2-image \ libsdl2-mixer \ libsdl2-ttf \ pango \ python3-docutils \ python3-fcntl \ python3-image \ python3-kivy-garden \ python3-pillow \ python3-pygments \ " do_install_append() { # drop the examples # XXX(Jflesch): by default they shouldn't have been built by # Kivy's setup.py. Therefore they shouldn't have been installed # either. Yet somehow here they are. rm -rf ${D}/usr/share } Kivy-garden is also required by Kivy, so I also had to make a recipe for it. You can download the complete recipes and patches for Kivy and Kivy-garden here: yocto_recipe_kivy.tar.gz. ...

29 janvier 2021

Raspberry Pi 4 + K3s + Rook + Ceph

Use Ubuntu 20.04.1 (Raspbian is only available as armhf images ; we need arm64). In /etc/modules, add libceph and rbd Install K3s Clear the disks you want to use as Ceph storages As root: 1 2 3 sudo apt install ceph-common git clone https://github.com/rook/rook.git cd rook Switch to the raspbernetes images instead of the default ones. Currently the default ones are not all built as multi-arch yet and therefore don’t all work on arm64. ...

9 septembre 2020

Segway Kickscooter Ninebot ES2 trials

My girlfriend and me have bought the very same electric kick scooter, the Segway Kickscooter Ninebot ES-2. We have done the very same trip at the same time. Both scooters are brand new. This showcase very nicely the importance of weight regarding electric kick-scooter autonomy. Beware: This electric kick-scooter requires you to install an application on your phone. On Android, the application is available on Aptoide and works without Google services. However this application is 100% proprietary, poor quality, and clearly from China. It will publish the distance you travel somewhere without asking you first. ...

18 juillet 2020

Git Dumb Protocol

Git supports various protocols. One of them is called the “dumb” protocol. This dumb protocol is based on HTTP+Webdav. There is also a smart protocol, but this one is not really HTTP compliant (it starts as HTTP for an handshake, but then switches to a custom protocol). The dumb protocol is really handy in scenarios where you can only expose a Git repository through standard HTTP+WebDav. For instance, if you have a firewall in front of your webserver. Or if you want to implement a “fake” Git repository using a standard web framework (Django for instance). ...

5 octobre 2013

Contact

jerome@flesch.info

1 janvier 1971