-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.sh
More file actions
executable file
·37 lines (27 loc) · 777 Bytes
/
Copy pathbuild.sh
File metadata and controls
executable file
·37 lines (27 loc) · 777 Bytes
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
#!/bin/bash
# Script to build image for qemu.
# Author: Siddhant Jajoo.
git submodule init
git submodule sync
git submodule update
# local.conf won't exist until this step on first execution
source poky/oe-init-build-env
CONFLINE="MACHINE = \"qemuarm64\""
cat conf/local.conf | grep "${CONFLINE}" > /dev/null
local_conf_info=$?
if [ $local_conf_info -ne 0 ];then
echo "Append ${CONFLINE} in the local.conf file"
echo ${CONFLINE} >> conf/local.conf
else
echo "${CONFLINE} already exists in the local.conf file"
fi
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 ../meta-aesd
else
echo "meta-aesd layer already exists"
fi
set -e
bitbake core-image-aesd