bcm53xx: image: rework Makefile and merge some functions