aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/apm821xx/image/sata.mk
diff options
context:
space:
mode:
authorAdrian Schmutzler <freifunk@adrianschmutzler.de>2020-06-07 13:13:46 +0200
committerAdrian Schmutzler <freifunk@adrianschmutzler.de>2020-06-11 01:44:13 +0200
commit11db48f89a70315c06562f1ba6ea7feaaab7185d (patch)
tree45edeac566987d27953734496e9bb8ec09e86ea2 /target/linux/apm821xx/image/sata.mk
parentbb39fea11aae2888e6a0129055de21995da92073 (diff)
downloadupstream-11db48f89a70315c06562f1ba6ea7feaaab7185d.tar.gz
upstream-11db48f89a70315c06562f1ba6ea7feaaab7185d.tar.bz2
upstream-11db48f89a70315c06562f1ba6ea7feaaab7185d.zip
apm821xx: move device definitions to subfiles
With several subtargets, the image/Makefile becomes crowded after a while. Many targets have moved their device definitions to $subtarget.mk files to have them more organized, let's do this here as well. While at it, also move subtarget-specific build recipes. Cc: Christian Lamparter <chunkeey@gmail.com> Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de> Acked-by: Christian Lamparter <chunkeey@gmail.com>
Diffstat (limited to 'target/linux/apm821xx/image/sata.mk')
-rw-r--r--target/linux/apm821xx/image/sata.mk25
1 files changed, 25 insertions, 0 deletions
diff --git a/target/linux/apm821xx/image/sata.mk b/target/linux/apm821xx/image/sata.mk
new file mode 100644
index 0000000000..444b2441f0
--- /dev/null
+++ b/target/linux/apm821xx/image/sata.mk
@@ -0,0 +1,25 @@
+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
+ DEVICE_MODEL := My Book Live Series (Single + Duo)
+ DEVICE_PACKAGES := kmod-usb-dwc2 kmod-usb-ledtrig-usbport kmod-usb-storage kmod-fs-vfat wpad-basic
+ DEVICE_DTS := wd-mybooklive
+ SUPPORTED_DEVICES += mbl wd,mybooklive-duo
+ BLOCKSIZE := 1k
+ DTB_SIZE := 16384
+ KERNEL := kernel-bin | dtb | gzip | uImage gzip
+ KERNEL_INITRAMFS := kernel-bin | gzip | dtb | MuImage-initramfs gzip
+ IMAGES := factory.img.gz sysupgrade.img.gz
+ ARTIFACTS := apollo3g.dtb
+ DEVICE_DTB := apollo3g.dtb
+ FILESYSTEMS := ext4 squashfs
+ IMAGE/factory.img.gz := boot-script | boot-img | hdd-img | gzip
+ IMAGE/sysupgrade.img.gz := boot-script | boot-img | hdd-img | gzip | append-metadata
+ ARTIFACT/apollo3g.dtb := export-dtb
+endef
+
+TARGET_DEVICES += wd_mybooklive