7dcd20f9d5
The 'opkg.py' script installed by host-opkg-utils has as shebang: #!/usr/bin/env python3 which may not be available on all host machines. Add a potential dependency on host-python3 via BR2_PYTHON3_HOST_DEPENDENCY, which will only add the host-python3 dependency if no python3 is already available on the host. Signed-off-by: Thomas De Schampheleire <thomas.de_schampheleire@nokia.com> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
24 lines
629 B
Makefile
24 lines
629 B
Makefile
################################################################################
|
|
#
|
|
# opkg-utils
|
|
#
|
|
################################################################################
|
|
|
|
OPKG_UTILS_VERSION = 0.4.3
|
|
OPKG_UTILS_SITE = http://git.yoctoproject.org/git/opkg-utils
|
|
OPKG_UTILS_SITE_METHOD = git
|
|
OPKG_UTILS_LICENSE = GPL-2.0+
|
|
OPKG_UTILS_LICENSE_FILES = COPYING
|
|
|
|
HOST_OPKG_UTILS_DEPENDENCIES += $(BR2_PYTHON3_HOST_DEPENDENCY)
|
|
|
|
define HOST_OPKG_UTILS_BUILD_CMDS
|
|
$(MAKE) -C $(@D) $(HOST_CONFIGURE_OPTS)
|
|
endef
|
|
|
|
define HOST_OPKG_UTILS_INSTALL_CMDS
|
|
$(MAKE) -C $(@D) PREFIX=$(HOST_DIR) install
|
|
endef
|
|
|
|
$(eval $(host-generic-package))
|