layerscape: split image makefile per subtarget
[openwrt/openwrt.git] / target / linux / layerscape / image / armv8_32b.mk
1 #
2 # Copyright 2018 NXP
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7
8 define Device/Default
9 PROFILES := Default
10 IMAGES := firmware.bin
11 FILESYSTEMS := ubifs
12 KERNEL := kernel-bin | uImage none
13 KERNEL_NAME := zImage
14 KERNEL_LOADADDR := 0x80008000
15 KERNEL_ENTRY_POINT := 0x80008000
16 endef
17
18 define Device/ls1012ardb
19 DEVICE_TITLE := LS1012ARDB
20 DEVICE_PACKAGES += \
21 layerscape-rcw-ls1012ardb \
22 layerscape-ppfe \
23 layerscape-ppa-ls1012ardb \
24 u-boot-ls1012ardb-image \
25 kmod-ppfe
26 DEVICE_DTS := ../../../arm64/boot/dts/freescale/fsl-ls1012a-rdb
27 UBIFS_OPTS := -m 1 -e 262016 -c 128
28 UBINIZE_OPTS := -E 5
29 BLOCKSIZE := 256KiB
30 PAGESIZE := 1
31 IMAGE/firmware.bin := \
32 ls-clean | \
33 ls-append $(1)-rcw.bin | pad-to 1M | \
34 ls-append $(1)-uboot.bin | pad-to 3M | \
35 ls-append $(1)-uboot-env.bin | pad-to 4M | \
36 ls-append $(1)-ppa.itb | pad-to 10M | \
37 ls-append pfe.itb | pad-to 15M | \
38 ls-append-dtb $$(DEVICE_DTS) | pad-to 16M | \
39 append-kernel | pad-to 32M | \
40 append-ubi | check-size 67108865
41 endef
42 TARGET_DEVICES += ls1012ardb
43
44 define Device/ls1012afrdm
45 DEVICE_TITLE := LS1012AFRDM
46 DEVICE_PACKAGES += \
47 layerscape-rcw-ls1012afrdm \
48 layerscape-ppfe \
49 layerscape-ppa-ls1012afrdm \
50 u-boot-ls1012afrdm-image \
51 kmod-ppfe
52 DEVICE_DTS := ../../../arm64/boot/dts/freescale/fsl-ls1012a-frdm
53 UBIFS_OPTS := -m 1 -e 262016 -c 128
54 UBINIZE_OPTS := -E 5
55 BLOCKSIZE := 256KiB
56 PAGESIZE := 1
57 IMAGE/firmware.bin := \
58 ls-clean | \
59 ls-append $(1)-rcw.bin | pad-to 1M | \
60 ls-append $(1)-uboot.bin | pad-to 3M | \
61 ls-append $(1)-uboot-env.bin | pad-to 4M | \
62 ls-append $(1)-ppa.itb | pad-to 10M | \
63 ls-append pfe.itb | pad-to 15M | \
64 ls-append-dtb $$(DEVICE_DTS) | pad-to 16M | \
65 append-kernel | pad-to 32M | \
66 append-ubi | check-size 67108865
67 endef
68 TARGET_DEVICES += ls1012afrdm
69
70 define Device/ls1043ardb
71 DEVICE_TITLE := LS1043ARDB
72 DEVICE_PACKAGES += \
73 layerscape-rcw-ls1043ardb \
74 layerscape-fman-ls1043ardb \
75 layerscape-ppa-ls1043ardb \
76 u-boot-ls1043ardb-image
77 DEVICE_DTS := ../../../arm64/boot/dts/freescale/fsl-ls1043a-rdb-sdk
78 FILESYSTEMS := squashfs
79 IMAGE/firmware.bin := \
80 ls-clean | \
81 ls-append $(1)-rcw.bin | pad-to 1M | \
82 ls-append $(1)-uboot.bin | pad-to 3M | \
83 ls-append $(1)-uboot-env.bin | pad-to 4M | \
84 ls-append $(1)-ppa.itb | pad-to 9M | \
85 ls-append $(1)-fman.bin | pad-to 15M | \
86 ls-append-dtb $$(DEVICE_DTS) | pad-to 16M | \
87 append-kernel | pad-to 32M | \
88 append-rootfs | pad-rootfs | check-size 67108865
89 endef
90 TARGET_DEVICES += ls1043ardb
91
92 define Device/ls1046ardb
93 DEVICE_TITLE := LS1046ARDB
94 DEVICE_PACKAGES += \
95 layerscape-rcw-ls1046ardb \
96 layerscape-fman-ls1046ardb \
97 layerscape-ppa-ls1046ardb \
98 u-boot-ls1046ardb-image
99 DEVICE_DTS := ../../../arm64/boot/dts/freescale/fsl-ls1046a-rdb-sdk
100 UBIFS_OPTS := -m 1 -e 262016 -c 128
101 UBINIZE_OPTS := -E 5
102 BLOCKSIZE := 256KiB
103 PAGESIZE := 1
104 IMAGE/firmware.bin := \
105 ls-clean | \
106 ls-append $(1)-rcw.bin | pad-to 1M | \
107 ls-append $(1)-uboot.bin | pad-to 3M | \
108 ls-append $(1)-uboot-env.bin | pad-to 4M | \
109 ls-append $(1)-ppa.itb | pad-to 9M | \
110 ls-append $(1)-fman.bin | pad-to 15M | \
111 ls-append-dtb $$(DEVICE_DTS) | pad-to 16M | \
112 append-kernel | pad-to 32M | \
113 append-ubi | check-size 67108865
114 endef
115 TARGET_DEVICES += ls1046ardb