I installed solar panels on my roof which needed replacement for the panel installation. Can I claim on form 5695 a credit for the roof replacement?

Can I claim on form 5695 a credit for the roof replacement which was required to install solar panels?