diff options
Diffstat (limited to 'meta-inspur')
10 files changed, 161 insertions, 0 deletions
diff --git a/meta-inspur/meta-nf5280m7/conf/layer.conf b/meta-inspur/meta-nf5280m7/conf/layer.conf new file mode 100644 index 0000000000..478b530d53 --- /dev/null +++ b/meta-inspur/meta-nf5280m7/conf/layer.conf @@ -0,0 +1,10 @@ +# We have a conf and classes directory, add to BBPATH +BBPATH .= ":${LAYERDIR}" + +# We have recipes-* directories, add to BBFILES +BBFILES += "${LAYERDIR}/recipes-*/*/*.bb \ + ${LAYERDIR}/recipes-*/*/*.bbappend" + +BBFILE_COLLECTIONS += "nf5280m7-layer" +BBFILE_PATTERN_nf5280m7-layer = "^${LAYERDIR}/" +LAYERSERIES_COMPAT_nf5280m7-layer = "langdale mickledore" diff --git a/meta-inspur/meta-nf5280m7/conf/machine/nf5280m7.conf b/meta-inspur/meta-nf5280m7/conf/machine/nf5280m7.conf new file mode 100644 index 0000000000..10e3fd2555 --- /dev/null +++ b/meta-inspur/meta-nf5280m7/conf/machine/nf5280m7.conf @@ -0,0 +1,16 @@ +# Add a device tree for nf5280m7 +KMACHINE = "aspeed" +KERNEL_DEVICETREE = "${KMACHINE}-bmc-inspur-${MACHINE}.dtb" + +UBOOT_MACHINE = "ast2600_openbmc_spl_defconfig" +UMACHINE = "ast2600" +UBOOT_DEVICETREE = "${UMACHINE}-inspur-${MACHINE}" +SPL_BINARY = "spl/u-boot-spl.bin" + +require conf/machine/include/ast2600.inc +require conf/machine/include/obmc-bsp-common.inc + +FLASH_SIZE = "65536" + +SOCSEC_SIGN_ENABLE = "0" + diff --git a/meta-inspur/meta-nf5280m7/conf/templates/default/bblayers.conf.sample b/meta-inspur/meta-nf5280m7/conf/templates/default/bblayers.conf.sample new file mode 100644 index 0000000000..9b84ff7266 --- /dev/null +++ b/meta-inspur/meta-nf5280m7/conf/templates/default/bblayers.conf.sample @@ -0,0 +1,19 @@ +# LAYER_CONF_VERSION is increased each time build/conf/bblayers.conf +# changes incompatibly +LCONF_VERSION = "8" + +BBPATH = "${TOPDIR}" +BBFILES ?= "" + +BBLAYERS ?= " \ + ##OEROOT##/meta \ + ##OEROOT##/meta-openembedded/meta-oe \ + ##OEROOT##/meta-openembedded/meta-networking \ + ##OEROOT##/meta-openembedded/meta-perl \ + ##OEROOT##/meta-openembedded/meta-python \ + ##OEROOT##/meta-security \ + ##OEROOT##/meta-phosphor \ + ##OEROOT##/meta-aspeed \ + ##OEROOT##/meta-inspur \ + ##OEROOT##/meta-inspur/meta-nf5280m7 \ + " diff --git a/meta-inspur/meta-nf5280m7/conf/templates/default/conf-notes.txt b/meta-inspur/meta-nf5280m7/conf/templates/default/conf-notes.txt new file mode 100644 index 0000000000..9b3c01a556 --- /dev/null +++ b/meta-inspur/meta-nf5280m7/conf/templates/default/conf-notes.txt @@ -0,0 +1,2 @@ +Common targets are: + obmc-phosphor-image diff --git a/meta-inspur/meta-nf5280m7/conf/templates/default/local.conf.sample b/meta-inspur/meta-nf5280m7/conf/templates/default/local.conf.sample new file mode 100644 index 0000000000..31ff68e058 --- /dev/null +++ b/meta-inspur/meta-nf5280m7/conf/templates/default/local.conf.sample @@ -0,0 +1,18 @@ +MACHINE ??= "nf5280m7" +DISTRO ?= "openbmc-phosphor" +PACKAGE_CLASSES ?= "package_ipk" +SANITY_TESTED_DISTROS:append ?= " *" +EXTRA_IMAGE_FEATURES ?= "debug-tweaks" +USER_CLASSES ?= "buildstats" +PATCHRESOLVE = "noop" +BB_DISKMON_DIRS ??= "\ + STOPTASKS,${TMPDIR},1G,100K \ + STOPTASKS,${DL_DIR},1G,100K \ + STOPTASKS,${SSTATE_DIR},1G,100K \ + STOPTASKS,/tmp,100M,100K \ + HALT,${TMPDIR},100M,1K \ + HALT,${DL_DIR},100M,1K \ + HALT,${SSTATE_DIR},100M,1K \ + HALT,/tmp,10M,1K" +CONF_VERSION = "2" + diff --git a/meta-inspur/meta-nf5280m7/recipes-bsp/u-boot/u-boot-aspeed-sdk/nf5280m7/nf5280m7.cfg b/meta-inspur/meta-nf5280m7/recipes-bsp/u-boot/u-boot-aspeed-sdk/nf5280m7/nf5280m7.cfg new file mode 100644 index 0000000000..bf02d15659 --- /dev/null +++ b/meta-inspur/meta-nf5280m7/recipes-bsp/u-boot/u-boot-aspeed-sdk/nf5280m7/nf5280m7.cfg @@ -0,0 +1,3 @@ +CONFIG_TARGET_AST2600_INSPUR=y +CONFIG_BOARD_LATE_INIT=y +CONFIG_BOARD_EARLY_INIT_F=n diff --git a/meta-inspur/meta-nf5280m7/recipes-bsp/u-boot/u-boot-aspeed-sdk_%.bbappend b/meta-inspur/meta-nf5280m7/recipes-bsp/u-boot/u-boot-aspeed-sdk_%.bbappend new file mode 100644 index 0000000000..66e50a4465 --- /dev/null +++ b/meta-inspur/meta-nf5280m7/recipes-bsp/u-boot/u-boot-aspeed-sdk_%.bbappend @@ -0,0 +1,4 @@ +FILESEXTRAPATHS:prepend := "${THISDIR}/${PN}:" + +SRC_URI:append:nf5280m7 = " file://nf5280m7.cfg" + diff --git a/meta-inspur/meta-nf5280m7/recipes-kernel/linux/linux-aspeed/nf5280m7/nf5280m7.cfg b/meta-inspur/meta-nf5280m7/recipes-kernel/linux/linux-aspeed/nf5280m7/nf5280m7.cfg new file mode 100644 index 0000000000..4bfa4a286d --- /dev/null +++ b/meta-inspur/meta-nf5280m7/recipes-kernel/linux/linux-aspeed/nf5280m7/nf5280m7.cfg @@ -0,0 +1,42 @@ +CONFIG_BONDING=y +CONFIG_NET_NCSI_ETHTOOL_OVERRIDE=y +CONFIG_NET_NCSI_ETHTOOL_NIC_COUNT=1 +CONFIG_SENSORS_EMC1403=y +CONFIG_SENSORS_ADC128D818=y +CONFIG_SENSORS_MP2888=y +CONFIG_SENSORS_INA2XX=y +CONFIG_IPMB_DEVICE_INTERFACE=y + +CONFIG_PECI=y +CONFIG_PECI_ASPEED=y +CONFIG_PECI_CHARDEV=y +CONFIG_MFD_INTEL_PECI_CLIENT=y +CONFIG_SENSORS_PECI_CPUTEMP=y +CONFIG_SENSORS_PECI_DIMMTEMP=y +CONFIG_SENSORS_PECI_CPUPOWER=y +CONFIG_SENSORS_PECI_DIMMPOWER=y +CONFIG_SENSORS_PECI_PLATFORMPOWER=y + +# Used by nftables configurations +# copied from gbmc +CONFIG_NETFILTER=y +CONFIG_NF_CONNTRACK=y +CONFIG_NF_CONNTRACK_MARK=y +CONFIG_NF_TABLES=y +CONFIG_NFT_CT=y +CONFIG_NF_TABLES_INET=y +CONFIG_NFT_REJECT=y +CONFIG_NFT_LOG=y +CONFIG_IP_NF_IPTABLES=y +CONFIG_NF_LOG_IPV4=y +CONFIG_NFT_FIB_IPV4=y +CONFIG_IP_NF_FILTER=y +CONFIG_IP_NF_TARGET_REJECT=y +CONFIG_IP6_NF_IPTABLES=y +CONFIG_NF_LOG_IPV6=y +CONFIG_NFT_FIB_IPV6=y +CONFIG_IP6_NF_FILTER=y +CONFIG_IP6_NF_TARGET_REJECT=y + +#slave-mqueue +CONFIG_PANIC_TIMEOUT=900 diff --git a/meta-inspur/meta-nf5280m7/recipes-kernel/linux/linux-aspeed_%.bbappend b/meta-inspur/meta-nf5280m7/recipes-kernel/linux/linux-aspeed_%.bbappend new file mode 100644 index 0000000000..6a0c70228b --- /dev/null +++ b/meta-inspur/meta-nf5280m7/recipes-kernel/linux/linux-aspeed_%.bbappend @@ -0,0 +1,5 @@ +FILESEXTRAPATHS:prepend := "${THISDIR}/${PN}:" + +SRC_URI:append: = " \ + file://nf5280m7.cfg \ +" diff --git a/meta-inspur/meta-nf5280m7/recipes-phosphor/packagegroups/packagegroup-obmc-apps.bbappend b/meta-inspur/meta-nf5280m7/recipes-phosphor/packagegroups/packagegroup-obmc-apps.bbappend new file mode 100644 index 0000000000..eb8623d186 --- /dev/null +++ b/meta-inspur/meta-nf5280m7/recipes-phosphor/packagegroups/packagegroup-obmc-apps.bbappend @@ -0,0 +1,42 @@ +SUMMARY = "OpenBMC for Inspur - Applications" +PR = "r1" + +inherit packagegroup + +PROVIDES = "${PACKAGES}" +PACKAGES += " \ + ${PN}-chassis \ + ${PN}-fans \ + ${PN}-flash \ + ${PN}-system \ + " + +PROVIDES += "virtual/obmc-chassis-mgmt" +PROVIDES += "virtual/obmc-fan-mgmt" +PROVIDES += "virtual/obmc-flash-mgmt" +PROVIDES += "virtual/obmc-system-mgmt" + +RPROVIDES:${PN}-chassis += "virtual-obmc-chassis-mgmt" +RPROVIDES:${PN}-fans += "virtual-obmc-fan-mgmt" +RPROVIDES:${PN}-flash += "virtual-obmc-flash-mgmt" +RPROVIDES:${PN}-system += "virtual-obmc-system-mgmt" + +SUMMARY:${PN}-chassis = "Inspur Chassis" +RDEPENDS:${PN}-chassis = " \ + x86-power-control \ + " + +SUMMARY:${PN}-fans = "Inspur Fans" +RDEPENDS:${PN}-fans = " \ + " + +SUMMARY:${PN}-flash = "Inspur Flash" +RDEPENDS:${PN}-flash = " \ + " + +SUMMARY:${PN}-system = "Inspur System" +RDEPENDS:${PN}-system = " \ + entity-manager \ + webui-vue \ + ipmitool \ + " |