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,8 @@
SUMMARY = "Clear boot-once variables"
DESCRIPTION = "Clear u-boot variables used for one-time boot flow"
LICENSE = "Apache-2.0"
LIC_FILES_CHKSUM = "file://${COREBASE}/meta/files/common-licenses/Apache-2.0;md5=89aea4e17d99a7cacdbeed46a0096b10"
inherit obmc-phosphor-systemd
RDEPENDS:${PN} = "${@d.getVar('PREFERRED_PROVIDER_u-boot-fw-utils', True) or 'u-boot-fw-utils'}"
@@ -0,0 +1,16 @@
[Unit]
Description=Clear one time boot overrides
ConditionFileNotEmpty=/etc/fw_env.config
RequiresMountsFor=/run /sbin /etc
[Service]
Type=oneshot
RemainAfterExit=yes
# It took 7 seconds to erase and write flash, be conservative
TimeoutStartSec=60
Restart=no
ExecStart=/sbin/fw_setenv openbmconce
ExecStart=/sbin/fw_setenv openbmconce