Browse Source

treewide: Remove Python variants for non-Python packages

This removes Python-related build variants, and adds
PYTHON3_PKG_BUILD:=0 and minor build adjustments (where appropriate),
for non-Python packages. There should be no changes to build output.

This also updates some include paths for python3-package.mk and/or
python3-host.mk to be relative to the package Makefile.

Signed-off-by: Jeffery To <jeffery.to@gmail.com>
lilik-openwrt-22.03
Jeffery To 5 years ago
parent
commit
1bc2f4f3c6
19 changed files with 33 additions and 48 deletions
  1. +1
    -2
      admin/nyx/Makefile
  2. +1
    -2
      devel/asu/Makefile
  3. +1
    -2
      devel/meson/Makefile
  4. +1
    -0
      libs/libgpiod/Makefile
  5. +2
    -4
      libs/newt/Makefile
  6. +1
    -2
      multimedia/youtube-dl/Makefile
  7. +2
    -2
      net/freeradius3/Makefile
  8. +6
    -6
      net/nmap/Makefile
  9. +1
    -0
      net/openvswitch/Makefile
  10. +1
    -2
      net/radicale/Makefile
  11. +1
    -2
      net/radicale2/Makefile
  12. +4
    -3
      net/samba4/Makefile
  13. +1
    -0
      net/sysrepo/Makefile
  14. +1
    -0
      net/uwsgi/Makefile
  15. +1
    -2
      utils/bigclown/bigclown-control-tool/Makefile
  16. +1
    -2
      utils/bigclown/bigclown-firmware-tool/Makefile
  17. +1
    -2
      utils/bigclown/bigclown-gateway/Makefile
  18. +1
    -2
      utils/bigclown/bigclown-mqtt2influxdb/Makefile
  19. +5
    -13
      utils/i2c-tools/Makefile

+ 1
- 2
admin/nyx/Makefile View File

@ -2,7 +2,7 @@ include $(TOPDIR)/rules.mk
PKG_NAME:=nyx PKG_NAME:=nyx
PKG_VERSION:=2.1.0 PKG_VERSION:=2.1.0
PKG_RELEASE:=1
PKG_RELEASE:=2
PYPI_NAME:=nyx PYPI_NAME:=nyx
PKG_HASH:=88521488d1c9052e457b9e66498a4acfaaa3adf3adc5a199892632f129a5390b PKG_HASH:=88521488d1c9052e457b9e66498a4acfaaa3adf3adc5a199892632f129a5390b
@ -21,7 +21,6 @@ define Package/nyx
URL:=https://nyx.torproject.org/ URL:=https://nyx.torproject.org/
TITLE:=Terminal status monitor for Tor TITLE:=Terminal status monitor for Tor
DEPENDS:=+python3 +python3-stem DEPENDS:=+python3 +python3-stem
VARIANT:=python3
endef endef
define Package/nyx/description define Package/nyx/description


+ 1
- 2
devel/asu/Makefile View File

@ -6,7 +6,7 @@ include $(TOPDIR)/rules.mk
PKG_NAME:=asu PKG_NAME:=asu
PKG_VERSION:=0.2.3 PKG_VERSION:=0.2.3
PKG_RELEASE=2
PKG_RELEASE:=3
PKG_LICENSE:=GPL-3.0 PKG_LICENSE:=GPL-3.0
@ -37,7 +37,6 @@ define Package/asu
+gunicorn3 +python3-openssl +python3-pyodbc +python3-yaml \ +gunicorn3 +python3-openssl +python3-pyodbc +python3-yaml \
+libustream-mbedtls +ca-certificates +gnupg +libustream-mbedtls +ca-certificates +gnupg
USERID:=asu:asu USERID:=asu:asu
VARIANT:=python3
endef endef
define Package/asu/description define Package/asu/description


+ 1
- 2
devel/meson/Makefile View File

