build/core: Forward-port hook for device specific tasks

Added generic hook for loading device specific tasks.

Change-Id: I6216195edd6a43e940b3d254256092aca98ca58d
Signed-off-by: Patrik Ryd <patrik.ryd@linaro.org>
Signed-off-by: Bernhard Rosenkraenzer <Bernhard.Rosenkranzer@linaro.org>
Initial bringup platform build

Change-Id: I25fac95fa0d003f33e8c0d181ccf5b231144fd2a
(cherry picked from commit 216afda9e49a7cc92df7db59131dee81ca8f29c0)
(cherry picked from commit f514596c6dcc8aeecae2ab4e51b2fa5536bb09ea)
(cherry picked from commit 30cfd1833568175d135ea0d7afd92cb7170b88cc)
Link PRIVATE_TARGET_FDO_LIB before shared libraries

For global declaration of FDO profile generation and usage,
we need to link PRIVATE_TARGET_FDO_LIB (libgcov.a by default)
prior to linking shared libraries.

TARGET_FDO_LIB is set if feedback directed optimizations
are in use, so we do not need to worry about consistent size
increases from this change.

Change-Id: I543903f58893816f037c9466f31b19dfe822fdf4