blob: 3f6f63d0bd665dd291dfdb5e59089b231cabb01e (
plain)
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
|
test -d /home/prebuilt/meta-schulung || exit 1
metapath=/home/devel/meta-schulung
wkspath=$metapath/scripts/lib/wic/canned-wks
bbfile=$metapath/recipes-core/busybox/busybox_1.29.3.bb
setup_extra() {
cat << EOF >> conf/local.conf
DISTRO = "schulung"
SCHULUNG_FEATURES = "devel"
CORE_IMAGE_EXTRA_INSTALL = "hello"
#CORE_IMAGE_EXTRA_INSTALL += "simplehello"
IMAGE_FSTYPES += "wic"
EOF
if [ ! -d $metapath ]; then
cd `dirname $metapath`
cp -a /home/prebuilt/meta-schulung .
cd -
fi
cp $wkspath/core-image-schulung.$MACHINE.wks \
$wkspath/core-image-minimal.$MACHINE.wks
mv $bbfile $bbfile.orig || true
cat << 'EOF' > conf/bblayers.conf
# POKY_BBLAYERS_CONF_VERSION is increased each time build/conf/bblayers.conf
# changes incompatibly
POKY_BBLAYERS_CONF_VERSION = "2"
BBPATH = "${TOPDIR}"
BBFILES ?= ""
BBLAYERS ?= " \
/home/devel/yocto/source/poky/meta \
/home/devel/yocto/source/poky/meta-poky \
/home/devel/yocto/source/poky/meta-yocto-bsp \
/home/devel/meta-schulung \
"
EOF
}
build_extra() {
mv $bbfile.orig $bbfile || true
bitbake core-image-schulung
bitbake -c populate_sdk core-image-schulung
}
|