treewide: simplify inclusion of subtarget image files

Many target use a repetitive if-include scheme for their subtarget
image files, though their names are consistent with the subtarget
names.

This patch removes these redundant conditions and just uses the
variable for the include where the target setup allows it.

For sunxi, this includes a trivial rename of the subtarget image
Makefiles.

Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
This commit is contained in:
Adrian Schmutzler
2020-06-07 13:11:15 +02:00
parent 108df3eabb
commit bb39fea11a
11 changed files with 15 additions and 72 deletions

View File

@@ -43,12 +43,6 @@ define Build/traverse-fit
@mv -f $@.new $@
endef
ifeq ($(SUBTARGET),armv8_64b)
include armv8_64b.mk
endif
ifeq ($(SUBTARGET),armv7)
include armv7.mk
endif
include $(SUBTARGET).mk
$(eval $(call BuildImage))