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