Initial commit

This commit is contained in:
Your Name
2026-04-23 17:07:55 +08:00
commit b7e39e063b
16725 changed files with 1625565 additions and 0 deletions
@@ -0,0 +1,3 @@
lpc-address = 0x3f8
sirq = 4
baud = 115200
@@ -0,0 +1 @@
baud = 115200
@@ -0,0 +1,17 @@
FILESEXTRAPATHS:prepend := "${THISDIR}/${PN}/${MACHINE}:"
OBMC_CONSOLE_HOST_TTY:ethanolx = "ttyS0"
OBMC_CONSOLE_HOST_TTY:daytonax = "ttyVUART0"
SRC_URI:remove = "file://${BPN}.conf"
SRC_URI:append:ethanolx = " file://server.ttyS0.conf"
SRC_URI:append:daytonax = " file://server.ttyVUART0.conf"
do_install:append() {
# Remove upstream-provided configuration
rm -rf ${D}${sysconfdir}/${BPN}
# Install the server configuration
install -m 0755 -d ${D}${sysconfdir}/${BPN}
install -m 0644 ${WORKDIR}/*.conf ${D}${sysconfdir}/${BPN}/
}
@@ -0,0 +1,14 @@
[Unit]
Description=Phosphor-Pid-Control Margin-based Fan Control Daemon
After=xyz.openbmc_project.EntityManager.service
After=xyz.openbmc_project.ObjectMapper.service
[Service]
Restart=always
ExecStart={bindir}/swampd -t
RestartSec=5
StartLimitInterval=0
Type=simple
[Install]
WantedBy=multi-user.target
@@ -0,0 +1,5 @@
FILESEXTRAPATHS:prepend := "${THISDIR}/${PN}:"
inherit obmc-phosphor-systemd
SYSTEMD_SERVICE:${PN} = "phosphor-pid-control.service"
@@ -0,0 +1,7 @@
SOCKET_ID=
BUF_MAXSIZE=3000
BUF_MAXTIME=0
FLUSH_FULL=false
HOST_STATE=/xyz/openbmc_project/state/host0
OUT_DIR=/var/lib/obmc/hostlogs
MAX_FILES=10
@@ -0,0 +1,7 @@
SOCKET_ID=
BUF_MAXSIZE=3000
BUF_MAXTIME=0
FLUSH_FULL=false
HOST_STATE=/xyz/openbmc_project/state/host0
OUT_DIR=/var/lib/obmc/hostlogs
MAX_FILES=10
@@ -0,0 +1,9 @@
FILESEXTRAPATHS:prepend := "${THISDIR}/${PN}/${MACHINE}:"
# Default service instance to install (single-host mode)
DEFAULT_INSTANCE:ethanolx = "ttyS0"
DEFAULT_INSTANCE:daytonax = "ttyVUART0"
SRC_URI:remove = "file://${BPN}.conf"
SRC_URI:append:ethanolx = " file://ttyS0.conf"
SRC_URI:append:daytonax = " file://ttyVUART0.conf"
@@ -0,0 +1 @@
PACKAGECONFIG:append = " log-threshold log-pulse"