[OpenWrt-Devel] [PATCH 3/3] treewide: rename DEVICE_TYPE to DEFAULT_TYPE

Linus Walleij linus.walleij at linaro.org
Sat May 30 07:31:42 EDT 2020

On Sat, May 30, 2020 at 12:20 PM mans0n <mans0n at gorani.run> wrote:

> Busybox hdparm is about 8k and full hdparm is about 93k. I think most
> NAS devices can manage that space, so I agree with Matthias.
> But the problem is that full hdparm is in the package feed, so it
> shouldn't be included in DEFAULT_PACKAGES (unless we move the package
> into the main repo).

Actually I think my approach in the initial patch to bring the
device type up to the Kconfig level solves that, you can use
Kconfig to

    default y if DEVICE_TYPE_NAS

(My Kconfig name idea, could be something else, it is
a simple bool.)

That will make the package or any feed package default on NAS
types using just Kconfig to pass information of the device type

Linus Walleij

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

More information about the openwrt-devel mailing list