aboutsummaryrefslogtreecommitdiff
path: root/support
diff options
context:
space:
mode:
authorGravatar Brandon Maier <brandon.maier@rockwellcollins.com>2020-10-13 17:36:04 -0500
committerGravatar Yann E. MORIN <yann.morin.1998@free.fr>2020-10-14 22:48:42 +0200
commita0b041d6c14ff89b234a9edba344a997d19c880a (patch)
tree31eb6e5ec8fa91671ea95a41f60a4eefa191a3d5 /support
parentb8f632650a0401e370c44ddd156642329b73c3e5 (diff)
downloadbuildroot-a0b041d6c14ff89b234a9edba344a997d19c880a.tar.gz
buildroot-a0b041d6c14ff89b234a9edba344a997d19c880a.tar.bz2
system: support br2-external init systems
Some externals may wish to provide custom init systems for tightly integrated boot. This has been supported through the BR2_INIT_NONE, however a downside to the BR2_INIT_NONE is it forces the custom init system to use either skeleton-custom and roll a custom skeleton for each target, or skeleton-init-none which isn't a complete skeleton. Allowing br2-external to define custom BR2_INIT_* means they can now safely 'select' the BR2_PACKAGE_SKELETON_INIT_*, and re-use any of the skeletons in Buildroot, or one from a br2-external tree. Signed-off-by: Brandon Maier <brandon.maier@rockwellcollins.com> Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
Diffstat (limited to 'support')
-rwxr-xr-xsupport/scripts/br2-external9
1 files changed, 9 insertions, 0 deletions
diff --git a/support/scripts/br2-external b/support/scripts/br2-external
index 01804e1220..56dc6f53ca 100755
--- a/support/scripts/br2-external
+++ b/support/scripts/br2-external
@@ -162,6 +162,7 @@ do_kconfig() {
jpeg
openssl
skeleton
+ init
)
for br2 in "${items[@]}"; do
@@ -233,6 +234,14 @@ do_kconfig() {
else
printf '# No skeleton from: %s\n\n' "${br2_desc}"
fi >>"${outputdir}/.br2-external.in.skeleton"
+
+ if [ -f "${br2_ext}/provides/init.in" ]; then
+ printf 'comment "init from: %s"\n' "${br2_desc}"
+ printf 'source "%s/provides/init.in"\n' "${br2_ext}"
+ printf '\n'
+ else
+ printf '# No init from: %s\n\n' "${br2_desc}"
+ fi >>"${outputdir}/.br2-external.in.init"
done
printf 'endmenu\n' >>"${outputdir}/.br2-external.in.menus"