support kodi.
[vuplus_openvuplus_3.0] / 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 DEPENDS += " \
22         ${@base_contains("VUPLUS_FEATURES", "xbmc", "enigma2-plugin-extensions-xbmc", "", d)} \
23 "
24 DEPENDS += " \
25         ${@base_contains("VUPLUS_FEATURES", "kodi", "enigma2-plugin-extensions-kodi", "", d)} \
26 "
27
28 #BAD_RECOMMENDATIONS += "libnss-mdns wpa-supplicant-passphrase"
29 BAD_RECOMMENDATIONS += "libnss-mdns"
30
31 PACKAGEGROUP_CORE_BOOT ?= "packagegroup-core-boot"
32 PACKAGEGROUP_VUPLUS_BASE ?= "packagegroup-vuplus-base"
33 PACKAGEGROUP_VUPLUS_ENIGMA ?= "packagegroup-vuplus-enigma2"
34 PACKAGEGROUP_ESSENCIAL ?= "packagegroup-vuplus-essential"
35
36 IMAGE_INSTALL = " \
37         ${PACKAGEGROUP_CORE_BOOT} ${ROOTFS_PKGMANAGE} \
38         ${PACKAGEGROUP_VUPLUS_BASE} \
39         ${PACKAGEGROUP_VUPLUS_ENIGMA} \
40         ${PACKAGEGROUP_ESSENCIAL} \
41 "
42
43 # enable online package management
44 IMAGE_FEATURES += "package-management"
45
46 # we don't want any locales, at least not in the common way.
47 IMAGE_LINGUAS = ""
48
49 inherit image
50
51 vuplus_rootfs_postprocess() {
52     # generate /etc/image-version
53     IMAGE_DATE=`date +%Y%m%d%H%M`
54     # 0: Release, 1: Experimental
55     IMAGE_TYPE="1"
56     # e.g. 400 for release 4.0.0, if IMAGE_TYPE=0
57     IMAGE_VERSION="000"
58     echo "version=${IMAGE_TYPE}${IMAGE_VERSION}${IMAGE_DATE}" > ${IMAGE_ROOTFS}/etc/image-version
59 }
60
61 ROOTFS_POSTPROCESS_COMMAND += "vuplus_rootfs_postprocess; "