mirror of
https://github.com/crosstool-ng/crosstool-ng.git
synced 2024-12-18 20:37:56 +00:00
Add BPF architecture target support
BPF is a virtual machine and associated ISA that resides in the Linux kernel. Initially intended for user-level packet capture and filtering, BPF is nowadays generalized to serve as a general-purpose infrastructure also for non-networking purposes. Signed-off-by: Cupertino Miranda <cupertino.miranda@oracle.com>
This commit is contained in:
parent
7f80447c5f
commit
db4b7179ed
9
config/arch/bpf.in
Normal file
9
config/arch/bpf.in
Normal file
@ -0,0 +1,9 @@
|
||||
# BPF specific configuration file
|
||||
|
||||
## no-package
|
||||
## select ARCH_SUPPORTS_EITHER_ENDIAN
|
||||
## select ARCH_DEFAULT_LE
|
||||
## select GCC_VERY_NEW
|
||||
## select BINUTILS_VERY_NEW
|
||||
##
|
||||
## help The BPF architecture.
|
11
samples/bpf-unknown-none/crosstool.config
Normal file
11
samples/bpf-unknown-none/crosstool.config
Normal file
@ -0,0 +1,11 @@
|
||||
CT_CONFIG_VERSION="4"
|
||||
CT_ARCH_BPF=y
|
||||
CT_MULTILIB=n
|
||||
CT_TARGET_VENDOR="unknown"
|
||||
CT_TARGET_SYS=none
|
||||
CT_TARGET_ALIAS="bpf-unknown"
|
||||
CT_GCC_SRC_DEVEL=y
|
||||
CT_GCC_DEVEL_BRANCH="master"
|
||||
CT_BINUTILS_SRC_DEVEL=y
|
||||
CT_BINUTILS_DEVEL_BRANCH="master"
|
||||
CT_LIBC_NONE=y
|
3
samples/bpf-unknown-none/reported.by
Normal file
3
samples/bpf-unknown-none/reported.by
Normal file
@ -0,0 +1,3 @@
|
||||
reporter_name="Cupertino Miranda"
|
||||
reporter_url=""
|
||||
reporter_comment="BPF toolchain"
|
7
scripts/build/arch/bpf.sh
Normal file
7
scripts/build/arch/bpf.sh
Normal file
@ -0,0 +1,7 @@
|
||||
# Compute BPF-specific values
|
||||
|
||||
CT_DoArchTupleValues() {
|
||||
CT_TARGET_ARCH=bpf
|
||||
CT_TARGET_VENDOR=unknown
|
||||
CT_TARGET_SYS=none
|
||||
}
|
Loading…
Reference in New Issue
Block a user