aboutsummaryrefslogtreecommitdiff
path: root/support
diff options
context:
space:
mode:
authorGravatar Brandon Maier <brandon.maier@rockwellcollins.com>2020-10-13 17:36:01 -0500
committerGravatar Yann E. MORIN <yann.morin.1998@free.fr>2020-10-14 22:30:56 +0200
commit8a06daa1a04d9c1d6a18f869df48f0bf51100dcb (patch)
treee9248a7c25c53f3d3b6fa723fdb4016abfcc26e7 /support
parent74c3c63cca1fec89ed153903e24b9ebdac765da7 (diff)
downloadbuildroot-8a06daa1a04d9c1d6a18f869df48f0bf51100dcb.tar.gz
buildroot-8a06daa1a04d9c1d6a18f869df48f0bf51100dcb.tar.bz2
system: support br2-external skeleton packages
Today, the BR2_ROOTFS_SKELETON_CUSTOM is the only way to build a custom skeleton. But it's limiting as users must provide a pre-built skeleton for each target. Supporting a br2-external package allows users to build up a skeleton and customize it with their own KConfig options. 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 ededd2d900..01804e1220 100755
--- a/support/scripts/br2-external
+++ b/support/scripts/br2-external
@@ -161,6 +161,7 @@ do_kconfig() {
toolchains
jpeg
openssl
+ skeleton
)
for br2 in "${items[@]}"; do
@@ -224,6 +225,14 @@ do_kconfig() {
else
printf '# No openssl from: %s\n\n' "${br2_desc}"
fi >>"${outputdir}/.br2-external.in.openssl"
+
+ if [ -f "${br2_ext}/provides/skeleton.in" ]; then
+ printf 'comment "skeleton from: %s"\n' "${br2_desc}"
+ printf 'source "%s/provides/skeleton.in"\n' "${br2_ext}"
+ printf '\n'
+ else
+ printf '# No skeleton from: %s\n\n' "${br2_desc}"
+ fi >>"${outputdir}/.br2-external.in.skeleton"
done
printf 'endmenu\n' >>"${outputdir}/.br2-external.in.menus"