fiptool: Factor out setting of image descriptor action
An image descriptor contains an action and an argument.  The action
indicates the intended operation, as requested by the user.  It can be
pack, unpack or remove.  Factor out setting those fields to a separate
function to minimize code duplication across the various commands that
modify these fields.

Change-Id: I1682958e8e83c4884e435cff6d0833c67726461f
Signed-off-by: dp-arm <dimitris.papastamos@arm.com>
1 parent b63f970 commit d02fcebeb0524f884092ff257333ba1bf3776ceb
@dp-arm dp-arm authored on 30 Dec 2016
Showing 1 changed file
View
tools/fiptool/fiptool.c