Initial Commit
- initial default booting image
This commit is contained in:
31
package/bpftool/Config.in
Normal file
31
package/bpftool/Config.in
Normal file
@@ -0,0 +1,31 @@
|
||||
config BR2_PACKAGE_BPFTOOL_ARCH_SUPPORTS
|
||||
bool
|
||||
# see libbpf/src/bpf.c
|
||||
default y if BR2_arc
|
||||
default y if BR2_arm || BR2_armeb
|
||||
default y if BR2_aarch64 || BR2_aarch64_be
|
||||
default y if BR2_i386 || BR2_x86_64
|
||||
default y if BR2_riscv
|
||||
default y if BR2_sparc || BR2_sparc64
|
||||
default y if BR2_s390x
|
||||
|
||||
config BR2_PACKAGE_BPFTOOL
|
||||
bool "bpftool"
|
||||
depends on BR2_PACKAGE_BPFTOOL_ARCH_SUPPORTS
|
||||
depends on BR2_TOOLCHAIN_HAS_SYNC_4
|
||||
depends on BR2_USE_WCHAR # binutils, elfutils
|
||||
depends on !BR2_STATIC_LIBS # elfutils
|
||||
depends on BR2_TOOLCHAIN_HAS_THREADS # elfutils
|
||||
depends on BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_12
|
||||
select BR2_PACKAGE_BINUTILS
|
||||
select BR2_PACKAGE_ELFUTILS
|
||||
help
|
||||
bpftool is a tool for for inspection and simple manipulation
|
||||
of eBPF programs and maps.
|
||||
|
||||
comment "bpftool needs a toolchain w/ wchar, dynamic library, threads, headers >= 4.12"
|
||||
depends on BR2_PACKAGE_BPFTOOL_ARCH_SUPPORTS
|
||||
depends on BR2_TOOLCHAIN_HAS_SYNC_4
|
||||
depends on !BR2_USE_WCHAR || BR2_STATIC_LIBS \
|
||||
|| !BR2_TOOLCHAIN_HAS_THREADS \
|
||||
|| !BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_12
|
||||
5
package/bpftool/bpftool.hash
Normal file
5
package/bpftool/bpftool.hash
Normal file
@@ -0,0 +1,5 @@
|
||||
# Locally calculated
|
||||
sha256 ff95bc8a057c84e61863fcf95e354199041ac524f5b9f5d487cf0b2c6e9198fb bpftool-v7.5.0-git4.tar.gz
|
||||
sha256 7c588754d5e81e92e2a12e47cf78949d485c9c22b4850f12d21b3835c85947d1 LICENSE
|
||||
sha256 6313108c23efffa36948f8b2cff1560a5935373b527b0e1a837cc77e6ed1bacd LICENSE.BSD-2-Clause
|
||||
sha256 8177f97513213526df2cf6184d8ff986c675afb514d4e68a404010521b880643 LICENSE.GPL-2.0
|
||||
45
package/bpftool/bpftool.mk
Normal file
45
package/bpftool/bpftool.mk
Normal file
@@ -0,0 +1,45 @@
|
||||
################################################################################
|
||||
#
|
||||
# bpftool
|
||||
#
|
||||
################################################################################
|
||||
|
||||
BPFTOOL_VERSION = v7.5.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))
|
||||
Reference in New Issue
Block a user