I'd take off all the flaking paint, clean and sand it down to provide a key. Use an oil-based external paint for it to last a bit longer and I'd be tempted to use a primer too.
They look like wood not metal, but if am wrong and there's any bare metal or rust then best to treat that too before painting.