fix vuplus-image
[vuplus_openvuplus] / meta-openvuplus / recipes-vuplus / images / vuplus-image.inc
1 SUMMARY = "A Vuplus firmware image"
2
3 # packages to build for the feed
4 DEPENDS = " \
5         gdb \
6         lsof \
7         ltrace \
8         strace \
9 "
10
11 # build e2openplugins
12 DEPENDS += " \
13         enigma2-plugin-extensions-openwebif \
14         enigma2-plugin-extensions-remotestreamconvert \
15         enigma2-plugin-extensions-addstreamurl \
16         enigma2-plugin-systemplugins-autoshutdown \
17 "
18 DEPENDS += " \
19         ${@base_contains("VUPLUS_FEATURES", "webmanual", "vuplus-manual", "", d)} \
20 "
21
22 #BAD_RECOMMENDATIONS += "libnss-mdns wpa-supplicant-passphrase"
23 BAD_RECOMMENDATIONS += "libnss-mdns"
24
25 TASK_CORE_BOOT ?= "task-core-boot"
26 TASK_VUPLUS_BASE ?= "task-vuplus-base"
27 TASK_VUPLUS_ENIGMA ?= "task-vuplus-enigma2"
28 TASK_ESSENCIAL ?= "task-vuplus-essential"
29 TASK_VUPLUS_DVBAPI ?= "task-vuplus-dvbapi"
30
31 IMAGE_INSTALL = " \
32         ${TASK_CORE_BOOT} ${ROOTFS_PKGMANAGE} \
33         ${TASK_VUPLUS_BASE} \
34         ${TASK_VUPLUS_DVBAPI} \
35         ${TASK_VUPLUS_ENIGMA} \
36         ${TASK_ESSENCIAL} \
37 "
38
39 # enable online package management
40 IMAGE_FEATURES += "package-management"
41
42 # we don't want any locales, at least not in the common way.
43 IMAGE_LINGUAS = ""
44
45 inherit image
46
47 vuplus_rootfs_postprocess() {
48     # generate /etc/image-version
49     IMAGE_DATE=`date +%Y%m%d%H%M`
50     # 0: Release, 1: Experimental
51     IMAGE_TYPE="1"
52     # e.g. 400 for release 4.0.0, if IMAGE_TYPE=0
53     IMAGE_VERSION="000"
54     echo "version=${IMAGE_TYPE}${IMAGE_VERSION}${IMAGE_DATE}" > ${IMAGE_ROOTFS}/etc/image-version
55 }
56
57 ROOTFS_POSTPROCESS_COMMAND += "vuplus_rootfs_postprocess; "