blob: 89d031caafb63522c4e43a7ca3d565e9f5aa64cb [file] [log] [blame]
Patrick Williams1f2b9a42020-06-11 16:56:16 -05001inherit phosphor-dbus-yaml
2
Patrick Williams891b1442020-06-12 06:04:25 -05003LOGGING_YAML_SUBDIRS ??= "${OBMC_ORG_YAML_SUBDIRS}"
Patrick Williams1f2b9a42020-06-11 16:56:16 -05004
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}