aboutsummaryrefslogtreecommitdiffstats
path: root/packages/images/fso-image.bb
blob: 74d044505fe5e7e0933b9af218240000d29929ee (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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
#------------------------------------------------------
# freesmartphone.org Image Recipe
#------------------------------------------------------

IMAGE_LINGUAS = ""

# getting the base system up
BASE_INSTALL = "\
  ${MACHINE_TASK_PROVIDER} \
  netbase \
  sysfsutils \
  module-init-tools-depmod \
  rsync \
  screen \
  fbset \
  fbset-modes \
"

# getting an X window system up
X_INSTALL = "\
  matchbox-wm \
  ${XSERVER} \
  xserver-kdrive-common \
  xserver-nodm-init \
  xauth \
  xhost \
  xset \
  xrandr \
  \
  fontconfig-utils \
  \
  ttf-dejavu-common \
  ttf-dejavu-sans \
  ttf-dejavu-serif \
  \
"

# useful command line tools
TOOLS_INSTALL = "\
  htop \
  mickeyterm \
  nano \
  powertop \
  s3c24xx-gpio \
"

# audio
AUDIO_INSTALL = "\
  openmoko-alsa-scenarios \
  openmoko-sound-system2 \
  openmoko-sound-theme-standard2 \
"

# python
PYTHON_INSTALL = "\
  task-python-efl \
  python-codecs \
  python-gst \
"

# zhone
ZHONE_INSTALL = "\
  gsm0710muxd \
  python-odeviced \
  python-ophoned \
  python-ousaged \
  zhone \
"

IMAGE_INSTALL = "\
  ${BASE_INSTALL} \
  ${X_INSTALL} \
  ${AUDIO_INSTALL} \
  ${TOOLS_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 auto,nolock,soft,rsize=32768,wsize=32768 0 0" >>./etc/fstab
    cd $curdir
}

ROOTFS_POSTPROCESS_COMMAND += "mickey_rootfs_postprocess"