summaryrefslogtreecommitdiff
path: root/meta-openvuplus/recipes-vuplus/images/vuplus-image.inc
blob: 8a7ea86dc3250f41494f735507587f7d4e5544b2 (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
49
50
51
52
53
54
55
56
57
SUMMARY = "A Vuplus firmware image"

# packages to build for the feed
DEPENDS = " \
	gdb \
	lsof \
	ltrace \
	strace \
"

# build e2openplugins
DEPENDS += " \
        enigma2-plugin-extensions-openwebif \
        enigma2-plugin-extensions-remotestreamconvert \
        enigma2-plugin-extensions-addstreamurl \
        enigma2-plugin-systemplugins-autoshutdown \
"
DEPENDS += " \
	${@base_contains("VUPLUS_FEATURES", "webmanual", "vuplus-manual", "", d)} \
"

#BAD_RECOMMENDATIONS += "libnss-mdns wpa-supplicant-passphrase"
BAD_RECOMMENDATIONS += "libnss-mdns"

TASK_CORE_BOOT ?= "task-core-boot"
TASK_VUPLUS_BASE ?= "task-vuplus-base"
TASK_VUPLUS_ENIGMA ?= "task-vuplus-enigma2"
TASK_ESSENCIAL ?= "task-vuplus-essential"
TASK_VUPLUS_DVBAPI ?= "task-vuplus-dvbapi"

IMAGE_INSTALL = " \
	${TASK_CORE_BOOT} ${ROOTFS_PKGMANAGE} \
	${TASK_VUPLUS_BASE} \
	${TASK_VUPLUS_DVBAPI} \
	${TASK_VUPLUS_ENIGMA} \
	${TASK_ESSENCIAL} \
"

# enable online package management
IMAGE_FEATURES += "package-management"

# we don't want any locales, at least not in the common way.
IMAGE_LINGUAS = ""

inherit image

vuplus_rootfs_postprocess() {
    # generate /etc/image-version
    IMAGE_DATE=`date +%Y%m%d%H%M`
    # 0: Release, 1: Experimental
    IMAGE_TYPE="1"
    # e.g. 400 for release 4.0.0, if IMAGE_TYPE=0
    IMAGE_VERSION="000"
    echo "version=${IMAGE_TYPE}${IMAGE_VERSION}${IMAGE_DATE}" > ${IMAGE_ROOTFS}/etc/image-version
}

ROOTFS_POSTPROCESS_COMMAND += "vuplus_rootfs_postprocess; "