treewide: simplify inclusion of subtarget image files
[openwrt/staging/jow.git] / target / linux / at91 / image / Makefile
index adb7c6d0ba5c30bda3efc3308973a9c51af4cb78..ff801dae862ebe7e17f3a789d09d4199bcc65945 100644 (file)
@@ -13,12 +13,7 @@ define Build/at91-install-zImage
     $(CP) $(KDIR)/zImage $@
 endef
 
-ifeq ($(SUBTARGET),sam9x)
-include ./sam9x.mk
-endif
-ifeq ($(SUBTARGET),sama5)
-include ./sama5.mk
-endif
+include $(SUBTARGET).mk
 
 AT91_SD_BOOT_PARTSIZE:=64
 FAT32_BLOCK_SIZE:=1024