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,31 @@
FILESEXTRAPATHS:prepend := "${THISDIR}/${PN}:"
IPMB_CHANNELS ?= ""
python do_ipmb_channels() {
import json
channels = []
for channel in d.getVar('IPMB_CHANNELS').split():
channels.append({
"type": "ipmb",
"slave-path": channel,
"bmc-addr": 32,
"remote-addr": 64,
"devIndex": len(channels)
})
data = { "channels" : channels }
path = os.path.join(d.getVar('D') + d.getVar('datadir'),
'ipmbbridge', 'ipmb-channels.json')
with open(path, 'w') as f:
json.dump(data, f, indent=4)
}
do_ipmb_channels[vardeps] += "IPMB_CHANNELS"
addtask ipmb_channels after do_install before do_package
do_install:append() {
install -d ${D}${datadir}/ipmbbridge
}