Skip to content

Commit

Permalink
Configure layers with fragments
Browse files Browse the repository at this point in the history
Signed-off-by: Hannu Lyytinen <[email protected]>
  • Loading branch information
hl6202 authored and hlyytine committed Mar 27, 2024
1 parent 4e361f8 commit 2ac65d6
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 14 deletions.
4 changes: 4 additions & 0 deletions yocto/conf/layers/extra.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
BBLAYERS += "${LAYERS_ROOT}/meta-sel4"
BBLAYERS += "${LAYERS_ROOT}/meta-openembedded/meta-oe"
BBLAYERS += "${LAYERS_ROOT}/meta-openembedded/meta-networking"
BBLAYERS += "${LAYERS_ROOT}/meta-openembedded/meta-python"
1 change: 1 addition & 0 deletions yocto/conf/layers/machine/vm-raspberrypi4-64.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
BBLAYERS += "${LAYERS_ROOT}/meta-raspberrypi"
18 changes: 4 additions & 14 deletions yocto/setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,18 +17,8 @@ fi

. "${LAYERS_ROOT}/poky/oe-init-build-env" "$@"

grep meta-sel4 conf/bblayers.conf 2>/dev/null 1>&2 || \
printf 'BBLAYERS += "%s/meta-sel4"\n' "$LAYERS_ROOT" >> conf/bblayers.conf
sed -i -e '/LAYERS_ROOT/d' conf/bblayers.conf

grep meta-raspberrypi conf/bblayers.conf 2>/dev/null 1>&2 || \
printf 'BBLAYERS += "%s/meta-raspberrypi"\n' "$LAYERS_ROOT" >> conf/bblayers.conf

grep meta-oe conf/bblayers.conf 2>/dev/null 1>&2 || \
printf 'BBLAYERS += "%s/meta-openembedded/meta-oe"\n' "$LAYERS_ROOT" >> conf/bblayers.conf

grep meta-networking conf/bblayers.conf 2>/dev/null 1>&2 || \
printf 'BBLAYERS += "%s/meta-openembedded/meta-networking"\n' "$LAYERS_ROOT" >> conf/bblayers.conf

# meta-networking needs meta-python
grep meta-python conf/bblayers.conf 2>/dev/null 1>&2 || \
printf 'BBLAYERS += "%s/meta-openembedded/meta-python"\n' "$LAYERS_ROOT" >> conf/bblayers.conf
echo 'LAYERS_ROOT = "'${LAYERS_ROOT}'"' >> conf/bblayers.conf
echo 'include ${LAYERS_ROOT}/conf/layers/extra.conf' >> conf/bblayers.conf
echo 'include ${LAYERS_ROOT}/conf/layers/machine/${MACHINE}.conf' >> conf/bblayers.conf

0 comments on commit 2ac65d6

Please sign in to comment.