diff options
author | Erick Reyes <erickreyes@google.com> | 2018-08-20 17:01:00 -0700 |
---|---|---|
committer | Erick Reyes <erickreyes@google.com> | 2018-08-20 17:01:00 -0700 |
commit | 223674023a4a0024e3477c8e5ca69aac77fe98b5 (patch) | |
tree | a139d55249f447e4c605c8cf0b854e20873d585c | |
parent | eb6bc737662da03b3c35dcc74e49176e37928cfc (diff) | |
parent | 60ab9285e5bfeff92a113983ec157f16051f92ba (diff) | |
download | adeb-223674023a4a0024e3477c8e5ca69aac77fe98b5.tar.gz |
Merge changes from joelagnel/adeb
Signed-off-by: Erick Reyes <erickreyes@google.com>
-rwxr-xr-x | androdeb | 7 | ||||
-rwxr-xr-x | buildstrap | 3 |
2 files changed, 2 insertions, 8 deletions
@@ -42,8 +42,6 @@ if [ "x$ASHELL" == "x1" ]; then shift || true; continue fi -KERNEL_HEADERS_NEEDED=0 - case $key in shell) ASHELL=1; shift || true; ;; remove) REMOVE=1; shift || true; ;; @@ -54,7 +52,7 @@ case $key in --full) FULL=1; config_full_build; shift || true; ;; --arch) ARCH=$2; shift || true; shift || true; ;; --archive) DOWNLOAD=0; TARF=$2; shift || true; shift || true; ;; - --bcc) source $spath/packages/bcc; KERNEL_HEADERS_NEEDED=1; shift || true; ;; + --bcc) FULL=1; source $spath/packages/bcc; shift || true; ;; --kernelsrc) KERNELSRC="$2"; shift || true; shift || true; ;; --skip-install) SKIP_INSTALL=1; shift || true; ;; --kernel-headers-targz) KERNELHDRS=$2; shift || true; shift || true; ;; @@ -73,7 +71,6 @@ done if [ $FULL -eq 1 ]; then FNAME=androdeb-fs.tgz.zip FNAME_UZ=androdeb-fs.tgz - KERNEL_HEADERS_NEEDED=1 else FNAME=androdeb-fs-minimal.tgz.zip FNAME_UZ=androdeb-fs-minimal.tgz @@ -282,7 +279,7 @@ if [ $DOWNLOAD -eq 1 ]; then TARF=$TDIR_ABS/$FNAME_UZ fi -if [ ! -z "$KERNEL_HEADERS_NEEDED" ] && [ -z "$KERNELSRC" ] && [ -z "$KERNELHDRS" ]; then +if [ ! -z "$FULL" ] && [ -z "$KERNELSRC" ] && [ -z "$KERNELHDRS" ]; then c_info "Kernel headers are needed but none were provided. Downloading pre-built headers" download_headers fi @@ -63,9 +63,6 @@ echo "nameserver 4.2.2.2" > $OUT_TMP/etc/resolv.conf 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/; - - pushd $TDIR/debian/bcc-master - popd fi # Should be really do this? |