@ -2,7 +2,7 @@ include $(TOPDIR)/rules.mk
PKG_NAME:=meson PKG_NAME:=meson
PKG_VERSION:=0.54.0 PKG_VERSION:=0.54.0
PKG_RELEASE:=1
PKG_RELEASE:=2
PYPI_NAME:=meson PYPI_NAME:=meson
PKG_HASH:=dde5726d778112acbd4a67bb3633ab2ee75d33d1e879a6283a7b4a44c3363c27 PKG_HASH:=dde5726d778112acbd4a67bb3633ab2ee75d33d1e879a6283a7b4a44c3363c27
@ -40,7 +40,6 @@ define Package/meson
TITLE:=meson TITLE:=meson
URL:=https://mesonbuild.com/ URL:=https://mesonbuild.com/
DEPENDS:=+ninja +python3-pkg-resources DEPENDS:=+ninja +python3-pkg-resources
VARIANT:=python3
endef endef
define Package/meson/description define Package/meson/description


+ 1
- 0
libs/libgpiod/Makefile View File

@ -22,6 +22,7 @@ PKG_MAINTAINER:=Michael Heimpold <mhei@heimpold.de>
PKG_INSTALL:=1 PKG_INSTALL:=1
PKG_BUILD_PARALLEL:=1 PKG_BUILD_PARALLEL:=1
PYTHON3_PKG_BUILD:=0
include $(INCLUDE_DIR)/package.mk include $(INCLUDE_DIR)/package.mk
include ../../lang/python/python3-package.mk include ../../lang/python/python3-package.mk


+ 2
- 4
libs/newt/Makefile View File

@ -11,7 +11,7 @@ include $(TOPDIR)/rules.mk
PKG_NAME:=newt PKG_NAME:=newt
PKG_VERSION:=0.52.21 PKG_VERSION:=0.52.21
PKG_RELEASE:=3
PKG_RELEASE:=4
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=https://releases.pagure.org/newt PKG_SOURCE_URL:=https://releases.pagure.org/newt
@ -24,6 +24,7 @@ PKG_CPE_ID:=cpe:/a:fedorahosted:newt
PKG_BUILD_PARALLEL:=1 PKG_BUILD_PARALLEL:=1
PKG_INSTALL:=1 PKG_INSTALL:=1
PYTHON3_PKG_BUILD:=0
include $(INCLUDE_DIR)/package.mk include $(INCLUDE_DIR)/package.mk
include $(INCLUDE_DIR)/nls.mk include $(INCLUDE_DIR)/nls.mk
@ -73,7 +74,6 @@ $(call Package/newt/Default)
SUBMENU:=Python SUBMENU:=Python
TITLE+= module for Python TITLE+= module for Python
DEPENDS:=+libnewt +python3-light DEPENDS:=+libnewt +python3-light
VARIANT:=python3
endef endef
define Package/python3-newt/description define Package/python3-newt/description
@ -93,8 +93,6 @@ CONFIGURE_VARS += $(if $(CONFIG_BUILD_NLS),ac_cv_lib_c_gettext=no)
MAKE_VARS+= PYTHON_CONFIG_PATH="$(STAGING_DIR)/host/bin" MAKE_VARS+= PYTHON_CONFIG_PATH="$(STAGING_DIR)/host/bin"
Build/Compile=$(call Build/Compile/Default,)
define Build/InstallDev define Build/InstallDev
$(INSTALL_DIR) $(1)/usr/include $(INSTALL_DIR) $(1)/usr/include
$(CP) $(PKG_INSTALL_DIR)/usr/include/newt.h $(1)/usr/include/ $(CP) $(PKG_INSTALL_DIR)/usr/include/newt.h $(1)/usr/include/


+ 1
- 2
multimedia/youtube-dl/Makefile View File

