Brad Bishop | 93fb535 | 2015-09-09 03:59:20 +0000 | [diff] [blame] | 1 | # 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 |
Adriana Kobylak | f1cd2b5 | 2016-02-11 16:31:21 -0600 | [diff] [blame] | 10 | # - obmc-phosphor-user-mgmt - Phosphor OpenBMC user management |
Brad Bishop | 93fb535 | 2015-09-09 03:59:20 +0000 | [diff] [blame] | 11 | # - obmc-phosphor-system-mgmt - Phosphor OpenBMC system management |
| 12 | |
| 13 | inherit core-image |
| 14 | inherit obmc-phosphor-license |
| 15 | |
| 16 | FEATURE_PACKAGES_obmc-phosphor-fan-mgmt ?= "packagegroup-obmc-phosphor-apps-fan-mgmt" |
| 17 | FEATURE_PACKAGES_obmc-phosphor-chassis-mgmt ?= "packagegroup-obmc-phosphor-apps-chassis-mgmt" |
| 18 | FEATURE_PACKAGES_obmc-phosphor-sensor-mgmt ?= "packagegroup-obmc-phosphor-apps-sensor-mgmt" |
| 19 | FEATURE_PACKAGES_obmc-phosphor-flash-mgmt ?= "packagegroup-obmc-phosphor-apps-flash-mgmt" |
| 20 | FEATURE_PACKAGES_obmc-phosphor-event-mgmt ?= "packagegroup-obmc-phosphor-apps-event-mgmt" |
Adriana Kobylak | f1cd2b5 | 2016-02-11 16:31:21 -0600 | [diff] [blame] | 21 | FEATURE_PACKAGES_obmc-phosphor-user-mgmt ?= "packagegroup-obmc-phosphor-apps-user-mgmt" |
Brad Bishop | 93fb535 | 2015-09-09 03:59:20 +0000 | [diff] [blame] | 22 | FEATURE_PACKAGES_obmc-phosphor-system-mgmt ?= "packagegroup-obmc-phosphor-apps-system-mgmt" |
| 23 | |
| 24 | # Install entire Phosphor application stack by default |
| 25 | IMAGE_FEATURES += " \ |
Brad Bishop | 8ae0cfc | 2016-02-29 10:18:47 -0500 | [diff] [blame] | 26 | obmc-phosphor-fan-mgmt \ |
| 27 | obmc-phosphor-chassis-mgmt \ |
| 28 | obmc-phosphor-sensor-mgmt \ |
| 29 | obmc-phosphor-flash-mgmt \ |
| 30 | obmc-phosphor-event-mgmt \ |
Brad Bishop | 8ae0cfc | 2016-02-29 10:18:47 -0500 | [diff] [blame] | 31 | obmc-phosphor-user-mgmt \ |
| 32 | obmc-phosphor-system-mgmt \ |
| 33 | ssh-server-dropbear \ |
| 34 | " |
Brad Bishop | 93fb535 | 2015-09-09 03:59:20 +0000 | [diff] [blame] | 35 | |
Brad Bishop | abf218c | 2016-06-14 15:24:22 -0400 | [diff] [blame] | 36 | CORE_IMAGE_EXTRA_INSTALL_append = " bash \ |
Brad Bishop | 8ae0cfc | 2016-02-29 10:18:47 -0500 | [diff] [blame] | 37 | packagegroup-obmc-phosphor-apps-extras \ |
Adriana Kobylak | eaa56c9 | 2016-06-16 14:46:06 -0500 | [diff] [blame] | 38 | packagegroup-obmc-phosphor-apps-extrasdev \ |
Brad Bishop | 8ae0cfc | 2016-02-29 10:18:47 -0500 | [diff] [blame] | 39 | i2c-tools \ |
| 40 | screen \ |
Adriana Kobylak | b1b6706 | 2016-03-04 13:25:27 -0600 | [diff] [blame] | 41 | inarp \ |
Jeremy Kerr | 8c94019 | 2016-04-12 15:59:52 +0800 | [diff] [blame] | 42 | obmc-console \ |
Brad Bishop | abf218c | 2016-06-14 15:24:22 -0400 | [diff] [blame] | 43 | ${OBMC_IMAGE_EXTRA_INSTALL} \ |
Brad Bishop | 8ae0cfc | 2016-02-29 10:18:47 -0500 | [diff] [blame] | 44 | " |
Brad Bishop | c536147 | 2016-02-29 10:21:51 -0500 | [diff] [blame] | 45 | |
Brad Bishop | abf218c | 2016-06-14 15:24:22 -0400 | [diff] [blame] | 46 | OBMC_IMAGE_EXTRA_INSTALL ?= "" |
| 47 | |
Patrick Williams | f01fcca | 2016-06-20 14:06:54 -0500 | [diff] [blame] | 48 | def image_overlay_enabled(d, ifEnabledStr): |
| 49 | if d.getVar('OBMC_PHOSPHOR_IMAGE_OVERLAY', True) != "1": |
| 50 | return "" |
| 51 | return ifEnabledStr |
Brad Bishop | c536147 | 2016-02-29 10:21:51 -0500 | [diff] [blame] | 52 | |
Patrick Williams | f01fcca | 2016-06-20 14:06:54 -0500 | [diff] [blame] | 53 | IMAGE_FSTYPES += "${@image_overlay_enabled(d, "overlay")}" |
| 54 | inherit ${@image_overlay_enabled(d, "image-overlay")} |
Patrick Williams | 373aecd | 2016-08-05 15:05:41 -0500 | [diff] [blame] | 55 | |
| 56 | do_image_complete[depends] += "obmc-phosphor-debug-tarball:do_image_complete" |