Solar Tax Credit Form 5695

I looked into adding solar panels and a battery to my home.  To do the installation, due to the proximity of my gas meter  to my main electrical service panel, I need to either move my gas meter or move and upgrade my electrical panel.  I also need to remove my perfectly good light weight tile roof and replace it with asphalt shingles.  Can these necessary costs be included in the total cost of installing solar panels and a battery and qualify for the 30% tax credit?