diff --git a/linux/Config.ext.in b/linux/Config.ext.in index 5b968b0bcb..3cbf42d344 100644 --- a/linux/Config.ext.in +++ b/linux/Config.ext.in @@ -148,4 +148,7 @@ config BR2_LINUX_KERNEL_EXT_AUFS_VERSION endif # aufs +# kernel extensions from br2-external trees, if any +source "$BR2_BASE_DIR/.br2-external.in.linux" + endmenu diff --git a/support/scripts/br2-external b/support/scripts/br2-external index 56dc6f53ca..2c33e6eacc 100755 --- a/support/scripts/br2-external +++ b/support/scripts/br2-external @@ -163,6 +163,7 @@ do_kconfig() { openssl skeleton init + linux ) for br2 in "${items[@]}"; do @@ -242,6 +243,14 @@ do_kconfig() { else printf '# No init from: %s\n\n' "${br2_desc}" fi >>"${outputdir}/.br2-external.in.init" + + if [ -f "${br2_ext}/linux/Config.ext.in" ]; then + printf 'comment "linux extension from: %s"\n' "${br2_desc}" + printf 'source "%s/linux/Config.ext.in"\n' "${br2_ext}" + printf '\n' + else + printf '# No linux extension from: %s\n\n' "${br2_desc}" + fi >>"${outputdir}/.br2-external.in.linux" done printf 'endmenu\n' >>"${outputdir}/.br2-external.in.menus"