4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
10 FILESYSTEMS
:= squashfs
11 IMAGES
:= firmware.bin
12 KERNEL
:= kernel-bin | uImage none
14 KERNEL_LOADADDR
:= 0x80008000
15 KERNEL_ENTRY_POINT
:= 0x80008000
18 define Device
/ls1021atwr
19 DEVICE_TITLE
:= LS1021ATWR
20 DEVICE_PACKAGES
+= layerscape-rcw-ls1021atwr
21 DEVICE_DTS
:= ls1021a-twr
22 IMAGE
/firmware.bin
:= \
24 ls-append
$(1)-rcw.bin | pad-to
1M | \
25 ls-append
$(1)-uboot.bin | pad-to
3M | \
26 ls-append
$(1)-uboot-env.bin | pad-to
15M | \
27 ls-append-dtb
$$(DEVICE_DTS
) | pad-to
16M | \
28 append-kernel | pad-to
32M | \
29 append-rootfs | pad-rootfs | check-size
67108865
31 TARGET_DEVICES
+= ls1021atwr
33 define Device
/ls1021atwr-sdboot
34 DEVICE_TITLE
:= LS1021ATWR
(SD Card Boot
)
35 DEVICE_DTS
:= ls1021a-twr
40 ls-append-sdhead
$(1) | pad-to
4K | \
41 ls-append
$(1)-uboot.bin | pad-to
3M | \
42 ls-append
$(1)-uboot-env.bin | pad-to
15M | \
43 ls-append-dtb
$$(DEVICE_DTS
) | pad-to
16M | \
44 append-kernel | pad-to
$(LS_SD_ROOTFSPART_OFFSET
)M | \
45 append-rootfs | check-size
$(LS_SD_IMAGE_SIZE
)
47 TARGET_DEVICES
+= ls1021atwr-sdboot