at91: fix legacy build
The build system took the DTB_SIZE definition from Default and not from
production-dtb under some conditions. Move the size definitions to
Default now as it is only used in production-dtb anyway.
Thanks Mathias Kresin for helping me with this.
Fixes: c2f052acae ("at91: convert boards to generic build target")
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
			
			
This commit is contained in:
		@@ -24,7 +24,7 @@ define Device/Default
 | 
				
			|||||||
  KERNEL_NAME := zImage
 | 
					  KERNEL_NAME := zImage
 | 
				
			||||||
  KERNEL_SIZE := 4096k
 | 
					  KERNEL_SIZE := 4096k
 | 
				
			||||||
  KERNEL := kernel-bin | append-dtb | lzma | uImage lzma
 | 
					  KERNEL := kernel-bin | append-dtb | lzma | uImage lzma
 | 
				
			||||||
  DTB_SIZE :=
 | 
					  DTB_SIZE := 128k
 | 
				
			||||||
endef
 | 
					endef
 | 
				
			||||||
 | 
					
 | 
				
			||||||
define Device/dtb
 | 
					define Device/dtb
 | 
				
			||||||
@@ -66,7 +66,6 @@ endef
 | 
				
			|||||||
define Device/production-dtb
 | 
					define Device/production-dtb
 | 
				
			||||||
  $(Device/production)
 | 
					  $(Device/production)
 | 
				
			||||||
  $(Device/dtb)
 | 
					  $(Device/dtb)
 | 
				
			||||||
  DTB_SIZE := 128k
 | 
					 | 
				
			||||||
  IMAGE/factory.bin := append-dtb | pad-to $$$$(DTB_SIZE) \
 | 
					  IMAGE/factory.bin := append-dtb | pad-to $$$$(DTB_SIZE) \
 | 
				
			||||||
	  | append-kernel | pad-to $$$$(KERNEL_SIZE) | append-ubi
 | 
						  | append-kernel | pad-to $$$$(KERNEL_SIZE) | append-ubi
 | 
				
			||||||
endef
 | 
					endef
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user