aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--config/arch/bpf.in9
-rw-r--r--samples/bpf-unknown-none/crosstool.config11
-rw-r--r--samples/bpf-unknown-none/reported.by3
-rw-r--r--scripts/build/arch/bpf.sh7
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
+}