Condition the library functions in spm and core in IPC model to minimize the flash size.
patch link: https://review.trustedfirmware.org/#/c/trusted-firmware-m/+/1182/