buildworker: add swig package
authorPetr Štetiar <ynezz@true.cz>
Fri, 12 Mar 2021 13:57:44 +0000 (14:57 +0100)
committerPetr Štetiar <ynezz@true.cz>
Fri, 12 Mar 2021 13:57:44 +0000 (14:57 +0100)
The U-Boot build for more and more SoCs is using binman by default to
combine the images (SPL, U-Boot, ...). Binman is build from the U-Boot
project and it needs swig to build. We have multiple patches in OpenWrt
to remove this dependency from U-Boot, but it costs more and more time
to revert back to the old code. We have them in sunxi and rockchip
U-Boot, the Mediatek U-Boot build failed some time ago because of
missing swig in build bots.

In U-Boot 2021.01 the binman usage changed again, so it needs further
adaptations.

Building swig in OpenWrt tools will not be easy. We needs swig with
Python bindings and this version needs the Python development headers to
build.

References: https://lists.infradead.org/pipermail/openwrt-devel/2021-February/033654.html
Suggested-by: Hauke Mehrtens <hauke@hauke-m.de>
Signed-off-by: Petr Štetiar <ynezz@true.cz>
docker/buildworker/Dockerfile

index d568ebba83d67e8bbbeb7b37f23e1dcc765a70c1..8e7960b9059f1ac46f90356d0f2ded3905c39008 100644 (file)
@@ -24,6 +24,7 @@ RUN \
                rsync \
                signify-openbsd \
                subversion \
+               swig \
                pv \
                pwgen \
                python3 \