2020-06-07 11:13:46 +00:00
|
|
|
define Build/hdd-img
|
|
|
|
./mbl_gen_hdd_img.sh $@ $@.boot $(IMAGE_ROOTFS) $(CONFIG_TARGET_KERNEL_PARTSIZE) $(CONFIG_TARGET_ROOTFS_PARTSIZE)
|
|
|
|
endef
|
|
|
|
|
|
|
|
|
|
|
|
define Device/wd_mybooklive
|
|
|
|
DEVICE_VENDOR := Western Digital
|
2022-02-13 12:29:23 +00:00
|
|
|
DEVICE_MODEL := My Book Live
|
|
|
|
DEVICE_ALT0_VENDOR := Western Digital
|
|
|
|
DEVICE_ALT0_MODEL := My Book Live Duo
|
2022-12-28 04:44:11 +00:00
|
|
|
DEVICE_PACKAGES := kmod-usb-dwc2 kmod-usb-ledtrig-usbport kmod-usb-storage kmod-fs-vfat wpad-basic-mbedtls
|
2020-06-07 11:13:46 +00:00
|
|
|
SUPPORTED_DEVICES += mbl wd,mybooklive-duo
|
|
|
|
BLOCKSIZE := 1k
|
2023-06-08 16:12:05 +00:00
|
|
|
DEVICE_DTC_FLAGS := --pad 4096
|
|
|
|
KERNEL := kernel-bin | libdeflate-gzip | uImage gzip
|
|
|
|
KERNEL_INITRAMFS := kernel-bin | libdeflate-gzip | MuImage-initramfs gzip
|
2020-06-07 11:13:46 +00:00
|
|
|
IMAGES := factory.img.gz sysupgrade.img.gz
|
|
|
|
ARTIFACTS := apollo3g.dtb
|
|
|
|
DEVICE_DTB := apollo3g.dtb
|
|
|
|
FILESYSTEMS := ext4 squashfs
|
2023-01-02 10:04:11 +00:00
|
|
|
IMAGE/factory.img.gz := boot-script | boot-img | hdd-img | libdeflate-gzip
|
|
|
|
IMAGE/sysupgrade.img.gz := boot-script | boot-img | hdd-img | libdeflate-gzip | append-metadata
|
2020-06-07 11:13:46 +00:00
|
|
|
ARTIFACT/apollo3g.dtb := export-dtb
|
|
|
|
endef
|
|
|
|
|
|
|
|
TARGET_DEVICES += wd_mybooklive
|