build: Fix QCOM_BSP_LEGACY cflags

Change-Id: I880f32892d9e082e3ba92878414f3cb3c6f08066
(cherry picked from commit 599a693becbf8d47dab77ec2c404349d1951f77a)