]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
config: Only warn if duplicate option/device comes from the same file
authormanu <manu@FreeBSD.org>
Tue, 16 Apr 2019 20:08:19 +0000 (20:08 +0000)
committermanu <manu@FreeBSD.org>
Tue, 16 Apr 2019 20:08:19 +0000 (20:08 +0000)
commit6bebe8fd3477f906be6ba3a95c0bf9f4e35e6701
tree674c1cda9d44dde380ce25ec2d4537c902c69f73
parente5bc73bddda5efa9a4044685cc9ea7bb16fe8c3e
config: Only warn if duplicate option/device comes from the same file

This is useful for arm (possibly other arches too) where we want to have
a GENERIC kernel that only include files for the different SoC. Since
multiple SoCs/Board needs the same device we would need to do either :

    Include the device in a generic file
    Include the device in each file that really needs it

Option 1 works but if someone wants to create a specific kernel config
(which isn't uncommon for embedded system), he will need to add a lots
of nodevice to it.

Option 2 also works but produce a lots of warnings.

Reviewed by: kevans
MFC after: 2 weeks
Differential Revision: https://reviews.freebsd.org/D19424
usr.sbin/config/config.h
usr.sbin/config/config.y