board: stm32mp1: use IS_ENABLED to prevent ifdef in env functions