-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.sh
executable file
·49 lines (42 loc) · 1.19 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
48
source layers/poky/oe-init-build-env
if grep -q "ciziesdistro" ./conf/local.conf; then
echo -n ""
else
echo "DISTRO=\"ciziesdistro\"" >> ./conf/local.conf
fi
if grep -q "MACHINE=\"raspberrypi0\"" ./conf/local.conf; then
echo -n ""
else
echo "MACHINE=\"raspberrypi0\"" >> ./conf/local.conf
fi
if grep -q "GPU_MEM=\"16\"" ./conf/local.conf; then
echo -n ""
else
echo "GPU_MEM=\"16\"" >> ./conf/local.conf
fi
bitbake-layers show-layers | grep "meta-raspberrypi" > /dev/null
layer_info=$?
if [ $layer_info -ne 0 ];then
echo "Adding meta-raspberrypi layer"
bitbake-layers add-layer ../layers/meta-raspberrypi
else
echo "meta-raspberrypi layer already exists"
fi
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-cizies-looper" > /dev/null
layer_info=$?
if [ $layer_info -ne 0 ];then
echo "Adding meta-cizies-looper layer"
bitbake-layers add-layer ../layers/meta-cizies-looper
else
echo "meta-cizies-looper layer already exists"
fi
set -e
bitbake core-image-base