@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
PKG_NAME:=youtube-dl PKG_NAME:=youtube-dl
PKG_VERSION:=2020.3.24 PKG_VERSION:=2020.3.24
PKG_RELEASE:=1
PKG_RELEASE:=2
PYPI_NAME:=youtube_dl PYPI_NAME:=youtube_dl
PKG_HASH:=4b03efe439f7cae26eba909821d1df00a9a4eb82741cb2e8b78fe29702bd4633 PKG_HASH:=4b03efe439f7cae26eba909821d1df00a9a4eb82741cb2e8b78fe29702bd4633
@ -35,7 +35,6 @@ define Package/youtube-dl
+python3-codecs \ +python3-codecs \
+python3-ctypes \ +python3-ctypes \
+python3-setuptools +python3-setuptools
VARIANT:=python3
endef endef
define Package/youtube-dl/description define Package/youtube-dl/description


+ 2
- 2
net/freeradius3/Makefile View File

@ -22,6 +22,7 @@ PKG_CPE_ID:=cpe:/a:freeradius:freeradius
PKG_BUILD_DIR:=$(BUILD_DIR)/freeradius-server-$(PKG_VERSION) PKG_BUILD_DIR:=$(BUILD_DIR)/freeradius-server-$(PKG_VERSION)
PKG_FIXUP:=autoreconf PKG_FIXUP:=autoreconf
PYTHON3_PKG_BUILD:=0
PKG_CONFIG_DEPENDS := \ PKG_CONFIG_DEPENDS := \
FREERADIUS3_OPENSSL \ FREERADIUS3_OPENSSL \
@ -30,7 +31,7 @@ PKG_CONFIG_DEPENDS := \
CFLAGS += $(FPIC) CFLAGS += $(FPIC)
include $(INCLUDE_DIR)/package.mk include $(INCLUDE_DIR)/package.mk
include $(TOPDIR)/feeds/packages/lang/python/python3-package.mk
include ../../lang/python/python3-package.mk
define Package/freeradius3/config define Package/freeradius3/config
source "$(SOURCE)/Config.in" source "$(SOURCE)/Config.in"
@ -766,7 +767,6 @@ $(eval $(call BuildPlugin,freeradius3-mod-mschap,rlm_mschap,))
$(eval $(call BuildPlugin,freeradius3-mod-pap,rlm_pap,)) $(eval $(call BuildPlugin,freeradius3-mod-pap,rlm_pap,))
$(eval $(call BuildPlugin,freeradius3-mod-passwd,rlm_passwd,)) $(eval $(call BuildPlugin,freeradius3-mod-passwd,rlm_passwd,))
$(eval $(call BuildPlugin,freeradius3-mod-preprocess,rlm_preprocess,)) $(eval $(call BuildPlugin,freeradius3-mod-preprocess,rlm_preprocess,))
$(eval $(call Py3Package,freeradius3-mod-python3))
$(eval $(call BuildPlugin,freeradius3-mod-python3,rlm_python3,)) $(eval $(call BuildPlugin,freeradius3-mod-python3,rlm_python3,))
$(eval $(call BuildPlugin,freeradius3-mod-radutmp,rlm_radutmp,)) $(eval $(call BuildPlugin,freeradius3-mod-radutmp,rlm_radutmp,))
$(eval $(call BuildPlugin,freeradius3-mod-realm,rlm_realm,)) $(eval $(call BuildPlugin,freeradius3-mod-realm,rlm_realm,))


+ 6
- 6
net/nmap/Makefile View File

