diff options
Diffstat (limited to 'eclass')
-rw-r--r-- | eclass/linux-build.eclass | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/eclass/linux-build.eclass b/eclass/linux-build.eclass index 0969cd66..9a4ebdd1 100644 --- a/eclass/linux-build.eclass +++ b/eclass/linux-build.eclass @@ -417,6 +417,20 @@ _linux-build_src_prepare_build() { -subject fi + if _linux-build_configval WLAN ; then + if ! has_version net-wireless/wireless-regdb ; then + ewarn "net-wireless/wireless-regdb is required by CONFIG_WLAN" + fi + + if ! _linux-build_configval EXTRA_FIRMWARE ; then + ewarn "CONFIG_WLAN requires CONFIG_EXTRA_FIRMWARE='regulatory.db regulatory.db.p7s'" + elif ! has regulatory.db ${CONFIG_EXTRA_FIRMWARE} ; then + ewarn "CONFIG_WLAN requires CONFIG_EXTRA_FIRMWARE='regulatory.db regulatory.db.p7s'" + elif ! has regulatory.db.p7s ${CONFIG_EXTRA_FIRMWARE} ; then + ewarn "CONFIG_WLAN requires CONFIG_EXTRA_FIRMWARE='regulatory.db regulatory.db.p7s'" + fi + fi + if _linux-build_configval EXTRA_FIRMWARE_DIR && _linux-build_configval EXTRA_FIRMWARE ; then for _fw in ${CONFIG_EXTRA_FIRMWARE} ; do _file="${CONFIG_EXTRA_FIRMWARE_DIR}/${_fw}" |