f0b4df8de92601e27462ca5d6e09309e768f9f33
[openpandora.oe.git] / recipes / images / pandora-validation-image.bb
1 # Validation image for Pandora handheld console
2 # for hardware testing and flashing images to NAND if copied to the SD in the correct places.
3
4 XSERVER ?= " \
5     xserver-xorg \
6     xf86-input-evdev \
7     xf86-input-mouse \
8     xf86-video-fbdev \
9     xf86-input-keyboard \
10 "
11
12 inherit image
13
14 export IMAGE_BASENAME = "pandora-validation-image"
15
16 DEPENDS = "task-base"
17
18 IMAGE_INSTALL += " \
19   task-pandora-core \
20   task-pandora-validation \
21 "
22  
23 IMAGE_PREPROCESS_COMMAND = "create_etc_timestamp"
24
25 # Helper to say what image we built, include GIT tag and image name.
26 PANDORA_VERSION_FILE = "${IMAGE_ROOTFS}/${sysconfdir}/op-version"
27 ROOTFS_POSTPROCESS_COMMAND += "OLD_PWD=$PWD; cd `dirname '${FILE_DIRNAME}'`; echo Tag Name: `git tag|tail -n 1`> ${PANDORA_VERSION_FILE};cd $OLD_PWD;"
28 ROOTFS_POSTPROCESS_COMMAND += "OLD_PWD=$PWD; cd `dirname '${FILE_DIRNAME}'`; echo VERSION: `git-log -n1 --pretty=oneline|awk '{print $1}'` >> ${PANDORA_VERSION_FILE}; cd $OLD_PWD;"
29 ROOTFS_POSTPROCESS_COMMAND += "OLD_PWD=$PWD; cd `dirname '${FILE_DIRNAME}'`; echo Branch: ` git branch |awk '/*/{print $2}'` >> ${PANDORA_VERSION_FILE}; cd $OLD_PWD;"
30 ROOTFS_POSTPROCESS_COMMAND += "echo Image Builder: '${LOGNAME}'@`cat /etc/hostname` >> ${PANDORA_VERSION_FILE};"
31 ROOTFS_POSTPROCESS_COMMAND += "echo Time Stamp: `date -R` >> ${PANDORA_VERSION_FILE};"
32 ROOTFS_POSTPROCESS_COMMAND += "echo Base Image Name: '${IMAGE_BASENAME}' >> ${PANDORA_VERSION_FILE};"