wifi-scripts: add multi-radio config support
[openwrt/staging/nbd.git] / target / linux / realtek / image / common.mk
1 # SPDX-License-Identifier: GPL-2.0-only
2
3 define Device/cameo-fw
4 CAMEO_BOARD_MODEL = $$(DEVICE_MODEL)
5 KERNEL := \
6 kernel-bin | \
7 append-dtb | \
8 libdeflate-gzip | \
9 uImage gzip | \
10 cameo-tag
11 IMAGES += factory_image1.bin
12 IMAGE/factory_image1.bin := \
13 append-kernel | \
14 pad-to 64k | \
15 append-rootfs | \
16 pad-rootfs | \
17 pad-to 16 | \
18 check-size | \
19 cameo-version | \
20 cameo-headers
21 endef
22
23 define Device/d-link_dgs-1210
24 $(Device/cameo-fw)
25 IMAGE_SIZE := 13824k
26 DEVICE_VENDOR := D-Link
27 CAMEO_KERNEL_PART_SIZE := 1572864
28 CAMEO_KERNEL_PART := 2
29 CAMEO_ROOTFS_PART := 3
30 CAMEO_CUSTOMER_SIGNATURE := 2
31 CAMEO_BOARD_VERSION := 32
32 endef
33
34 define Device/hpe_1920
35 DEVICE_VENDOR := HPE
36 IMAGE_SIZE := 29632k
37 BLOCKSIZE := 64k
38 H3C_PRODUCT_ID := 0x3c010501
39 KERNEL := \
40 kernel-bin | \
41 append-dtb | \
42 7z | \
43 h3c-image | \
44 h3c-vfs
45 KERNEL_INITRAMFS := \
46 kernel-bin | \
47 append-dtb | \
48 7z | \
49 h3c-image
50 IMAGE/sysupgrade.bin := \
51 append-kernel | \
52 pad-to $$$$(BLOCKSIZE) | \
53 append-rootfs | \
54 pad-rootfs | \
55 check-size | \
56 append-metadata
57 endef
58
59 define Device/zyxel_gs1900
60 DEVICE_VENDOR := Zyxel
61 IMAGE_SIZE := 6976k
62 UIMAGE_MAGIC := 0x83800000
63 KERNEL_INITRAMFS := \
64 kernel-bin | \
65 append-dtb | \
66 libdeflate-gzip | \
67 zyxel-vers | \
68 uImage gzip
69 endef