Revert "Refactor inout helper"
Revert "Refactor inout helper"

This reverts commit b21b028f56a6ab7b8ee324ce29b990e453477d97.

Additionally depfile changes are applied to reverted code.

Change-Id: Ifbd5c387b0e0c9c9b2704bf61215955c4bfb3945
Signed-off-by: Michal Przeplata <e7e66087ea2b6f4d3eb01c4545d71a74d74ace14@arm.com>

ARM-software/bob-build,ARM-software/bob-build,ARM-software/bob-build,ARM-software/bob-build,ARM-software/bob-build