layerscape: use MKUBIFS_OPTS for per-device ubi parameters
[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 MKUBIFS_OPTS := -m 1 -e 262016 -c 128
13 KERNEL := kernel-bin | uImage none
14 KERNEL_NAME := zImage
15 KERNEL_LOADADDR := 0x80008000
16 KERNEL_ENTRY_POINT := 0x80008000
17 endef
18
19 define Device/ls1012ardb
20 DEVICE_TITLE := LS1012ARDB
21 DEVICE_PACKAGES += \
22 layerscape-rcw-ls1012ardb \
23 layerscape-ppfe \
24 layerscape-ppa-ls1012ardb \
25 u-boot-ls1012ardb-image \
26 kmod-ppfe
27 DEVICE_DTS := ../../../arm64/boot/dts/freescale/fsl-ls1012a-rdb
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/ls1012afrwy
45 DEVICE_TITLE := LS1012AFRWY
46 DEVICE_PACKAGES += \
47 layerscape-rcw-ls1012afrwy \
48 layerscape-ppfe \
49 layerscape-ppa-ls1012afrwy \
50 u-boot-ls1012afrwy-image \
51 kmod-ppfe
52 DEVICE_DTS := ../../../arm64/boot/dts/freescale/fsl-ls1012a-frwy
53 FILESYSTEMS := ext4
54 IMAGES := firmware.bin sdcard.img
55 IMAGE/firmware.bin := \
56 ls-clean | \
57 ls-append $(1)-rcw.bin | pad-to 128K | \
58 ls-append pfe.itb | pad-to 384K | \
59 ls-append $(1)-ppa.itb | pad-to 1024K | \
60 ls-append $(1)-uboot.bin | pad-to 1856K | \
61 ls-append $(1)-uboot-env.bin | pad-to 2048K | \
62 check-size 2097153
63 IMAGE/sdcard.img := \
64 ls-clean | \
65 ls-append-sdhead $(1) | pad-to 15M | \
66 ls-append-dtb $$(DEVICE_DTS) | pad-to 16M | \
67 append-kernel | pad-to $(LS_SD_ROOTFSPART_OFFSET)M | \
68 append-rootfs | check-size $(LS_SD_IMAGE_SIZE)
69 endef
70 TARGET_DEVICES += ls1012afrwy
71
72 define Device/ls1043ardb
73 DEVICE_TITLE := LS1043ARDB
74 DEVICE_PACKAGES += \
75 layerscape-rcw-ls1043ardb \
76 layerscape-fman-ls1043ardb \
77 layerscape-ppa-ls1043ardb \
78 u-boot-ls1043ardb-image
79 DEVICE_DTS := ../../../arm64/boot/dts/freescale/fsl-ls1043a-rdb-sdk
80 FILESYSTEMS := squashfs
81 IMAGE/firmware.bin := \
82 ls-clean | \
83 ls-append $(1)-rcw.bin | pad-to 1M | \
84 ls-append $(1)-uboot.bin | pad-to 3M | \
85 ls-append $(1)-uboot-env.bin | pad-to 4M | \
86 ls-append $(1)-ppa.itb | pad-to 9M | \
87 ls-append $(1)-fman.bin | pad-to 15M | \
88 ls-append-dtb $$(DEVICE_DTS) | pad-to 16M | \
89 append-kernel | pad-to 32M | \
90 append-rootfs | pad-rootfs | check-size 67108865
91 endef
92 TARGET_DEVICES += ls1043ardb
93
94 define Device/ls1046ardb
95 DEVICE_TITLE := LS1046ARDB
96 DEVICE_PACKAGES += \
97 layerscape-rcw-ls1046ardb \
98 layerscape-fman-ls1046ardb \
99 layerscape-ppa-ls1046ardb \
100 u-boot-ls1046ardb-image
101 DEVICE_DTS := ../../../arm64/boot/dts/freescale/fsl-ls1046a-rdb-sdk
102 UBINIZE_OPTS := -E 5
103 BLOCKSIZE := 256KiB
104 PAGESIZE := 1
105 IMAGE/firmware.bin := \
106 ls-clean | \
107 ls-append $(1)-rcw.bin | pad-to 1M | \
108 ls-append $(1)-uboot.bin | pad-to 3M | \
109 ls-append $(1)-uboot-env.bin | pad-to 4M | \
110 ls-append $(1)-ppa.itb | pad-to 9M | \
111 ls-append $(1)-fman.bin | pad-to 15M | \
112 ls-append-dtb $$(DEVICE_DTS) | pad-to 16M | \
113 append-kernel | pad-to 32M | \
114 append-ubi | check-size 67108865
115 endef
116 TARGET_DEVICES += ls1046ardb