Initial commit
This commit is contained in:
@@ -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
|
||||
}
|
||||
Reference in New Issue
Block a user