aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/list-recipes
blob: 47eff2d7413186c6d6f12118f3ba8edee8acf069 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/bin/sh

# ---------------------------------------------------------------------------------------------------------------------
# SPDX-License-Identifier: MIT
# ---------------------------------------------------------------------------------------------------------------------

list_layers() {
    find . -mindepth 3 -maxdepth 4 -wholename \*/conf/layer.conf |
        sed 's,^\./,,; s,/conf/layer\.conf$,,'
}

list_recipes() {
    find "$1" -iname \*.bb
}

list_layers | while read -r layer; do
    if ! grep -qFx "$layer/" "$1"; then
        echo "$layer/"
        list_recipes "$layer"
    fi
done >>"$1"