blob: f18adbbadd394ca5bac234f473d6084687548f56 [file] [log] [blame]
Patrick Williamsbb79d7c2020-06-11 16:56:16 -05001inherit phosphor-dbus-yaml
2
3LOGGING_YAML_SUBDIRS ??= "xyz/openbmc_project"
4
5do_install_append() {
6 for yaml_d in ${LOGGING_YAML_SUBDIRS} ;
7 do
8 if [ ! -d ${S}/${yaml_d} ];
9 then
10 continue
11 fi
12
13 for yaml_f in $(find ${S}/${yaml_d} -name "*.errors.yaml" -or \
14 -name "*.metadata.yaml") ;
15 do
16 subpath=$(realpath --relative-to=${S} ${yaml_f})
17 install -d $(dirname ${D}${yaml_dir}/$subpath)
18
19 install -m 0644 ${yaml_f} ${D}${yaml_dir}/$subpath
20 done
21 done
22}