From c1e5000500381440a9e7a4cfc38dcd49eeaea2c0 Mon Sep 17 00:00:00 2001 From: Bob Mottram <bob@freedombone.net> Date: Wed, 4 Jul 2018 17:40:03 +0100 Subject: [PATCH] Build bmx7 plugins --- src/freedombone-image-customise | 39 +++++++++++++++++++-------------- 1 file changed, 23 insertions(+), 16 deletions(-) diff --git a/src/freedombone-image-customise b/src/freedombone-image-customise index 994ff82c6..483e79599 100755 --- a/src/freedombone-image-customise +++ b/src/freedombone-image-customise @@ -834,6 +834,7 @@ install_bmx7() { git clone "$BMX7_REPO" "$rootdir/etc/bmx7" MBEDTLS_VERSION='2.11.0' + UCI_VERSION='0.7.5' cat <<EOF > "$rootdir/usr/bin/install_bmx7" #!/bin/bash @@ -844,30 +845,36 @@ cd mbedtls-${MBEDTLS_VERSION} make sudo make install +cd /etc +wget http://downloads.openwrt.org/sources/uci-${UCI_VERSION}.tar.gz +tar xzvf uci-${UCI_VERSION}.tar.gz +cd uci-${UCI_VERSION} +make clean all install WOPTS="-pedantic -Wall" +sudo make install + cd /etc/bmx7 git checkout $BMX7_COMMIT -b $BMX7_COMMIT -make EXTRA_CFLAGS="-DCRYPTLIB=MBEDTLS_${MBEDTLS_VERSION}" +make build_all EXTRA_CFLAGS="-DTRAFFIC_DUMP -DCRYPTLIB=MBEDTLS_${MBEDTLS_VERSION}" make install -cd /etc/bmx7/lib/bmx7_http_info -make -make install +cd /etc/bmx7 +make -C lib/bmx7_http_info/ +make -C lib/bmx7_http_info/ install -cd /etc/bmx7/lib/bmx7_json -make -make install +make -C lib/bmx7_uci_config/ +make -C lib/bmx7_uci_config/ install -cd /etc/bmx7/lib/bmx7_tun -make -make install +make -C lib/bmx7_json/ +make -C lib/bmx7_json/ install -cd /etc/bmx7/lib/bmx7_sms -make -make install +make -C lib/bmx7_tun/ +make -C lib/bmx7_tun/ install -cd /etc/bmx7/lib/bmx7_topology -make -make install +make -C lib/bmx7_sms/ +make -C lib/bmx7_sms/ install + +make -C lib/bmx7_topology/ +make -C lib/bmx7_topology/ install EOF chroot "$rootdir" chmod +x /usr/bin/install_bmx7 chroot "$rootdir" /usr/bin/install_bmx7 -- GitLab