Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 560450ce authored by Colin Cross's avatar Colin Cross Committed by android-build-merger
Browse files

Merge "Walk up tree to find makefiles in mma" am: 5ccafd0f am: 8ff4ea8a am: 890ccba0

am: b12d56df

Change-Id: I7d117495d3c618c0b2d35b45e102130b22409d86
parents 76f766fc b12d56df
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -886,8 +886,10 @@ function mma()
      echo "Couldn't locate the top of the tree.  Try setting TOP."
      return 1
    fi
    local MY_PWD=`PWD= /bin/pwd|sed 's:'$T'/::'`
    local MODULES_IN_PATHS=MODULES-IN-$MY_PWD
    local M=$(findmakefile)
    # Remove the path to top as the makefilepath needs to be relative
    local M=`echo $M|sed 's:'$T'/::'`
    local MODULES_IN_PATHS=MODULES-IN-$(dirname ${M})
    # Convert "/" to "-".
    MODULES_IN_PATHS=${MODULES_IN_PATHS//\//-}
    $DRV make -C $T -f build/core/main.mk $@ $MODULES_IN_PATHS