[MNG-5599] given -amd and -am, add upstream deps