Make a package for spidev and include it into the waveshare image
This commit is contained in:
parent
c335788455
commit
1c860d592a
|
@ -153,7 +153,7 @@ make image PROFILE=${PROFILE} EXTRA_IMAGE_NAME="waveshare" \
|
|||
${PACKAGES} cryptsetup kmod-ata-ahci smartmontools hdparm fdisk parted \
|
||||
kmod-hwmon-drivetemp btrfs-progs kmod-fs-btrfs kmod-nvme nvme-cli \
|
||||
docker dockerd docker-compose block-mount \
|
||||
python3-packages" \
|
||||
python3-packages python3-spidev" \
|
||||
DISABLED_SERVICES="dropbear" FILES="files" || exit 1
|
||||
|
||||
|
||||
|
|
36
feed/spidev/Makefile
Normal file
36
feed/spidev/Makefile
Normal file
|
@ -0,0 +1,36 @@
|
|||
# This is free software, licensed under the GNU General Public License v2.
|
||||
# See /LICENSE for more information.
|
||||
#
|
||||
|
||||
include $(TOPDIR)/rules.mk
|
||||
|
||||
PKG_NAME:=spidev
|
||||
PKG_VERSION:=3.6
|
||||
PKG_RELEASE:=$(AUTORELEASE)
|
||||
|
||||
PYPI_NAME:=$(PKG_NAME)
|
||||
PKG_HASH:=14dbc37594a4aaef85403ab617985d3c3ef464d62bc9b769ef552db53701115b
|
||||
PKG_MAINTAINER:=Lee Miller <lee.miller@tutanota.com>
|
||||
PKG_LICENSE:=MIT
|
||||
|
||||
include $(TOPDIR)/feeds/packages/lang/python/pypi.mk
|
||||
include $(INCLUDE_DIR)/package.mk
|
||||
include $(TOPDIR)/feeds/packages/lang/python/python3-package.mk
|
||||
|
||||
define Package/python3-$(PKG_NAME)
|
||||
SECTION:=lang
|
||||
CATEGORY:=Languages
|
||||
SUBMENU:=Python
|
||||
TITLE:=Python bindings for Linux SPI access through spidev
|
||||
URL:=http://github.com/doceme/py-spidev
|
||||
DEPENDS:=+python3 +python3-setuptools
|
||||
endef
|
||||
|
||||
define Package/python3-$(PKG_NAME)/description
|
||||
This project contains a python module for interfacing with SPI devices
|
||||
from user space via the spidev linux kernel driver.
|
||||
endef
|
||||
|
||||
$(eval $(call Py3Package,python3-$(PKG_NAME)))
|
||||
$(eval $(call BuildPackage,python3-$(PKG_NAME)))
|
||||
$(eval $(call BuildPackage,python3-$(PKG_NAME)-src))
|
Loading…
Reference in New Issue
Block a user