arm: lib: Fix makefile issue

idea is taken here -
https://github.com/poondog/kangaroo-m7-mkIII/commit/67e7aedfc061fdbfa9713027d465b80a49c9413b