1 define Device
/dsa-migration
2 DEVICE_COMPAT_VERSION
:= 1.1
3 DEVICE_COMPAT_MESSAGE
:= Config cannot be migrated from swconfig to DSA
7 cp
$@
$@.tmp
2>/dev
/null || true
9 -T cros_kernel
-N kernel
-p
$(CONFIG_TARGET_KERNEL_PARTSIZE
)m \
10 -N rootfs
-p
$(CONFIG_TARGET_ROOTFS_PARTSIZE
)m \
12 $$((3687-$(CONFIG_TARGET_ROOTFS_PARTSIZE
)-\
13 $(CONFIG_TARGET_KERNEL_PARTSIZE
)))m
18 define Build
/append-kernel-part
19 dd if
=$(IMAGE_KERNEL
) bs
=$(CONFIG_TARGET_KERNEL_PARTSIZE
)M conv
=sync
>> $@
22 # NB: Chrome OS bootloaders replace the '%U' in command lines with the UUID of
23 # the kernel partition it chooses to boot from. This gives a flexible way to
24 # consistently build and sign kernels that always use the subsequent
25 # (PARTNROFF=1) partition as their rootfs.
26 define Build
/cros-vboot
27 $(STAGING_DIR_HOST
)/bin
/cros-vbutil \
29 -c
"root=PARTUUID=%U/PARTNROFF=1 rootwait fstools_partname_fallback_scan=1" \
34 define Device
/OnhubImage
35 KERNEL_LOADADDR
= 0x44208000
37 KERNEL_SUFFIX
:= -fit-zImage.itb.vboot
39 KERNEL
= kernel-bin | fit none
$$(KDIR
)/image-
$$(DEVICE_DTS
).dtb | cros-vboot
40 IMAGES
:= factory.bin sysupgrade.bin
41 IMAGE
/factory.bin
:= cros-gpt | append-kernel-part | append-rootfs
42 IMAGE
/sysupgrade.bin
:= sysupgrade-tar | append-metadata
43 # Note: Chromium/Depthcharge-based bootloaders insert a reserved-memory
44 # ramoops node into the Device Tree automatically, so we can use
46 DEVICE_PACKAGES
:= ath10k-firmware-qca988x-ct e2fsprogs kmod-fs-ext4 losetup \
47 partx-utils mkf2fs kmod-fs-f2fs \
48 ucode kmod-google-firmware kmod-tpm-i2c-infineon \
49 kmod-sound-soc-ipq8064-storm kmod-usb-storage \
53 define Device
/asus_onhub
54 $(call Device
/OnhubImage
)
55 $(Device
/dsa-migration
)
57 DEVICE_MODEL
:= OnHub SRT-AC1900
58 DEVICE_DTS
:= $$(SOC
)-asus-onhub
59 BOARD_NAME
:= asus-onhub
61 TARGET_DEVICES
+= asus_onhub
63 define Device
/tplink_onhub
64 $(call Device
/OnhubImage
)
65 $(Device
/dsa-migration
)
66 DEVICE_VENDOR
:= TP-Link
67 DEVICE_MODEL
:= OnHub AC1900 Cloud Router
68 DEVICE_DTS
:= $$(SOC
)-tplink-onhub
69 BOARD_NAME
:= tplink-onhub
71 TARGET_DEVICES
+= tplink_onhub