In addition to swinventory you can create a image based swinventory. This module requires swinventory module to be enabled globally.
Add
INHERIT += "swinventory"
to your local.conf and
inherit swinventory-image
in every image you like.
It will create a file calles ${PN}-swinventory.json
at tmp/deploy/images/<arch>/