Initial Commit
- initial default booting image
This commit is contained in:
32
package/python-pylibftdi/0001-do-not-use-find-library.patch
Normal file
32
package/python-pylibftdi/0001-do-not-use-find-library.patch
Normal file
@@ -0,0 +1,32 @@
|
||||
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.21.0.orig/src/pylibftdi/driver.py pylibftdi-0.21.0/src/pylibftdi/driver.py
|
||||
--- pylibftdi-0.21.0.orig/src/pylibftdi/driver.py 2015-04-26 22:41:39.000000000 +0200
|
||||
+++ pylibftdi-0.21.0/src/pylibftdi/driver.py 2017-02-27 13:08:56.502958000 +0100
|
||||
@@ -148,9 +148,8 @@ class Driver:
|
||||
lib = getattr(cdll, lib_path)
|
||||
break
|
||||
if lib is None:
|
||||
- raise LibraryMissingError(
|
||||
- f"{name} library not found (search: {str(search_list)})"
|
||||
- )
|
||||
+ return cdll.LoadLibrary(name + '.so')
|
||||
+
|
||||
return lib
|
||||
|
||||
@property
|
||||
13
package/python-pylibftdi/Config.in
Normal file
13
package/python-pylibftdi/Config.in
Normal 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
|
||||
5
package/python-pylibftdi/python-pylibftdi.hash
Normal file
5
package/python-pylibftdi/python-pylibftdi.hash
Normal file
@@ -0,0 +1,5 @@
|
||||
# md5, sha256 from https://pypi.org/pypi/pylibftdi/json
|
||||
md5 c3f06a398c7e7e2bc9d6ff8476378d5e pylibftdi-0.23.0.tar.gz
|
||||
sha256 bf5b4c6ba73d79a6f6df849c345b00ba763d023201bed9ba51d876a4397b16d8 pylibftdi-0.23.0.tar.gz
|
||||
# Locally computed sha256 checksums
|
||||
sha256 d42da8dcd174be0b5a20366aa3427b6c7570528a1992d50df9c6597cb3ecb898 LICENSE.txt
|
||||
15
package/python-pylibftdi/python-pylibftdi.mk
Normal file
15
package/python-pylibftdi/python-pylibftdi.mk
Normal file
@@ -0,0 +1,15 @@
|
||||
################################################################################
|
||||
#
|
||||
# python-pylibftdi
|
||||
#
|
||||
################################################################################
|
||||
|
||||
PYTHON_PYLIBFTDI_VERSION = 0.23.0
|
||||
PYTHON_PYLIBFTDI_SOURCE = pylibftdi-$(PYTHON_PYLIBFTDI_VERSION).tar.gz
|
||||
PYTHON_PYLIBFTDI_SITE = https://files.pythonhosted.org/packages/9d/f0/551ccbd8e989e898707e0e0859344fcf538c2310521847a1035ad3e9b164
|
||||
PYTHON_PYLIBFTDI_LICENSE = MIT
|
||||
PYTHON_PYLIBFTDI_LICENSE_FILES = LICENSE.txt
|
||||
PYTHON_PYLIBFTDI_SETUP_TYPE = poetry
|
||||
PYTHON_PYLIBFTDI_DEPENDENCIES = libftdi
|
||||
|
||||
$(eval $(python-package))
|
||||
Reference in New Issue
Block a user