blob: 9098a8a4adf84e7ec7092884a7e2a3841e79b41a [file] [log] [blame]
Brad Bishop3d7ad812015-10-06 01:53:40 -04001#@TYPE: Machine
2#@NAME: OpenBMC
3#@DESCRIPTION: Common machine configuration for OpenBMC chips
4
Rick Altherr8ce17d12017-01-09 15:44:57 -08005KERNEL_CLASSES ?= "kernel-fitimage"
Joel Stanley74d209f2022-03-28 12:14:53 +10306KERNEL_IMAGETYPES ?= "fitImage vmlinux"
Brad Bishopbecb70f2015-10-08 15:18:38 -04007
Adriana Kobylaka9c7ab22020-05-22 13:05:55 -05008# Static images. This is the default if no other layout is specified.
9IMAGE_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 Bishop8623bbe2018-03-09 00:04:00 -050015IMAGE_FSTYPES += "${@bb.utils.contains('DISTRO_FEATURES', \
Brad Bishopdfd2dd22017-08-04 23:54:51 -040016 'obmc-ubi-fs', \
17 'mtd-ubi mtd-ubi-tar', \
Adriana Kobylaka9c7ab22020-05-22 13:05:55 -050018 '', d)}"
19
20# eMMC images.
21IMAGE_FSTYPES += "${@bb.utils.contains('DISTRO_FEATURES', \
22 'phosphor-mmc', \
23 'wic.xz mmc-ext4-tar', \
24 '', d)}"
Milton D. Miller II3e287b32016-01-28 09:49:39 -060025
William A. Kennington IIIe2c0ef52019-09-23 12:36:48 -070026INITRAMFS_CTYPE ?= "xz"
Brad Bishopb34837f2019-08-08 12:58:32 -040027INITRAMFS_FSTYPES = "cpio.${INITRAMFS_CTYPE}"
28INITRAMFS_IMAGE = "obmc-phosphor-initramfs"
Patrick Williams12fc9392021-08-06 09:16:53 -050029INITRAMFS_IMAGE:df-obmc-ubi-fs = ""