build: Fix QCOM_BSP_LEGACY cflags

Change-Id: I880f32892d9e082e3ba92878414f3cb3c6f08066
Merge "build: Fix QCOM_BSP_LEGACY cflags" into to-5.0