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 | 3d7ad81 | 2015-10-06 01:53:40 -0400 | [diff] [blame] | 7 | KERNEL_EXTRA_ARGS += "LOADADDR=${UBOOT_ENTRYPOINT}" |
| 8 | |
| 9 | UBOOT_SUFFIX ?= "bin" |
Brad Bishop | 3d7ad81 | 2015-10-06 01:53:40 -0400 | [diff] [blame] | 10 | |
| 11 | MACHINEOVERRIDES =. "openbmc:" |
Brad Bishop | becb70f | 2015-10-08 15:18:38 -0400 | [diff] [blame] | 12 | |
Brad Bishop | dfd2dd2 | 2017-08-04 23:54:51 -0400 | [diff] [blame] | 13 | IMAGE_FSTYPES += "cpio.${INITRAMFS_CTYPE}.u-boot" |
| 14 | IMAGE_FSTYPES += "${@bb.utils.contains('MACHINE_FEATURES', \ |
| 15 | 'obmc-ubi-fs', \ |
| 16 | 'mtd-ubi mtd-ubi-tar', \ |
| 17 | 'mtd-static mtd-static-tar mtd-static-alltar', d)}" |
Brad Bishop | adb60e8 | 2016-06-14 15:24:22 -0400 | [diff] [blame] | 18 | OBMC_IMAGE_EXTRA_INSTALL_append = " u-boot-fw-utils" |
Milton D. Miller II | 3e287b3 | 2016-01-28 09:49:39 -0600 | [diff] [blame] | 19 | |
Milton D. Miller II | 3e287b3 | 2016-01-28 09:49:39 -0600 | [diff] [blame] | 20 | INITRAMFS_CTYPE ?= "lzma" |
Rick Altherr | 1ed6fe3 | 2017-01-11 17:33:47 -0800 | [diff] [blame] | 21 | INITRAMFS_FSTYPES += "cpio.${INITRAMFS_CTYPE}" |
Patrick Williams | 3e62b0d | 2017-07-27 14:28:19 -0500 | [diff] [blame] | 22 | INITRAMFS_IMAGE = "${@bb.utils.contains('MACHINE_FEATURES', \ |
| 23 | 'obmc-ubi-fs', '', 'obmc-phosphor-initramfs', d)}" |
Milton D. Miller II | 3e287b3 | 2016-01-28 09:49:39 -0600 | [diff] [blame] | 24 | |
Nan Li | b4f5019 | 2016-11-23 01:58:30 +0800 | [diff] [blame] | 25 | MACHINE_FEATURES_BACKFILL_CONSIDERED = "qemu-usermode" |
Milton D. Miller II | 3e287b3 | 2016-01-28 09:49:39 -0600 | [diff] [blame] | 26 | |