blob: f1714cac57e2e1d2eb1031c92076da86a506ab5f [file] [log] [blame]
Brad Bishop93fb5352015-09-09 03:59:20 +00001# Common code for generating Phosphor OpenBMC images.
2
3# Additional IMAGE_FEATURES available with Phosphor OpenBMC:
4#
5# - obmc-phosphor-fan-mgmt - Phosphor OpenBMC fan management
6# - obmc-phosphor-chassis-mgmt - Phosphor OpenBMC chassis management
7# - obmc-phosphor-sensor-mgmt - Phosphor OpenBMC sensor management
8# - obmc-phosphor-flash-mgmt - Phosphor OpenBMC flash management
9# - obmc-phosphor-event-mgmt - Phosphor OpenBMC event management
10# - obmc-phosphor-policy-mgmt - Phosphor OpenBMC policy management
Adriana Kobylak2745eaf2016-02-11 16:31:21 -060011# - obmc-phosphor-user-mgmt - Phosphor OpenBMC user management
Brad Bishop93fb5352015-09-09 03:59:20 +000012# - obmc-phosphor-system-mgmt - Phosphor OpenBMC system management
13
14inherit core-image
15inherit obmc-phosphor-license
16
17FEATURE_PACKAGES_obmc-phosphor-fan-mgmt ?= "packagegroup-obmc-phosphor-apps-fan-mgmt"
18FEATURE_PACKAGES_obmc-phosphor-chassis-mgmt ?= "packagegroup-obmc-phosphor-apps-chassis-mgmt"
19FEATURE_PACKAGES_obmc-phosphor-sensor-mgmt ?= "packagegroup-obmc-phosphor-apps-sensor-mgmt"
20FEATURE_PACKAGES_obmc-phosphor-flash-mgmt ?= "packagegroup-obmc-phosphor-apps-flash-mgmt"
21FEATURE_PACKAGES_obmc-phosphor-event-mgmt ?= "packagegroup-obmc-phosphor-apps-event-mgmt"
22FEATURE_PACKAGES_obmc-phosphor-policy-mgmt ?= "packagegroup-obmc-phosphor-apps-policy-mgmt"
Adriana Kobylak2745eaf2016-02-11 16:31:21 -060023FEATURE_PACKAGES_obmc-phosphor-user-mgmt ?= "packagegroup-obmc-phosphor-apps-user-mgmt"
Brad Bishop93fb5352015-09-09 03:59:20 +000024FEATURE_PACKAGES_obmc-phosphor-system-mgmt ?= "packagegroup-obmc-phosphor-apps-system-mgmt"
25
26# Install entire Phosphor application stack by default
27IMAGE_FEATURES += " \
Brad Bishopbd082172016-02-29 10:18:47 -050028 obmc-phosphor-fan-mgmt \
29 obmc-phosphor-chassis-mgmt \
30 obmc-phosphor-sensor-mgmt \
31 obmc-phosphor-flash-mgmt \
32 obmc-phosphor-event-mgmt \
33 obmc-phosphor-policy-mgmt \
34 obmc-phosphor-user-mgmt \
35 obmc-phosphor-system-mgmt \
36 ssh-server-dropbear \
37 "
Brad Bishop93fb5352015-09-09 03:59:20 +000038
Brad Bishopadb60e82016-06-14 15:24:22 -040039CORE_IMAGE_EXTRA_INSTALL_append = " bash \
Brad Bishopbd082172016-02-29 10:18:47 -050040 packagegroup-obmc-phosphor-apps-extras \
Adriana Kobylaka3e925f2016-06-16 14:46:06 -050041 packagegroup-obmc-phosphor-apps-extrasdev \
Brad Bishopbd082172016-02-29 10:18:47 -050042 i2c-tools \
43 screen \
Adriana Kobylak31257d02016-03-04 13:25:27 -060044 inarp \
Jeremy Kerr75fc03a2016-04-12 15:59:52 +080045 obmc-console \
Brad Bishopadb60e82016-06-14 15:24:22 -040046 ${OBMC_IMAGE_EXTRA_INSTALL} \
Brad Bishopbd082172016-02-29 10:18:47 -050047 "
Brad Bishop327bfd62016-02-29 10:21:51 -050048
Brad Bishopadb60e82016-06-14 15:24:22 -040049OBMC_IMAGE_EXTRA_INSTALL ?= ""
50
Patrick Williams20546942016-06-20 14:06:54 -050051def image_overlay_enabled(d, ifEnabledStr):
52 if d.getVar('OBMC_PHOSPHOR_IMAGE_OVERLAY', True) != "1":
53 return ""
54 return ifEnabledStr
Brad Bishop327bfd62016-02-29 10:21:51 -050055
Patrick Williams20546942016-06-20 14:06:54 -050056IMAGE_FSTYPES += "${@image_overlay_enabled(d, "overlay")}"
57inherit ${@image_overlay_enabled(d, "image-overlay")}
Patrick Williamsfb662412016-08-05 15:05:41 -050058
59do_image_complete[depends] += "obmc-phosphor-debug-tarball:do_image_complete"