@ -14,7 +14,7 @@ include $(TOPDIR)/rules.mk
PKG_NAME:=nmap PKG_NAME:=nmap
PKG_VERSION:=7.80 PKG_VERSION:=7.80
PKG_RELEASE:=1
PKG_RELEASE:=2
PKG_MAINTAINER:=Nuno Goncalves <nunojpg@gmail.com> PKG_MAINTAINER:=Nuno Goncalves <nunojpg@gmail.com>
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
@ -26,6 +26,7 @@ PKG_CPE_ID:=cpe:/a:nmap:nmap
PKG_BUILD_PARALLEL:=1 PKG_BUILD_PARALLEL:=1
PKG_INSTALL:=1 PKG_INSTALL:=1
PYTHON3_PKG_BUILD:=0
include $(INCLUDE_DIR)/package.mk include $(INCLUDE_DIR)/package.mk
include ../../lang/python/python3-package.mk include ../../lang/python/python3-package.mk
@ -100,7 +101,6 @@ endef
define Package/ndiff define Package/ndiff
$(call Package/nmap/default) $(call Package/nmap/default)
DEPENDS:=+python3-light +python3-xml DEPENDS:=+python3-light +python3-xml
VARIANT:=python3
TITLE:=Utility to compare the results of Nmap scans TITLE:=Utility to compare the results of Nmap scans
endef endef
@ -148,10 +148,10 @@ CONFIGURE_VARS += \
PYTHON3_PKG_SETUP_DIR:=ndiff PYTHON3_PKG_SETUP_DIR:=ndiff
PYTHON3_PKG_SETUP_ARGS:= PYTHON3_PKG_SETUP_ARGS:=
ifeq ($(BUILD_VARIANT),python3)
Build/Configure:=:
Build/Install:=:
endif
define Build/Compile
$(call Build/Compile/Default,)
$(call Py3Build/Compile)
endef
define Package/nmap/install define Package/nmap/install
$(INSTALL_DIR) $(1)/usr/bin $(INSTALL_DIR) $(1)/usr/bin


+ 1
- 0
net/openvswitch/Makefile View File

@ -32,6 +32,7 @@ PKG_USE_MIPS16:=0
PKG_BUILD_PARALLEL:=1 PKG_BUILD_PARALLEL:=1
PKG_FIXUP:=autoreconf PKG_FIXUP:=autoreconf
PKG_INSTALL:=1 PKG_INSTALL:=1
PYTHON3_PKG_BUILD:=0
PKG_MAINTAINER:=Yousong Zhou <yszhou4tech@gmail.com> PKG_MAINTAINER:=Yousong Zhou <yszhou4tech@gmail.com>


+ 1
- 2
net/radicale/Makefile View File

@ -8,7 +8,7 @@ include $(TOPDIR)/rules.mk
PKG_NAME:=radicale PKG_NAME:=radicale
PKG_VERSION:=1.1.6 PKG_VERSION:=1.1.6
PKG_RELEASE:=3
PKG_RELEASE:=4
PYPI_NAME:=Radicale PYPI_NAME:=Radicale
PKG_HASH:=c007198ea45ef797344672c681d4c13f8b4aa85c15c41a1156225767a405c92b PKG_HASH:=c007198ea45ef797344672c681d4c13f8b4aa85c15c41a1156225767a405c92b
@ -37,7 +37,6 @@ define Package/radicale
+python3-xml +python3-xml
USERID:=radicale=5232:radicale=5232 USERID:=radicale=5232:radicale=5232
PROVIDES:=radicale-py2 radicale-py3 PROVIDES:=radicale-py2 radicale-py3
VARIANT:=python3
endef endef
define Package/radicale/description define Package/radicale/description


+ 1
- 2
net/radicale2/Makefile View File

@ -5,7 +5,7 @@ include $(TOPDIR)/rules.mk
PKG_NAME:=radicale2 PKG_NAME:=radicale2
PKG_VERSION:=2.1.11 PKG_VERSION:=2.1.11
PKG_RELEASE:=1
PKG_RELEASE:=2
PKG_LICENSE:=GPL-3.0 PKG_LICENSE:=GPL-3.0
PKG_LICENSE_FILES:=COPYING PKG_LICENSE_FILES:=COPYING
@ -31,7 +31,6 @@ $(call Package/radicale2/Default)
USERID:=radicale2=225:radicale2=225 USERID:=radicale2=225:radicale2=225
DEPENDS:=+python3 +python3-dateutil +python3-vobject +python3-setuptools DEPENDS:=+python3 +python3-dateutil +python3-vobject +python3-setuptools
CONFLICTS:=radicale CONFLICTS:=radicale
VARIANT:=python3
endef endef
define Package/radicale2-examples define Package/radicale2-examples


+ 4
- 3
net/samba4/Makefile View File

