[OpenWrt-Devel] [PATCH] ath79: add support of Netgear WNR3800 (Ch)

Adrian Schmutzler mail at adrianschmutzler.de
Wed Aug 7 14:47:58 EDT 2019


> > Note that you also have to update to DEVICE_VENDOR/DEVICE_MODEL syntax ...
> I don't quite get it. Where is this syntax?

Here:

> +define Device/netgear_wndr3800ch
> +  $(Device/netgear_wndr3800)
> +  DEVICE_TITLE := NETGEAR WNDR3800 (Ch)
> +  NETGEAR_BOARD_ID := WNDR3800CH
> +  SUPPORTED_DEVICES += wndr3800ch
> +endef
> +TARGET_DEVICES += netgear_wndr3800ch

Instead of DEVICE_TITLE, use DEVICE_VENDOR/DEVICE_MODEL.
In this particular case, DEVICE_VENDOR is already inherited from a parent definition, so you only need DEVICE_MODEL.

However, having looked at this another time:

Please do not inherit one device from another. Use common definitions to inherit from.
In this particular case, it will be easiest to just copy the definitions from wndr3800 (and thus inherit from wndr3x00). I don't think it's worth creating another shared definition because of the remaining 3 duplicate lines.

Best

Adrian
-------------- next part --------------
A non-text attachment was scrubbed...
Name: openpgp-digital-signature.asc
Type: application/pgp-signature
Size: 834 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/openwrt-devel/attachments/20190807/fddf6336/attachment.sig>
-------------- next part --------------
_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel


More information about the openwrt-devel mailing list