WIP: Package waveshare CM4-NAS-Double-Deck demo app #49

Closed
lee.miller wants to merge 5 commits from lee.miller/openwrt:packages into main
2 changed files with 37 additions and 1 deletions
Showing only changes of commit 1c860d592a - Show all commits

View File

@ -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
View 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))