@ -33,13 +33,14 @@ PKG_CONFIG_DEPENDS:= \
CONFIG_PACKAGE_kmod-fs-btrfs \ CONFIG_PACKAGE_kmod-fs-btrfs \
CONFIG_PACKAGE_kmod-fs-xfs CONFIG_PACKAGE_kmod-fs-xfs
PYTHON3_PKG_BUILD:=0
include $(INCLUDE_DIR)/package.mk include $(INCLUDE_DIR)/package.mk
include $(INCLUDE_DIR)/host-build.mk include $(INCLUDE_DIR)/host-build.mk
include $(INCLUDE_DIR)/kernel.mk include $(INCLUDE_DIR)/kernel.mk
include $(INCLUDE_DIR)/version.mk include $(INCLUDE_DIR)/version.mk
include $(TOPDIR)/feeds/packages/lang/python/python3-host.mk
#include $(TOPDIR)/feeds/packages/lang/python/python-package.mk
include $(TOPDIR)/feeds/packages/lang/python/python3-package.mk
include ../../lang/python/python3-host.mk
include ../../lang/python/python3-package.mk
define Package/samba4/Default define Package/samba4/Default
SECTION:=net SECTION:=net


+ 1
- 0
net/sysrepo/Makefile View File

@ -22,6 +22,7 @@ PKG_LICENSE_FILES:=LICENSE
CMAKE_INSTALL:=1 CMAKE_INSTALL:=1
PKG_BUILD_PARALLEL:=1 PKG_BUILD_PARALLEL:=1
PKG_BUILD_DEPENDS:=swig/host PKG_BUILD_DEPENDS:=swig/host
PYTHON3_PKG_BUILD:=0
include $(INCLUDE_DIR)/package.mk include $(INCLUDE_DIR)/package.mk
include $(INCLUDE_DIR)/cmake.mk include $(INCLUDE_DIR)/cmake.mk


+ 1
- 0
net/uwsgi/Makefile View File

@ -9,6 +9,7 @@ PKG_SOURCE_URL=https://files.pythonhosted.org/packages/source/u/uwsgi/
PKG_HASH:=4972ac538800fb2d421027f49b4a1869b66048839507ccf0aa2fda792d99f583 PKG_HASH:=4972ac538800fb2d421027f49b4a1869b66048839507ccf0aa2fda792d99f583
PKG_BUILD_DIR:=$(BUILD_DIR)/uwsgi-$(PKG_VERSION) PKG_BUILD_DIR:=$(BUILD_DIR)/uwsgi-$(PKG_VERSION)
PKG_BUILD_DEPENDS:=python3/host PKG_BUILD_DEPENDS:=python3/host
PYTHON3_PKG_BUILD:=0
PKG_LICENSE:=GPL-2.0-or-later PKG_LICENSE:=GPL-2.0-or-later
PKG_LICENSE_FILES:=LICENSE PKG_LICENSE_FILES:=LICENSE


+ 1
- 2
utils/bigclown/bigclown-control-tool/Makefile View File

@ -6,7 +6,7 @@ include $(TOPDIR)/rules.mk
PKG_NAME:=bigclown-control-tool PKG_NAME:=bigclown-control-tool
PKG_VERSION:=0.2.0 PKG_VERSION:=0.2.0
PKG_RELEASE:=1
PKG_RELEASE:=2
PYPI_NAME:=bch PYPI_NAME:=bch
PKG_HASH:=4cd73b92757fce7275a4744baed411c867af2e671c521b90d6690b2320851d58 PKG_HASH:=4cd73b92757fce7275a4744baed411c867af2e671c521b90d6690b2320851d58
@ -32,7 +32,6 @@ define Package/bigclown-control-tool
+python3-pyserial \ +python3-pyserial \
+python3-yaml \ +python3-yaml \
+python3-simplejson +python3-simplejson
VARIANT:=python3
endef endef
$(eval $(call Py3Package,bigclown-control-tool)) $(eval $(call Py3Package,bigclown-control-tool))


+ 1
- 2
utils/bigclown/bigclown-firmware-tool/Makefile View File

