linux-info.eclass: Ignore check_extra_config on non-Linux
authorMichał Górny <mgorny@gentoo.org>
Thu, 8 Mar 2018 16:21:41 +0000 (17:21 +0100)
committerMichał Górny <mgorny@gentoo.org>
Mon, 9 Jul 2018 16:54:47 +0000 (18:54 +0200)
commit51562449412d635b03cb71132315f0045dd33819
treeb80e719507c1f9067ec9a776a207e62be836d16b
parent72f2edae1b1883797bd4c5c3316f3b7020c25796
linux-info.eclass: Ignore check_extra_config on non-Linux

Make the check_extra_config and pkg_setup calls no-op on non-Linux
systems. Those systems don't have a Linux kernel, so they obviously
can't satisfy the requirements. This currently results in a lot of
useless warnings about missing Linux kernel sources on FreeBSD. We could
make it conditional per-package but there is really no point in adding
a lot of conditionals everywhere if this eclass can't ever work
on non-Linux.
eclass/linux-info.eclass