Tim Lee | dd14a91 | 2022-07-29 16:42:15 +0800 | [diff] [blame] | 1 | KMACHINE = "nuvoton" |
| 2 | KERNEL_DEVICETREE = "nuvoton/${KMACHINE}-npcm845-evb.dtb" |
| 3 | |
| 4 | UBOOT_MACHINE = "ArbelEVB_defconfig" |
| 5 | UBOOT_DEVICETREE = "nuvoton-npcm845-evb" |
| 6 | |
| 7 | IGPS_MACHINE = "EB" |
| 8 | DEVICE_GEN = "A1" |
| 9 | |
| 10 | require conf/machine/include/npcm8xx.inc |
| 11 | require conf/machine/include/obmc-bsp-common.inc |
| 12 | |
| 13 | FLASH_SIZE = "65536" |
| 14 | FLASH_UBOOT_OFFSET:flash-65536 = "0" |
Tim Lee | 3a63ed4 | 2024-01-30 13:55:49 +0800 | [diff] [blame] | 15 | FLASH_MANIFEST_OFFSET:flash-65536 = "3832" |
Tim Lee | 0dc21b3 | 2023-03-22 09:46:43 +0800 | [diff] [blame] | 16 | FLASH_UBOOT_ENV_OFFSET:flash-65536 = "3840" |
Tim Lee | cbee68f | 2022-12-14 13:51:09 +0800 | [diff] [blame] | 17 | FLASH_KERNEL_OFFSET:flash-65536 = "4096" |
| 18 | FLASH_ROFS_OFFSET:flash-65536 = "12288" |
| 19 | FLASH_RWFS_OFFSET:flash-65536 = "61440" |
| 20 | |
| 21 | BB_ALIGN = "524288" |
Tim Lee | dd14a91 | 2022-07-29 16:42:15 +0800 | [diff] [blame] | 22 | |
| 23 | IMAGE_FSTYPES += "cpio.${INITRAMFS_CTYPE}.u-boot" |
| 24 | IMAGE_FSTYPES += "${@bb.utils.contains('DISTRO_FEATURES', \ |
| 25 | 'phosphor-mmc', \ |
| 26 | 'wic.gz mmc-ext4-tar', \ |
| 27 | '', d)}" |
| 28 | |
| 29 | MACHINE_FEATURES += "\ |
| 30 | obmc-phosphor-fan-mgmt \ |
| 31 | obmc-phosphor-chassis-mgmt \ |
| 32 | obmc-phosphor-flash-mgmt \ |
| 33 | obmc-host-ipmi \ |
| 34 | obmc-host-state-mgmt \ |
| 35 | obmc-chassis-state-mgmt \ |
| 36 | obmc-bmc-state-mgmt \ |
| 37 | " |
| 38 | |
| 39 | KCS_DEVICE = "ipmi-kcs1" |
| 40 | |
| 41 | DISTRO_FEATURES:append = " ext2" |
| 42 | MACHINE_FEATURES:append = " ext2" |
| 43 | |
| 44 | VIRTUAL-RUNTIME_obmc-host-state-manager ?= "x86-power-control" |
| 45 | VIRTUAL-RUNTIME_obmc-chassis-state-manager ?= "x86-power-control" |
| 46 | |
| 47 | PREFERRED_PROVIDER_virtual/obmc-chassis-mgmt = "packagegroup-evb-npcm845-apps" |
| 48 | PREFERRED_PROVIDER_virtual/obmc-fan-mgmt = "packagegroup-evb-npcm845-apps" |
| 49 | PREFERRED_PROVIDER_virtual/obmc-flash-mgmt = "packagegroup-evb-npcm845-apps" |
| 50 | PREFERRED_PROVIDER_virtual/obmc-system-mgmt = "packagegroup-evb-npcm845-apps" |
| 51 | PREFERRED_PROVIDER_virtual/obmc-host-ipmi-hw = "phosphor-ipmi-kcs" |
| 52 | PREFERRED_PROVIDER_virtual/phosphor-led-manager-config-native = "evb-npcm845-led-manager-config-native" |
| 53 | |
| 54 | # Remove unneeded binaries from image |
| 55 | IMAGE_FEATURES:remove = "obmc-fan-control" |
| 56 | IMAGE_FEATURES:remove = "obmc-health-monitor" |
| 57 | |
| 58 | MACHINE_EXTRA_RRECOMMENDS = "kernel-modules" |