@ -6,7 +6,7 @@ include $(TOPDIR)/rules.mk
PKG_NAME:=bigclown-firmware-tool PKG_NAME:=bigclown-firmware-tool
PKG_VERSION:=1.5.1 PKG_VERSION:=1.5.1
PKG_RELEASE:=1
PKG_RELEASE:=2
PYPI_NAME:=bcf PYPI_NAME:=bcf
PKG_HASH:=50b0351b97e6b1b1d4cb4703491daa6102e7e5b3b750b47fa35182d9eb39ab9c PKG_HASH:=50b0351b97e6b1b1d4cb4703491daa6102e7e5b3b750b47fa35182d9eb39ab9c
@ -34,7 +34,6 @@ define Package/bigclown-firmware-tool
+python3-requests \ +python3-requests \
+python3-click \ +python3-click \
+python3-intelhex +python3-intelhex
VARIANT:=python3
endef endef
$(eval $(call Py3Package,bigclown-firmware-tool)) $(eval $(call Py3Package,bigclown-firmware-tool))


+ 1
- 2
utils/bigclown/bigclown-gateway/Makefile View File

@ -6,7 +6,7 @@ include $(TOPDIR)/rules.mk
PKG_NAME:=bigclown-gateway PKG_NAME:=bigclown-gateway
PKG_VERSION:=1.16.2 PKG_VERSION:=1.16.2
PKG_RELEASE:=1
PKG_RELEASE:=2
PYPI_NAME:=bcg PYPI_NAME:=bcg
PKG_HASH:=ce7f27f372551c0beb3f8929af2d779417d9dcd0feaa2fa2dc49e87b1416c536 PKG_HASH:=ce7f27f372551c0beb3f8929af2d779417d9dcd0feaa2fa2dc49e87b1416c536
@ -36,7 +36,6 @@ define Package/bigclown-gateway
+python3-simplejson \ +python3-simplejson \
+python3-schema \ +python3-schema \
+python3-appdirs +python3-appdirs
VARIANT:=python3
endef endef
define Py3Package/bigclown-gateway/install define Py3Package/bigclown-gateway/install


+ 1
- 2
utils/bigclown/bigclown-mqtt2influxdb/Makefile View File

@ -6,7 +6,7 @@ include $(TOPDIR)/rules.mk
PKG_NAME:=bigclown-mqtt2influxdb PKG_NAME:=bigclown-mqtt2influxdb
PKG_VERSION:=1.3.0 PKG_VERSION:=1.3.0
PKG_RELEASE:=1
PKG_RELEASE:=2
PYPI_NAME:=mqtt2influxdb PYPI_NAME:=mqtt2influxdb
PKG_HASH:=1b4b3b13f5b2f092bcd27846d94e91ad6f05141b2daea5167a7d58b09a782639 PKG_HASH:=1b4b3b13f5b2f092bcd27846d94e91ad6f05141b2daea5167a7d58b09a782639
@ -31,7 +31,6 @@ define Package/bigclown-mqtt2influxdb
+python3-influxdb \ +python3-influxdb \
+python3-jsonpath-ng \ +python3-jsonpath-ng \
+python3-schema +python3-schema
VARIANT:=python3
endef endef
define Py3Package/bigclown-mqtt2influxdb/install define Py3Package/bigclown-mqtt2influxdb/install


+ 5
- 13
utils/i2c-tools/Makefile View File

