Skip to content

Commit

Permalink
ci: add yocto-check-layer helper script
Browse files Browse the repository at this point in the history
Add the yocto-check-layer with a script to be easy to replicate locally.

Also change:

- add --no-auto
  It is required if kas runs inside the bsp layer. So to make the yocto-check-layer
  happy whether it runs inside or outside it is better to have this arg.

- use the base.yml
  The --machines can be used when we need to check the layer with one or more machines.
  By default the machine is not required because the yocto-check-layer-wrapper run's
  on a clean build dir.

Signed-off-by: Jose Quaresma <[email protected]>
  • Loading branch information
quaresmajose committed Sep 12, 2024
1 parent 2d8dbe4 commit 4c2b4be
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions ci/yocto-check-layer.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
#!/bin/sh -e

TOPDIR=$(realpath $(dirname $(readlink -f $0))/..)

# Yocto Project layer checking tool
CMD="yocto-check-layer-wrapper"
# Layer to check
CMD="$CMD $TOPDIR"
# Disable auto layer discovery
CMD="$CMD --no-auto"
# Layers to process for dependencies
CMD="$CMD --dependency `pwd`/poky/meta `pwd`/meta-qcom"
# Disable automatic testing of dependencies
CMD="$CMD --no-auto-dependency"

exec kas shell $TOPDIR/ci/base.yml --command "$CMD"

0 comments on commit 4c2b4be

Please sign in to comment.