From 43b61b7029b4e566766ee8c36b59efe826326d74 Mon Sep 17 00:00:00 2001 From: Patrick Williams Date: Fri, 24 Feb 2017 13:04:06 -0600 Subject: ipmi-whitelist: fix compile issue ipmi-whitelists were not working correctly when restored from sstate due to incorrect path locations in the bbclass. Files being installed with the do_install step were not associated with the package because they were placed in the wrong directory. By placing in the right directory, they are placed into the sstate file and restored correctly. The files were also installed into /etc and move to /usr/share. This matches what is being done for the mrw files (see phosphor-ipmi-fru.bbclass for example). Change-Id: I1881d383d4d9d7d3098411fa83c85e49c3a08560 Signed-off-by: Patrick Williams --- meta-phosphor/classes/phosphor-ipmi-host-whitelist.bbclass | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'meta-phosphor/classes/phosphor-ipmi-host-whitelist.bbclass') diff --git a/meta-phosphor/classes/phosphor-ipmi-host-whitelist.bbclass b/meta-phosphor/classes/phosphor-ipmi-host-whitelist.bbclass index a13b0b157..f2b041fe9 100644 --- a/meta-phosphor/classes/phosphor-ipmi-host-whitelist.bbclass +++ b/meta-phosphor/classes/phosphor-ipmi-host-whitelist.bbclass @@ -2,7 +2,7 @@ # packages WHITELIST ?= "${PN}.conf" -INSTALLDIR = "${sysconfdir}/phosphor-ipmi-host/" +INSTALLDIR = "${D}${datadir}/phosphor-ipmi-host/" python phosphor_ipmi_host_whitelist_postinstall() { def install_whitelist(d): @@ -24,4 +24,4 @@ python phosphor_ipmi_host_whitelist_postinstall() { install_whitelist(d) } -do_populate_sysroot[postfuncs] += "phosphor_ipmi_host_whitelist_postinstall" +do_install[postfuncs] += "phosphor_ipmi_host_whitelist_postinstall" -- cgit v1.2.3