rename tasks to packagegroups
[opendreambox.git] / meta-opendreambox / recipes-dreambox / images / dreambox-image.inc
1 SUMMARY = "A Dreambox firmware image"
2
3 # packages to build for the feed
4 DEPENDS = " \
5         gdb \
6         lsof \
7         ltrace \
8         strace \
9 "
10
11 BAD_RECOMMENDATIONS += "libnss-mdns wpa-supplicant-passphrase"
12
13 TASK_CORE_BOOT ?= "packagegroup-core-boot"
14 TASK_OPENDREAMBOX_BASE ?= "packagegroup-opendreambox-base"
15 TASK_OPENDREAMBOX_DVBAPI ?= "packagegroup-opendreambox-dvbapi3"
16 TASK_OPENDREAMBOX_ENIGMA ?= "packagegroup-opendreambox-enigma2"
17
18 # packages to drag into the image
19 IMAGE_INSTALL = " \
20         ${TASK_CORE_BOOT} ${ROOTFS_PKGMANAGE} \
21         ${TASK_OPENDREAMBOX_BASE} \
22         ${TASK_OPENDREAMBOX_DVBAPI} \
23         ${TASK_OPENDREAMBOX_ENIGMA} \
24 "
25
26 # enable online package management
27 IMAGE_FEATURES += "package-management"
28
29 # we don't want any locales, at least not in the common way.
30 IMAGE_LINGUAS = ""
31
32 inherit image
33
34 opendreambox_rootfs_postprocess() {
35     # generate /etc/image-version
36     IMAGE_DATE=`date +%Y%m%d%H%M`
37     # 0: Release, 1: Experimental
38     IMAGE_TYPE="1"
39     # e.g. 400 for release 4.0.0, if IMAGE_TYPE=0
40     IMAGE_VERSION="000"
41     echo "version=${IMAGE_TYPE}${IMAGE_VERSION}${IMAGE_DATE}" > ${IMAGE_ROOTFS}/etc/image-version
42 }
43
44 ROOTFS_POSTPROCESS_COMMAND += "opendreambox_rootfs_postprocess; "