* [Buildroot] [PATCH 1/1] support/scripts/br2-external: add kernel extensions
@ 2022-06-22 10:08 Nicolas POIROT via buildroot
2022-06-22 20:23 ` Yann E. MORIN
0 siblings, 1 reply; 2+ messages in thread
From: Nicolas POIROT via buildroot @ 2022-06-22 10:08 UTC (permalink / raw)
To: buildroot; +Cc: Nicolas POIROT
Buildroot documentation section 9.2.1.6 "Additional kernel extensions"
indicates support for kernel extensions defined in external buildroot
trees but unfortunately, there didn't seem to be any support in
br2-external script.
This patch copies 'init' code support to include external kernel
extensions defined in 'linux' dir at the br2-external root directory as
explained in documentation.
Signed-off-by: Nicolas POIROT <ni.poirot@laposte.net>
---
linux/Config.ext.in | 3 +++
support/scripts/br2-external | 9 +++++++++
2 files changed, 12 insertions(+)
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"
--
2.36.1
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [Buildroot] [PATCH 1/1] support/scripts/br2-external: add kernel extensions
2022-06-22 10:08 [Buildroot] [PATCH 1/1] support/scripts/br2-external: add kernel extensions Nicolas POIROT via buildroot
@ 2022-06-22 20:23 ` Yann E. MORIN
0 siblings, 0 replies; 2+ messages in thread
From: Yann E. MORIN @ 2022-06-22 20:23 UTC (permalink / raw)
To: Nicolas POIROT; +Cc: buildroot
Nicolas, All,
On 2022-06-22 12:08 +0200, Nicolas POIROT via buildroot spake thusly:
> Buildroot documentation section 9.2.1.6 "Additional kernel extensions"
> indicates support for kernel extensions defined in external buildroot
> trees but unfortunately, there didn't seem to be any support in
> br2-external script.
> This patch copies 'init' code support to include external kernel
> extensions defined in 'linux' dir at the br2-external root directory as
> explained in documentation.
>
> Signed-off-by: Nicolas POIROT <ni.poirot@laposte.net>
Applied to master, thanks.
Regards,
Yann E. MORIN.
> ---
> linux/Config.ext.in | 3 +++
> support/scripts/br2-external | 9 +++++++++
> 2 files changed, 12 insertions(+)
>
> 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"
> --
> 2.36.1
>
> _______________________________________________
> buildroot mailing list
> buildroot@buildroot.org
> https://lists.buildroot.org/mailman/listinfo/buildroot
--
.-----------------.--------------------.------------------.--------------------.
| Yann E. MORIN | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software Designer | \ / CAMPAIGN | ___ |
| +33 561 099 427 `------------.-------: X AGAINST | \e/ There is no |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL | v conspiracy. |
'------------------------------^-------^------------------^--------------------'
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2022-06-22 20:23 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-06-22 10:08 [Buildroot] [PATCH 1/1] support/scripts/br2-external: add kernel extensions Nicolas POIROT via buildroot
2022-06-22 20:23 ` Yann E. MORIN
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.