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