summaryrefslogtreecommitdiff
path: root/packages/images/fso-image-light.bb
blob: 921c636b127f4c21f431a5cd6c3336f55630e1d3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#------------------------------------------------------
# freesmartphone.org Image Recipe, Light Edition
#------------------------------------------------------

require fso-image.bb

IMAGE_LINGUAS = ""

IMAGE_INSTALL = "\
  ${BASE_INSTALL} \
  ${X_INSTALL} \
  ${PYTHON_INSTALL} \
  ${ZHONE_INSTALL} \
"

inherit image

# perform some convenience tweaks to the rootfs
mickey_rootfs_postprocess() {
    curdir=$PWD
    cd ${IMAGE_ROOTFS}
    date "+%m%d%H%M%Y" >./etc/timestamp
    echo "alias pico=nano" >>./etc/profile
    echo "alias fso='cd /local/pkg/fso'" >>./etc/profile
    mkdir -p ./local/pkg
    echo >>./etc/fstab
    echo "# NFS Host" >>./etc/fstab
    echo "192.168.0.200:/local/pkg /local/pkg nfs noauto,nolock,soft,rsize=32768,wsize=32768 0 0" >>./etc/fstab
    cd $curdir
}

ROOTFS_POSTPROCESS_COMMAND += "mickey_rootfs_postprocess"