task-pandora-xfce-jap.bb: Fixed configtray-recipe
[openpandora.oe.git] / recipes / images / pandora-xfce-image-nowifi.bb
1 # XFCE image for the Pandora handheld console
2
3 IMAGE_LINGUAS = "de-de fr-fr en-gb en-us es-es"
4
5 #IMAGE_LOGIN_MANAGER = "shadow"
6
7 inherit image
8
9 PR = "r1"
10
11 export IMAGE_BASENAME = "pandora-xfce-image-nowifi"
12
13 SPLASH = "psplash-omap3pandora"
14
15 DEPENDS = "task-base"
16
17 IMAGE_INSTALL += " \
18     task-pandora-core-jap \
19     task-pandora-xfce-jap \
20     ${SPLASH} \ 
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 GIT-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 Version: 1.8.0.5 - R1.54 JAP Codename Super Zaxxon >> ${PANDORA_VERSION_FILE};"
31 ROOTFS_POSTPROCESS_COMMAND += "echo Image Builder: '${LOGNAME}'@`cat /etc/hostname` >> ${PANDORA_VERSION_FILE};"
32 ROOTFS_POSTPROCESS_COMMAND += "echo Time Stamp: `date -R` >> ${PANDORA_VERSION_FILE};"
33 ROOTFS_POSTPROCESS_COMMAND += "echo Base Image Name: '${IMAGE_BASENAME}' >> ${PANDORA_VERSION_FILE};"
34
35 # HACK for different serial ports used by different kernels
36 ROOTFS_POSTPROCESS_COMMAND += "sed -i -e '/ttyS0/d' ${IMAGE_ROOTFS}/${sysconfdir}/inittab;"
37 ROOTFS_POSTPROCESS_COMMAND += "sed -i -e '$a S0:2345:once:/sbin/getty 115200 ttyS0' ${IMAGE_ROOTFS}/${sysconfdir}/inittab;"
38 ROOTFS_POSTPROCESS_COMMAND += "sed -i -e '$a O2:2345:once:/sbin/getty 115200 ttyO2' ${IMAGE_ROOTFS}/${sysconfdir}/inittab;"
39 ROOTFS_POSTPROCESS_COMMAND += "sed -i -e '/ttyS2/a ttyO2' ${IMAGE_ROOTFS}/${sysconfdir}/securetty;"
40
41 # call a script to generate flashes tools automatically
42 ROOTFS_POSTPROCESS_COMMAND += "if [ -e ${HOME}/oe_make_bootf/do.sh ]; then ${HOME}/oe_make_bootf/do.sh ${IMAGE_ROOTFS} ${DEPLOY_DIR_IMAGE}; fi;"