Blame view

recipes-core/packagegroups/packagegroup-initramfs-boot.bb 1.47 KB
6b37f5cbd   Eric Lee   add initramfs image
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
  #
  # Copyright (C) 2007 OpenedHand Ltd.
  #
  
  SUMMARY = "Minimal boot requirements"
  DESCRIPTION = "The minimal set of packages required to boot the system"
  LICENSE = "MIT"
  DEPENDS = "virtual/kernel"
  PR = "r10"
  
  inherit packagegroup
  
  PACKAGE_ARCH = "${MACHINE_ARCH}"
  
  #
  # Set by the machine configuration with packages essential for device bootup
  #
  MACHINE_ESSENTIAL_EXTRA_RDEPENDS ?= ""
  MACHINE_ESSENTIAL_EXTRA_RRECOMMENDS ?= ""
  
  # For backwards compatibility after rename
  RPROVIDES_${PN} = "task-core-boot"
  RREPLACES_${PN} = "task-core-boot"
  RCONFLICTS_${PN} = "task-core-boot"
  
  # Distro can override the following VIRTUAL-RUNTIME providers:
  VIRTUAL-RUNTIME_dev_manager ?= "udev"
  VIRTUAL-RUNTIME_login_manager ?= "tinylogin"
  VIRTUAL-RUNTIME_init_manager ?= "sysvinit"
  VIRTUAL-RUNTIME_initscripts ?= "initscripts"
  VIRTUAL-RUNTIME_keymaps ?= "keymaps"
  
  RDEPENDS_${PN} = "\
      base-files \
      base-passwd \
      busybox \
      util-linux-blkid \
      util-linux-mkfs \
      util-linux-sfdisk \
      ${@base_contains("MACHINE_FEATURES", "rtc", "busybox-hwclock", "", d)} \
      ${VIRTUAL-RUNTIME_initscripts} \
      ${@base_contains("MACHINE_FEATURES", "keyboard", "${VIRTUAL-RUNTIME_keymaps}", "", d)} \
      modutils-initscripts \
      netbase \
      ${VIRTUAL-RUNTIME_login_manager} \
      ${VIRTUAL-RUNTIME_init_manager} \
      ${VIRTUAL-RUNTIME_dev_manager} \
      ${VIRTUAL-RUNTIME_update-alternatives} \
      ${MACHINE_ESSENTIAL_EXTRA_RDEPENDS}"
  
  RRECOMMENDS_${PN} = "\
      ${MACHINE_ESSENTIAL_EXTRA_RRECOMMENDS}"