aboutsummaryrefslogtreecommitdiff
path: root/recipes/images/gpe-image.bb
blob: 768cc6bcaeaa33e6385a60de40e1c51e26a51f72 (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
LICENSE = "MIT"

# Set some defaults

MACHINE_TASK_PROVIDER = "task-base-extended"
GUI_MACHINE_CLASS ?= "none"
XSERVER ?= "xserver-kdrive-fbdev"
GPE_EXTRA_THEMES = "gpe-theme-industrial"

# Select bootsplash 
SPLASH ?= ' ${@base_contains("MACHINE_FEATURES", "screen", "psplash-angstrom", "",d)}'

# Select some useful things depending on the device capabilities

GPE_EXTRA_INSTALL_none = ""
GPE_EXTRA_INSTALL_bigscreen = "task-gpe-games ${GPE_EXTRA_THEMES}"
GPE_EXTRA_INSTALL_smallscreen = "task-gpe-games ${GPE_EXTRA_THEMES}"

GPE_EXTRA_INSTALL += "${GPE_EXTRA_INSTALL_${GUI_MACHINE_CLASS}}"

#ship more stuff with devices with >16MB of flash
GPE_BIGFLASH_INSTALL := '${@base_conditional("ROOT_FLASH_SIZE", "16", "", "\
    task-gpe-connectivity \
    gpe-theme-clearlooks \
    figment \
",d)}'

GPE_EXTRA_INSTALL += "${GPE_BIGFLASH_INSTALL}"


DEPENDS = "${MACHINE_TASK_PROVIDER} \
	   ${SPLASH} \
	   task-gpe-base \
           task-gpe-apps \
           task-gpe-pim \
           task-gpe-settings \
           task-gpe-games \
           virtual/xserver"

IMAGE_INSTALL = "\
    ${MACHINE_TASK_PROVIDER} \
    task-gpe-base \
    task-gpe-pim \
    task-gpe-settings \
    task-gpe-apps \
    ${XSERVER} \
    ${SPLASH} \
    ${GPE_EXTRA_INSTALL}"

ROOTFS_POSTPROCESS_COMMAND += '${@base_conditional("DISTRO_TYPE", "release", "zap_root_password; ", "",d)}'
ROOTFS_POSTPROCESS_COMMAND += '${@base_conditional("DISTRO_TYPE", "demo", "set_image_autologin; ", "",d)}'

inherit image