common: build: clean-up generate_extra_images.mk

Replace dependencies & remove duplicate code

Change-Id: I48e4ae11c0045a2d9039e2f3fbf18d62102b77df
1 file changed