diff --git a/omega2-base/Makefile b/omega2-base/Makefile index c128e4f..e71de32 100644 --- a/omega2-base/Makefile +++ b/omega2-base/Makefile @@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=omega2-base PKG_VERSION:=23.05.3 -PKG_RELEASE:=20240806 +PKG_RELEASE:=20240807 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME) diff --git a/python3-gpio/Makefile b/python3-gpio/Makefile index 381a246..fd1ae2b 100644 --- a/python3-gpio/Makefile +++ b/python3-gpio/Makefile @@ -7,60 +7,36 @@ # include $(TOPDIR)/rules.mk + PKG_NAME:=python3-gpio PKG_VERSION:=1.0.0 PKG_RELEASE:=1 +PYPI_NAME:=gpio +# hash of source code zip file on pypi +PKG_HASH:=4d2de56cfde25fb1a6d71dbd60da59698cc9dabe9bcabf3548aa8e22ecf1cea3 -PKG_SOURCE_PROTO:=git -PKG_SOURCE_VERSION:=HEAD -PKG_SOURCE_URL:=https://github.com/vitiral/gpio.git -PKG_SOURCE_VERSION:=fd8e954321abf2746057f7a4085ba47a5a552e60 -PKG_SOURCE_SUBDIR:=$(PKG_NAME) -PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)-$(PKG_RELEASE).tar.gz -PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME) +PKG_LICENSE:=MIT +PKG_MAINTAINER:=Garrett Berg, Phil Howard (phil@pimoroni.com) +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-gpio - SECTION:=onion - CATEGORY:=Onion - SUBMENU:=Libraries - TITLE:=Python3 module that provides gpio access via the standard linux sysfs interface - DEPENDS:=+python3-base + SECTION:=lang + CATEGORY:=Languages + SUBMENU:=Python + TITLE:=provides gpio access via the standard linux sysfs interface + URL:=https://github.com/vitiral/gpio + DEPENDS:=+python3-light endef define Package/python3-gpio/description - Python3 module that provides gpio access via the standard linux sysfs interface -endef - -TARGET_CFLAGS += $(FPIC) -TARGET_LIBS += -l m - -MAKE_FLAGS += \ - CC="$(TARGET_CC)" \ - CFLAGS="$(TARGET_CFLAGS)" \ - LDFLAGS="$(TARGET_LDFLAGS)" \ - LIB="$(TARGET_LIBS)" \ - PYTHON=$(PYTHON3) \ - PYINC="-I $(PYTHON3_INC_DIR)" \ - PYLIBS="-lpython$(PYTHON3_VERSION)" \ - PYTHON_VERSION=$(PYTHON3_VERSION) \ - $(PYTHON3_VARS) - -define Build/Compile - $(CP) ./files/* $(PKG_BUILD_DIR)/ - $(MAKE) -C $(PKG_BUILD_DIR) $(MAKE_FLAGS) -endef - -define Package/python3-gpio/install - $(INSTALL_DIR) $(1)$(PYTHON3_PKG_DIR)/gpio - $(CP) $(PKG_BUILD_DIR)/gpio/__init__.py $(1)$(PYTHON3_PKG_DIR)/gpio/__init__.py -endef +This library provides gpio access via the standard linux sysfs interface -define Build/Install - true +It is intended to mimick RPIO as much as possible for all features, while also supporting additional (and better named) functionality to the same methods. endef -$(eval $(call BuildPackage,python3-gpio)) +$(eval $(call Py3Package,python3-gpio)) +$(eval $(call BuildPackage,python3-gpio)) \ No newline at end of file diff --git a/python3-gpio/Untitled-1.mak b/python3-gpio/Untitled-1.mak deleted file mode 100644 index 32a27d8..0000000 --- a/python3-gpio/Untitled-1.mak +++ /dev/null @@ -1,40 +0,0 @@ -# -# Copyright (C) 2024 Lazar Demin (lazar@onioniot.com) -# -# This is free software, licensed under the GNU General Public License v2. -# See /LICENSE for more information. -# - -include $(TOPDIR)/rules.mk - -PKG_NAME:=python-gpio -PKG_VERSION:=1.0.0 -PKG_RELEASE:=1 - -PYPI_NAME:=gpio -PKG_HASH:=fd8e954321abf2746057f7a4085ba47a5a552e60 - -PKG_LICENSE:=MIT -PKG_MAINTAINER:=Garrett Berg, Phil Howard (phil@pimoroni.com) - -include ../pypi.mk -include $(INCLUDE_DIR)/package.mk -include ../python3-package.mk - -define Package/python3-gpio - SECTION:=lang - CATEGORY:=Languages - SUBMENU:=Python - TITLE:=provides gpio access via the standard linux sysfs interface - URL:=https://github.com/vitiral/gpio - DEPENDS:=+python3-light -endef - -define Package/python3-gpio/description -This library provides gpio access via the standard linux sysfs interface - -It is intended to mimick RPIO as much as possible for all features, while also supporting additional (and better named) functionality to the same methods. -endef - -$(eval $(call Py3Package,python3-gpio)) -$(eval $(call BuildPackage,python3-gpio)) \ No newline at end of file diff --git a/python3-gpio/files/makefile b/python3-gpio/files/makefile deleted file mode 100644 index a7b904f..0000000 --- a/python3-gpio/files/makefile +++ /dev/null @@ -1,4 +0,0 @@ -.PHONY: all - -all: - @echo "Do nothing" \ No newline at end of file