drivers/flash: Rework CMakeLists.txt for stm32 drivers

Optimize CMake rules for STM23 series driver build.

Signed-off-by: Erwan Gouriou <erwan.gouriou@linaro.org>
1 file changed