app: aboot: Modify code for dynamic allocation of target boot params

Target boot params size may vary depending on the targets, hence to
avoid buffer overflow use dynamic memory allocation approach for buffer.
And modifyweak function also.

Change-Id: Ic2f2094d080508a2b50b7f6f3b91c84fe9816905
2 files changed