[Mod] First commit

This commit is contained in:
2022-10-31 22:18:58 +08:00
commit 1c8a3d9709
13090 changed files with 526733 additions and 0 deletions

View File

@ -0,0 +1,31 @@
Hard code library loading
Shortcut the search for the libraries in case the built in
find_library is broken.
As buildroot does not ship any of the external programs that the core
procedure use to find libraries use the canonical name of the shared
object and load it.
In this case this affects loading libftdi and libusb.
This should be reliable as we specify said libs as dependencies of
this package.
Signed-off-by: Christian Kellermann <christian.kellermann@solectrix.de>
---
diff -purN pylibftdi-0.15.0.orig/pylibftdi/driver.py pylibftdi-0.15.0/pylibftdi/driver.py
--- pylibftdi-0.15.0.orig/pylibftdi/driver.py 2015-04-26 22:41:39.000000000 +0200
+++ pylibftdi-0.15.0/pylibftdi/driver.py 2017-02-27 13:08:56.502958000 +0100
@@ -121,8 +121,8 @@ class Driver(object):
lib = getattr(cdll, lib_path)
break
if lib is None:
- raise LibraryMissingError('{} library not found (search: {})'.format(
- name, search_list))
+ return cdll.LoadLibrary(name + '.so')
+
return lib
@property

View File

@ -0,0 +1,13 @@
config BR2_PACKAGE_PYTHON_PYLIBFTDI
bool "python-pylibftdi"
depends on BR2_TOOLCHAIN_HAS_THREADS # libusb
depends on BR2_TOOLCHAIN_GCC_AT_LEAST_4_9 # libftdi -> libusb
select BR2_PACKAGE_LIBFTDI
help
This package contains the python language binding libftdi.
https://pypi.python.org/pypi/pylibftdi
comment "python-pylibftdi needs a toolchain w/ threads, gcc >= 4.9"
depends on !BR2_TOOLCHAIN_HAS_THREADS || \
!BR2_TOOLCHAIN_GCC_AT_LEAST_4_9

View File

@ -0,0 +1,5 @@
# md5, sha256 from https://pypi.org/pypi/pylibftdi/json
md5 c48e442cef7b1e865b4d96ab92f509ad pylibftdi-0.18.1.tar.gz
sha256 bdd04076933959b20b3c8b4fb8be7882d3362675f259e7eeb23ebff03b81859d pylibftdi-0.18.1.tar.gz
# Locally computed sha256 checksums
sha256 0e40132339e1ef7d17d93837fbc273d1e87302e9295162bd19c9161e5700ddcc LICENSE.txt

View File

@ -0,0 +1,15 @@
################################################################################
#
# python-pylibftdi
#
################################################################################
PYTHON_PYLIBFTDI_VERSION = 0.18.1
PYTHON_PYLIBFTDI_SOURCE = pylibftdi-$(PYTHON_PYLIBFTDI_VERSION).tar.gz
PYTHON_PYLIBFTDI_SITE = https://files.pythonhosted.org/packages/50/9b/1e1cdb9715bacfb83e5eaf5e69f4e2fbd92d61f43c5e185cc3935ec01b28
PYTHON_PYLIBFTDI_LICENSE = MIT
PYTHON_PYLIBFTDI_LICENSE_FILES = LICENSE.txt
PYTHON_PYLIBFTDI_DEPENDENCIES = libftdi
PYTHON_PYLIBFTDI_SETUP_TYPE = setuptools
$(eval $(python-package))