-
Notifications
You must be signed in to change notification settings - Fork 5
/
pvbsp-oe-init-env
50 lines (35 loc) · 1.29 KB
/
pvbsp-oe-init-env
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
49
50
#!/bin/sh
src=$BASH_SOURCE
dir=`dirname $src`
absdir=`sh -c "cd $dir; pwd"`
# we call the delegate
delegate=$1
shift
. $delegate $@
BB_ENV_PASSTHROUGH_ADDITIONS="${BB_ENV_PASSTHROUGH_ADDITIONS} PVROOT_IMAGE_BSP "
export BB_ENV_PASSTHROUGH_ADDITIONS
# adding pantavisor meta
echo "Ensuring that Pantavisor meta is enabled ..."
bitbake-layers add-layer $absdir || true
echo "Setting required tweaks in conf/local.conf ..."
sed -i '/### BEGIN META PANTAVISOR/,/### END META PANTAVISOR/d' $BUILDDIR/conf/local.conf
cat >> $BUILDDIR/conf/local.conf <<EOF
### BEGIN META PANTAVISOR
TMPDIR = "${TOPDIR}/tmp-${DISTRO_CODENAME}"
INITRAMFS_IMAGE = "pantavisor-initramfs"
INITRAMFS_MULTICONFIG = "pv-initramfs"
INITRAMFS_DEPLOY_DIR_IMAGE = "${TMPDIR}-${INITRAMFS_MULTICONFIG}/deploy/images/${MACHINE}"
# enable image-pvrexport class; This one will produce
# a root container pvrexport from the rootfs of the images
# you build; disable that if you just want the bsp.
IMAGE_CLASSES += "image-pvrexport"
# lets use our goversion
GOVERSION = "1.20.%"
# enable system_distro build to bring in Xrecipes-core recipes
PANTAVISOR_SYSTEM_DISTRO = "yes"
# select mbedtls
PREFERRED_VERSION_mbedtls = "2.28.%"
DISTRO_FEATURES:remove = "usrmerge"
AGL_DEFAULT_DISTRO_FEATURES:remove = "usrmerge"
### END META PANTAVISOR
EOF