diff options
author | Cupertino Miranda <cupertino.miranda@oracle.com> | 2022-12-08 00:04:30 +0000 |
---|---|---|
committer | Chris Packham <judge.packham@gmail.com> | 2022-12-14 17:11:02 +1300 |
commit | db4b7179ed83cedd87e5b79ef39e93a7b108238f (patch) | |
tree | 3b047861b4ad929640e09107d6ee5defe6dceb33 | |
parent | 7f80447c5f66f588e57eb3da087b27eb2b0c8eec (diff) | |
download | crosstool-ng-db4b7179ed83cedd87e5b79ef39e93a7b108238f.tar.gz crosstool-ng-db4b7179ed83cedd87e5b79ef39e93a7b108238f.tar.bz2 crosstool-ng-db4b7179ed83cedd87e5b79ef39e93a7b108238f.zip |
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>
-rw-r--r-- | config/arch/bpf.in | 9 | ||||
-rw-r--r-- | samples/bpf-unknown-none/crosstool.config | 11 | ||||
-rw-r--r-- | samples/bpf-unknown-none/reported.by | 3 | ||||
-rw-r--r-- | scripts/build/arch/bpf.sh | 7 |
4 files changed, 30 insertions, 0 deletions
diff --git a/config/arch/bpf.in b/config/arch/bpf.in new file mode 100644 index 00000000..9d0d7373 --- /dev/null +++ b/config/arch/bpf.in @@ -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. diff --git a/samples/bpf-unknown-none/crosstool.config b/samples/bpf-unknown-none/crosstool.config new file mode 100644 index 00000000..383f75d6 --- /dev/null +++ b/samples/bpf-unknown-none/crosstool.config @@ -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 diff --git a/samples/bpf-unknown-none/reported.by b/samples/bpf-unknown-none/reported.by new file mode 100644 index 00000000..1b18dcb4 --- /dev/null +++ b/samples/bpf-unknown-none/reported.by @@ -0,0 +1,3 @@ +reporter_name="Cupertino Miranda" +reporter_url="" +reporter_comment="BPF toolchain" diff --git a/scripts/build/arch/bpf.sh b/scripts/build/arch/bpf.sh new file mode 100644 index 00000000..de427283 --- /dev/null +++ b/scripts/build/arch/bpf.sh @@ -0,0 +1,7 @@ +# Compute BPF-specific values + +CT_DoArchTupleValues() { + CT_TARGET_ARCH=bpf + CT_TARGET_VENDOR=unknown + CT_TARGET_SYS=none +} |