Since we know the soil is formed by a process called "weathering of rocks", I.e. breakdown of rocks occurs and the soil is formed. So the minerals present in the rocks would also be present in the soil formed from it. While other factors like bacteria, plants, and bacteria help in soil formation by helping in breaking down the rocks.