From f9d63e1d329df4d12e2001f8e9fe4eabbb4fd706 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tomas=20Markevi=C4=8Dius?= Date: Thu, 14 Sep 2017 18:35:51 +0300 Subject: [PATCH] change way wpantund is built and installed --- stage3/02-wpantund/00-run.sh | 29 +++++++++++++++++++---------- 1 file changed, 19 insertions(+), 10 deletions(-) diff --git a/stage3/02-wpantund/00-run.sh b/stage3/02-wpantund/00-run.sh index 8980428..8006020 100755 --- a/stage3/02-wpantund/00-run.sh +++ b/stage3/02-wpantund/00-run.sh @@ -5,17 +5,26 @@ #install -d files/etc ${ROOTFS_DIR}/ #install -d files/usr ${ROOTFS_DIR}/ -install -d ${ROOTFS_DIR}/usr/local/bin/ ${ROOTFS_DIR}/usr/local/sbin/ ${ROOTFS_DIR}/usr/local/libexec/wpantund/ -install -m 755 files/usr/local/bin/wpanctl ${ROOTFS_DIR}/usr/local/bin/ -install -m 755 files/usr/local/sbin/wpantund ${ROOTFS_DIR}/usr/local/sbin/ -install -m 755 files/usr/local/libexec/wpantund/ncp-spinel.la ${ROOTFS_DIR}/usr/local/libexec/wpantund/ -install -m 755 files/usr/local/libexec/wpantund/ncp-dummy.so ${ROOTFS_DIR}/usr/local/libexec/wpantund/ -install -m 755 files/usr/local/libexec/wpantund/ncp-dummy.la ${ROOTFS_DIR}/usr/local/libexec/wpantund/ -install -m 755 files/usr/local/libexec/wpantund/ncp-spinel.so ${ROOTFS_DIR}/usr/local/libexec/wpantund/ -install -m 644 files/etc/dbus-1/system.d/wpantund.conf ${ROOTFS_DIR}/etc/dbus-1/system.d/ -install -m 644 files/etc/wpantund.conf ${ROOTFS_DIR}/etc/ -install -m 644 files/etc/systemd/system/wpantund.service ${ROOTFS_DIR}/etc/systemd/system/ + + +# install -d ${ROOTFS_DIR}/usr/local/bin/ ${ROOTFS_DIR}/usr/local/sbin/ ${ROOTFS_DIR}/usr/local/libexec/wpantund/ +# install -m 755 files/usr/local/bin/wpanctl ${ROOTFS_DIR}/usr/local/bin/ +# install -m 755 files/usr/local/sbin/wpantund ${ROOTFS_DIR}/usr/local/sbin/ +# install -m 755 files/usr/local/libexec/wpantund/ncp-spinel.la ${ROOTFS_DIR}/usr/local/libexec/wpantund/ +# install -m 755 files/usr/local/libexec/wpantund/ncp-dummy.so ${ROOTFS_DIR}/usr/local/libexec/wpantund/ +# install -m 755 files/usr/local/libexec/wpantund/ncp-dummy.la ${ROOTFS_DIR}/usr/local/libexec/wpantund/ +# install -m 755 files/usr/local/libexec/wpantund/ncp-spinel.so ${ROOTFS_DIR}/usr/local/libexec/wpantund/ +# install -m 644 files/etc/dbus-1/system.d/wpantund.conf ${ROOTFS_DIR}/etc/dbus-1/system.d/ +# install -m 644 files/etc/wpantund.conf ${ROOTFS_DIR}/etc/ +# install -m 644 files/etc/systemd/system/wpantund.service ${ROOTFS_DIR}/etc/systemd/system/ on_chroot << EOF + git clone https://github.com/openthread/wpantund + cd wpantund + git checkout -b raspi a5d2c20b6438e376a7133550787a24782f073cb3 + ./bootstrap.sh + ./configure --sysconfdir=/etc + make -j3 + make install systemctl disable wpantund EOF