-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.sh
executable file
·47 lines (39 loc) · 1.25 KB
/
build.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
#! /bin/bash
# Script to build STM32MP1 Yocto Configuration
# Author - Atharva Nandanwar
parent_dir=$(dirname $0)
# Initialize all git modules
git submodule init
# Sync them
git submodule update --init --recursive
# Source the build environment
# TODO: Change the machine name and distribution if you are making changes to that.
DISTRO=openstlinux-weston MACHINE=stm32mp1 source ./layers/meta-st/scripts/envsetup.sh
bitbake-layers show-layers | grep "meta-oe" > /dev/null
layer_info=$?
if [ $layer_info -ne 0 ];then
echo "Adding meta-oe layer"
bitbake-layers add-layer ../layers/meta-openembedded/meta-oe
else
echo "meta-oe layer already exists"
fi
bitbake-layers show-layers | grep "meta-python" > /dev/null
layer_info=$?
if [ $layer_info -ne 0 ];then
echo "Adding meta-python layer"
bitbake-layers add-layer ../layers/meta-openembedded/meta-python
else
echo "meta-python layer already exists"
fi
# TODO: Add more layers in the similar format
bitbake-layers show-layers | grep "meta-aesd" > /dev/null
layer_info=$?
if [ $layer_info -ne 0 ];then
echo "Adding meta-aesd layer"
bitbake-layers add-layer ../layers/meta-st/meta-aesd
else
echo "meta-aesd layer already exists"
fi
set -e
# TODO: Change st-image-weston with the image you want to build
bitbake st-image-aesd