Brad Bishop | 3d7ad81 | 2015-10-06 01:53:40 -0400 | [diff] [blame] | 1 | #@TYPE: Machine |
| 2 | #@NAME: OpenBMC |
| 3 | #@DESCRIPTION: Common machine configuration for OpenBMC chips |
| 4 | |
Rick Altherr | 8ce17d1 | 2017-01-09 15:44:57 -0800 | [diff] [blame] | 5 | KERNEL_CLASSES ?= "kernel-fitimage" |
| 6 | KERNEL_IMAGETYPES ?= "fitImage" |
Brad Bishop | becb70f | 2015-10-08 15:18:38 -0400 | [diff] [blame] | 7 | |
Adriana Kobylak | a9c7ab2 | 2020-05-22 13:05:55 -0500 | [diff] [blame] | 8 | # Static images. This is the default if no other layout is specified. |
| 9 | IMAGE_FSTYPES += "${@bb.utils.contains_any('DISTRO_FEATURES', \ |
| 10 | 'obmc-ubi-fs phosphor-mmc', \ |
| 11 | '', \ |
| 12 | 'mtd-static mtd-static-tar mtd-static-alltar', d)}" |
| 13 | |
| 14 | # UBI images. |
Brad Bishop | 8623bbe | 2018-03-09 00:04:00 -0500 | [diff] [blame] | 15 | IMAGE_FSTYPES += "${@bb.utils.contains('DISTRO_FEATURES', \ |
Brad Bishop | dfd2dd2 | 2017-08-04 23:54:51 -0400 | [diff] [blame] | 16 | 'obmc-ubi-fs', \ |
| 17 | 'mtd-ubi mtd-ubi-tar', \ |
Adriana Kobylak | a9c7ab2 | 2020-05-22 13:05:55 -0500 | [diff] [blame] | 18 | '', d)}" |
| 19 | |
| 20 | # eMMC images. |
| 21 | IMAGE_FSTYPES += "${@bb.utils.contains('DISTRO_FEATURES', \ |
| 22 | 'phosphor-mmc', \ |
| 23 | 'wic.xz mmc-ext4-tar', \ |
| 24 | '', d)}" |
Milton D. Miller II | 3e287b3 | 2016-01-28 09:49:39 -0600 | [diff] [blame] | 25 | |
William A. Kennington III | e2c0ef5 | 2019-09-23 12:36:48 -0700 | [diff] [blame] | 26 | INITRAMFS_CTYPE ?= "xz" |
Brad Bishop | b34837f | 2019-08-08 12:58:32 -0400 | [diff] [blame] | 27 | INITRAMFS_FSTYPES = "cpio.${INITRAMFS_CTYPE}" |
| 28 | INITRAMFS_IMAGE = "obmc-phosphor-initramfs" |
Patrick Williams | 12fc939 | 2021-08-06 09:16:53 -0500 | [diff] [blame] | 29 | INITRAMFS_IMAGE:df-obmc-ubi-fs = "" |