diff options
author | Joel <agnel.joel@gmail.com> | 2019-02-28 08:56:12 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-02-28 08:56:12 -0800 |
commit | 18049394fae5fa3477fbab158c7c63f095213d76 (patch) | |
tree | 80aa1c060f74500f44efd2a10dd1468a46403e93 | |
parent | 230533470d48c1cccc719a4421c4a3061d41542d (diff) | |
parent | 3a92f9f1db54e0b8d145e0df9140b1736dcf5760 (diff) | |
download | adeb-18049394fae5fa3477fbab158c7c63f095213d76.tar.gz |
Merge pull request #19 from qais-yousef/compile-bcc-on-the-host
buildstrap: execute build-bcc.sh on the host using chroot
-rwxr-xr-x | androdeb | 5 | ||||
-rwxr-xr-x | buildstrap | 5 |
2 files changed, 3 insertions, 7 deletions
@@ -361,11 +361,6 @@ $ADB push $TDIR/deb.tar.gz /data/androdeb/ $ADB push $spath/addons/* /data/androdeb/ $ADB shell /data/androdeb/device-unpack -# Build BCC and install bcc on device if needed -if [ $INSTALL_BCC -eq 1 ]; then - $ADB shell /data/androdeb/run-command /bcc-master/build-bcc.sh; -fi - # Extract a tar of the built, compiled and installed androdeb env if [[ ! -z ${TARDIR+x} ]]; then c_info "Creating tarball" @@ -62,10 +62,11 @@ echo "nameserver 4.2.2.2" > $OUT_TMP/etc/resolv.conf # Clone BCC if needed if [ $INSTALL_BCC -eq 1 ]; then git clone https://github.com/iovisor/bcc.git $TDIR/debian/bcc-master - cp $spath/bcc/build-bcc.sh $TDIR/debian/bcc-master/; + cp $spath/bcc/build-bcc.sh $TDIR/debian/bcc-master/ + chroot $OUT_TMP /bcc-master/build-bcc.sh fi -# Should be really do this? +# Should we really do this? chmod -R 0777 $TDIR/ [ $SKIP_DEVICE -eq 0 ] || exit 0 |