@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
PKG_NAME:=i2c-tools PKG_NAME:=i2c-tools
PKG_VERSION:=4.1 PKG_VERSION:=4.1
PKG_RELEASE:=3
PKG_RELEASE:=4
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
PKG_SOURCE_URL:=@KERNEL/software/utils/i2c-tools PKG_SOURCE_URL:=@KERNEL/software/utils/i2c-tools
@ -20,13 +20,11 @@ PKG_LICENSE:=GPL-2.0-or-later LGPL-2.1-or-later
PKG_LICENSE_FILES:=COPYING COPYING.LGPL PKG_LICENSE_FILES:=COPYING COPYING.LGPL
PKG_BUILD_PARALLEL:=1 PKG_BUILD_PARALLEL:=1
PKG_BUILD_DIR:=$(BUILD_DIR)/$(BUILD_VARIANT)-i2c-tools-$(PKG_VERSION)
PYTHON3_PKG_BUILD:=0
include $(INCLUDE_DIR)/package.mk include $(INCLUDE_DIR)/package.mk
include ../../lang/python/python3-package.mk include ../../lang/python/python3-package.mk
PKG_UNPACK:=$(HOST_TAR) -C $(PKG_BUILD_DIR) --strip-components=1 -xJf $(DL_DIR)/$(PKG_SOURCE)
define Package/i2c/Default define Package/i2c/Default
URL:=https://i2c.wiki.kernel.org/index.php/I2C_Tools URL:=https://i2c.wiki.kernel.org/index.php/I2C_Tools
TITLE:=I2C TITLE:=I2C
@ -37,7 +35,6 @@ define Package/libi2c
SECTION:=libs SECTION:=libs
CATEGORY:=Libraries CATEGORY:=Libraries
TITLE+=library for i2c-tools TITLE+=library for i2c-tools
VARIANT:=bin
endef endef
define Package/i2c-tools define Package/i2c-tools
@ -46,7 +43,6 @@ define Package/i2c-tools
CATEGORY:=Utilities CATEGORY:=Utilities
TITLE+=tools for Linux TITLE+=tools for Linux
DEPENDS:=+libi2c DEPENDS:=+libi2c
VARIANT:=bin
endef endef
define Package/python3-smbus define Package/python3-smbus
@ -56,7 +52,6 @@ define Package/python3-smbus
CATEGORY:=Languages CATEGORY:=Languages
TITLE:=Python bindings for the SMBUS TITLE:=Python bindings for the SMBUS
DEPENDS:=+libi2c +python3-light DEPENDS:=+libi2c +python3-light
VARIANT:=python3
endef endef
define Package/libi2c/description define Package/libi2c/description
@ -72,7 +67,8 @@ define Package/python3-smbus/description
This package contain the Python3 bindings for Linux SMBus access through i2c-dev. This package contain the Python3 bindings for Linux SMBus access through i2c-dev.
endef endef
ifeq ($(BUILD_VARIANT),bin)
PYTHON3_PKG_SETUP_ARGS:=
PYTHON3_PKG_SETUP_DIR:=py-smbus
define Build/Compile define Build/Compile
$(MAKE) -C $(PKG_BUILD_DIR) \ $(MAKE) -C $(PKG_BUILD_DIR) \
@ -81,6 +77,7 @@ define Build/Compile
STAGING_DIR="$(STAGING_DIR)" \ STAGING_DIR="$(STAGING_DIR)" \
LDFLAGS="$(TARGET_LDFLAGS)" \ LDFLAGS="$(TARGET_LDFLAGS)" \
CFLAGS="$(TARGET_CFLAGS)" CFLAGS="$(TARGET_CFLAGS)"
$(call Py3Build/Compile)
endef endef
define Build/InstallDev define Build/InstallDev
@ -89,11 +86,6 @@ define Build/InstallDev
$(CP) $(PKG_BUILD_DIR)/lib/libi2c.{a,so*} $(1)/usr/lib/ $(CP) $(PKG_BUILD_DIR)/lib/libi2c.{a,so*} $(1)/usr/lib/
endef endef
endif # ifeq
PYTHON3_PKG_SETUP_ARGS:=
PYTHON3_PKG_SETUP_DIR:=py-smbus
define Package/libi2c/install define Package/libi2c/install
$(INSTALL_DIR) $(1)/usr/lib $(INSTALL_DIR) $(1)/usr/lib
$(CP) $(PKG_BUILD_DIR)/lib/libi2c.so* $(1)/usr/lib/ $(CP) $(PKG_BUILD_DIR)/lib/libi2c.so* $(1)/usr/lib/


Loading…
Cancel
Save