even it's a little bit verbose, unmacrod board descriptions are much easier to read and to understand.
Signed-off-by: Alexander Couzens <lyn...@fe80.eu> --- target/linux/lantiq/image/Makefile | 35 ++++++++++++++++++++++------------- 1 file changed, 22 insertions(+), 13 deletions(-) diff --git a/target/linux/lantiq/image/Makefile b/target/linux/lantiq/image/Makefile index 2b8a3c2..ef91033 100644 --- a/target/linux/lantiq/image/Makefile +++ b/target/linux/lantiq/image/Makefile @@ -300,16 +300,6 @@ define Device/lantiqBrnImage endef DEVICE_VARS += SIGNATURE MAGIC CRC32_POLY -define lantiqTpLink - define Device/$(1) - $$(Device/lantiqTpLink) - DEVICE_PROFILE := $(1) - DEVICE_DTS := $(1) - BOARD_ID := $(2) - endef - TARGET_DEVICES += $(1) -endef - define lantiqImage define Device/$(1) $$(Device/lantiqImage) @@ -435,9 +425,28 @@ Image/Build/Profile/FRITZ3370=$(call Image/BuildEVA/$(1),$(1),FRITZ3370) Image/BuildKernel/Profile/VG3503J=$(call Image/BuildKernelLoader/Template,VG3503J) Image/Build/Profile/VG3503J=$(call Image/BuildLoader/$(1),$(1),VG3503J) -$(eval $(call lantiqTpLink,TDW8970,TD-W8970v1)) -$(eval $(call lantiqTpLink,TDW8980,TD-W8980v1)) -$(eval $(call lantiqTpLink,VR200v,ArcherVR200V)) +define Device/TDW8970 + $(Device/lantiqTpLink) + DEVICE_PROFILE := TDW8970 + DEVICE_DTS = $(DEVICE_PROFILE) + BOARD_ID := TD-W8970v1 +endef + +define Device/TDW8980 + $(Device/lantiqTpLink) + DEVICE_PROFILE := TDW8980 + DEVICE_DTS = $(DEVICE_PROFILE) + BOARD_ID := TD-W8980v1 +endef + +define Device/VR200v + $(Device/lantiqTpLink) + DEVICE_PROFILE := VR200v + DEVICE_DTS = $(DEVICE_PROFILE) + BOARD_ID := ArcherVR200V +endef +TARGET_DEVICES += TDW8970 TDW8980 VR200v + $(eval $(call lantiqImage,VGV7510KW22NOR)) $(eval $(call lantiqBrnImage,VGV7510KW22BRN,BRNDA6431,0x12345678,0x04c11db7)) $(eval $(call lantiqImage,VGV7519NOR)) -- 2.8.3 _______________________________________________ Lede-dev mailing list Lede-dev@lists.infradead.org http://lists.infradead.org/mailman/listinfo/lede-dev