The difference between bare,.armv6m and freertos.armv6m is whether there is freertos or not.
However, during the compilation under the target bare.armv6m, the compile flag -D__FreeRTOS__ still gets set.
Simply removing it is not an option, because half the codebase does not compile without -D__FreeRTOS__; for example it sometimes makes an assumption that it is being compiled under linux.