aboot: Fix issue with secure boot

For secure boot signature is appended at the end of
kernel image. With device tree support ramdisk size is
added as dt size while calculating actual image size
of kernel. This breaks secure boot for targets which
do not use device tree. Use dt size only if device tree
is supported.

Change-Id: I1302c71a1eb3283ac18135397f25fa7d58fd93bb
diff --git a/app/aboot/aboot.c b/app/aboot/aboot.c
index 9b5151c..910cd08 100644
--- a/app/aboot/aboot.c
+++ b/app/aboot/aboot.c
@@ -499,10 +499,7 @@
 		image_addr = (unsigned char *)target_get_scratch_address();
 		kernel_actual = ROUND_TO_PAGE(hdr->kernel_size, page_mask);
 		ramdisk_actual = ROUND_TO_PAGE(hdr->ramdisk_size, page_mask);
-		second_actual = ROUND_TO_PAGE(hdr->second_size, page_mask);
-		dt_actual = ROUND_TO_PAGE(hdr->ramdisk_size, page_mask);
-		imagesize_actual = (page_size + kernel_actual + ramdisk_actual + second_actual +
-							dt_actual);
+		imagesize_actual = (page_size + kernel_actual + ramdisk_actual);
 
 		offset = 0;