[OpenWrt-Devel] [PATCH v2 3/3] apm821xx: set DEVICE_TYPE to "nas" for sata subtarget

Adrian Schmutzler freifunk at adrianschmutzler.de
Sat May 30 05:28:16 EDT 2020

Since DEVICE_TYPE cannot be set per device, just set DEVICE_TYPE
to "nas" for the entire subtarget, which only contains this single

Note that while this looks like a cosmetic change in combination
with the previous patches, this particular patch actually changes
the packages for the device.

Suggested-by: Christian Lamparter <chunkeey at gmail.com>
Cc: Christian Lamparter <chunkeey at gmail.com>
Cc: Sungbo Eo <mans0n at gorani.run>
Cc: Linus Walleij <linus.walleij at linaro.org>
Signed-off-by: Adrian Schmutzler <freifunk at adrianschmutzler.de>


This has been added as a separate patch to keep 1/3 cosmetic, i.e.
it only removes stuff that was not having an effect anyway. In
contrast, this patch will have an effect, so I think it's better
to have it separate.
 target/linux/apm821xx/sata/target.mk | 1 +
 1 file changed, 1 insertion(+)

diff --git a/target/linux/apm821xx/sata/target.mk b/target/linux/apm821xx/sata/target.mk
index d3af6ef821..43b1aa0324 100644
--- a/target/linux/apm821xx/sata/target.mk
+++ b/target/linux/apm821xx/sata/target.mk
@@ -1,4 +1,5 @@
 BOARDNAME := Devices which boot from SATA (NAS)
 FEATURES += ext4 usb ramdisk squashfs rootfs-part boot-part
 DEFAULT_PACKAGES += badblocks block-mount e2fsprogs kmod-hwmon-drivetemp \
 		    kmod-dm kmod-md-mod partx-utils mkf2fs f2fsck

openwrt-devel mailing list
openwrt-devel at lists.openwrt.org

More information about the openwrt-devel mailing list