<div dir="ltr"><div dir="ltr">On Mon, 9 Sep 2019 at 12:58, Zheng Ruoqin &lt;<a href="mailto:zhengrq.fnst@cn.fujitsu.com">zhengrq.fnst@cn.fujitsu.com</a>&gt; wrote:<br></div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">         rm -rf ${D}/var<br>
+        install -d ${D}/${SDKTARGETSYSROOT}/etc/rpm<br></blockquote><div><br></div><div>Why not simply ${D}/etc/rpm? <br></div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">+        sed -i &#39;s/-nativesdk//g&#39; ${D}/${SDKTARGETSYSROOT}/etc/rpmrc<br>
+        sed -i &#39;s/-/_/&#39; ${D}/${SDKTARGETSYSROOT}/etc/rpmrc<br></blockquote><div><br></div><div>What do these two sed commands do? If we create /etc/rpmrc just above, can it have the right content from the beginning?<br></div><div>                      &quot;<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
+FILES_${PN}_append_class-nativesdk += &quot;${SDKTARGETSYSROOT}&quot;<br></blockquote><div><br></div><div>Same question: why is ${SDKTARGETSYSROOT} needed? The configuration files should be in /etc, and rpm should be instructed to pick them up from there, same way as it is done for -native variant when building an image.</div><div><br></div><div>Alex<br></div></div></div>