Skip to content
Snippets Groups Projects
Commit 937d25be authored by David Bauer's avatar David Bauer
Browse files

build: use host LLVM toolchain


OpenWrt now employs eBPF components. These are built as we select all
non-shared packages.

Configure teh OpenWrt buildsystem to use the hots BPF toolchain and add
the required llvm compiler to the dependencies. This avoids increasing
the build-time as no eBPF toolchain needs to be built.

Signed-off-by: default avatarDavid Bauer <mail@david-bauer.net>
parent f42266d3
No related branches found
No related tags found
No related merge requests found
...@@ -7,6 +7,7 @@ ARG DEBIAN_FRONTEND=noninteractive ...@@ -7,6 +7,7 @@ ARG DEBIAN_FRONTEND=noninteractive
RUN apt-get update && apt-get install -y --no-install-recommends \ RUN apt-get update && apt-get install -y --no-install-recommends \
build-essential \ build-essential \
ca-certificates \ ca-certificates \
clang \
ecdsautils \ ecdsautils \
file \ file \
gawk \ gawk \
...@@ -15,6 +16,7 @@ RUN apt-get update && apt-get install -y --no-install-recommends \ ...@@ -15,6 +16,7 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
libncurses5-dev \ libncurses5-dev \
libnss-unknown \ libnss-unknown \
libssl-dev \ libssl-dev \
llvm \
lua-check \ lua-check \
openssh-client \ openssh-client \
python3 \ python3 \
......
...@@ -27,6 +27,7 @@ Dependencies ...@@ -27,6 +27,7 @@ Dependencies
To build Gluon, several packages need to be installed on the system. On a To build Gluon, several packages need to be installed on the system. On a
freshly installed Debian Bullseye system the following packages are required: freshly installed Debian Bullseye system the following packages are required:
* `clang`
* `git` (to get Gluon and other dependencies) * `git` (to get Gluon and other dependencies)
* `python3` * `python3`
* `build-essential` * `build-essential`
...@@ -37,6 +38,7 @@ freshly installed Debian Bullseye system the following packages are required: ...@@ -37,6 +38,7 @@ freshly installed Debian Bullseye system the following packages are required:
* `libz-dev` (actually `zlib1g-dev`) * `libz-dev` (actually `zlib1g-dev`)
* `libssl-dev` * `libssl-dev`
* `libelf-dev` (to build x86-64) * `libelf-dev` (to build x86-64)
* `llvm`
* `wget` * `wget`
* `rsync` * `rsync`
* `time` (built-in `time` doesn't work) * `time` (built-in `time` doesn't work)
......
...@@ -37,6 +37,7 @@ config('TARGET_ROOTFS_INITRAMFS', false) ...@@ -37,6 +37,7 @@ config('TARGET_ROOTFS_INITRAMFS', false)
config('DEVEL', true) config('DEVEL', true)
config('ALL_NONSHARED', true) config('ALL_NONSHARED', true)
config('BPF_TOOLCHAIN_HOST', true)
try_config('PACKAGE_usbip', false) -- fails to build try_config('PACKAGE_usbip', false) -- fails to build
try_config('PACKAGE_coova-chilli', false) -- fails to build try_config('PACKAGE_coova-chilli', false) -- fails to build
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment