4db36b268d
Use install-bin for installation instead of install as we don't want bash-completion files to be installed. Set empty host installation prefix so that we install to: $(HOST_DIR)/sbin/bpftool Signed-off-by: James Hilliard <james.hilliard1@gmail.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
46 lines
1.2 KiB
Makefile
46 lines
1.2 KiB
Makefile
################################################################################
|
|
#
|
|
# bpftool
|
|
#
|
|
################################################################################
|
|
|
|
BPFTOOL_VERSION = v7.1.0
|
|
BPFTOOL_SITE = https://github.com/libbpf/bpftool
|
|
BPFTOOL_SITE_METHOD = git
|
|
BPFTOOL_GIT_SUBMODULES = YES
|
|
BPFTOOL_LICENSE = GPL-2.0, BSD-2-Clause
|
|
BPFTOOL_LICENSE_FILES = LICENSE LICENSE.BSD-2-Clause LICENSE.GPL-2.0
|
|
BPFTOOL_DEPENDENCIES = binutils elfutils
|
|
HOST_BPFTOOL_DEPENDENCIES = host-elfutils host-pkgconf host-zlib
|
|
|
|
ifeq ($(BR2_PACKAGE_LIBCAP),y)
|
|
BPFTOOL_DEPENDENCIES += libcap
|
|
endif
|
|
|
|
ifeq ($(BR2_PACKAGE_ZLIB),y)
|
|
BPFTOOL_DEPENDENCIES += zlib
|
|
endif
|
|
|
|
define BPFTOOL_BUILD_CMDS
|
|
$(TARGET_MAKE_ENV) $(TARGET_CONFIGURE_OPTS) $(MAKE) \
|
|
-C $(@D)/src
|
|
endef
|
|
|
|
define HOST_BPFTOOL_BUILD_CMDS
|
|
$(HOST_MAKE_ENV) $(HOST_CONFIGURE_OPTS) $(MAKE) \
|
|
-C $(@D)/src
|
|
endef
|
|
|
|
define BPFTOOL_INSTALL_TARGET_CMDS
|
|
$(TARGET_MAKE_ENV) $(TARGET_CONFIGURE_OPTS) $(MAKE) \
|
|
-C $(@D)/src install-bin DESTDIR="$(TARGET_DIR)" prefix=/usr
|
|
endef
|
|
|
|
define HOST_BPFTOOL_INSTALL_CMDS
|
|
$(HOST_MAKE_ENV) $(HOST_CONFIGURE_OPTS) $(MAKE) \
|
|
-C $(@D)/src install-bin DESTDIR="$(HOST_DIR)" prefix=
|
|
endef
|
|
|
|
$(eval $(generic-package))
|
|
$(eval $(host-generic-package))
|