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,6 @@
FILESEXTRAPATHS:prepend := "${THISDIR}/${PN}:"
PACKAGECONFIG:remove = " \
external \
intrusion \
"
@@ -0,0 +1,18 @@
SENSOR_CONFIGS ?= "virtual_sensor_config.json"
SRC_URI:append = "\
${@ ' '.join([ 'file://' + x for x in d.getVar('SENSOR_CONFIGS').split()])} \
"
do_install:append() {
# Delete the default one from Meson.
if [ -e "${D}${datadir}/phosphor-virtual-sensor/virtual_sensor_config.json" ]; then
rm "${D}${datadir}/phosphor-virtual-sensor/virtual_sensor_config.json"
fi
# Install the ones from our meta-layer.
install -d ${D}${datadir}/phosphor-virtual-sensor
for s in ${SENSOR_CONFIGS}; do
install -m 0644 ${WORKDIR}/$s ${D}${datadir}/phosphor-virtual-sensor
done
}