<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Jun 14, 2018 at 3:45 PM, Alistair Francis <span dir="ltr"><<a href="mailto:alistair.francis@wdc.com" target="_blank">alistair.francis@wdc.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Signed-off-by: Alistair Francis <<a href="mailto:alistair.francis@wdc.com">alistair.francis@wdc.com</a>><br>
---<br>
meta/recipes-kernel/linux/<wbr>linux-yocto.inc | 4 ++++<br>
meta/recipes-kernel/linux/<a href="http://linux-yocto_4.15.bb" rel="noreferrer" target="_blank">linu<wbr>x-yocto_4.15.bb</a> | 5 ++++-<br>
2 files changed, 8 insertions(+), 1 deletion(-)<br>
<br>
diff --git a/meta/recipes-kernel/linux/<wbr>linux-yocto.inc b/meta/recipes-kernel/linux/<wbr>linux-yocto.inc<br>
index 95ec2a2b41..70a13cdd1e 100644<br>
--- a/meta/recipes-kernel/linux/<wbr>linux-yocto.inc<br>
+++ b/meta/recipes-kernel/linux/<wbr>linux-yocto.inc<br>
@@ -26,6 +26,10 @@ DEPENDS_append_nios2 = " libgcc"<br>
KERNEL_CC_append_nios2 = " ${TOOLCHAIN_OPTIONS}"<br>
KERNEL_LD_append_nios2 = " ${TOOLCHAIN_OPTIONS}"<br>
<br>
+DEPENDS_append_riscv64 = " libgcc"<br>
+KERNEL_CC_append_riscv64 = " ${TOOLCHAIN_OPTIONS} ${SECURITY_NOPIE_CFLAGS}"<br>
+KERNEL_LD_append_riscv64 = " -no-pie"<br>
+<br>
KERNEL_FEATURES_append_<wbr>qemuall=" features/debug/printk.scc"<br>
<br>
# A KMACHINE is the mapping of a yocto $MACHINE to what is built<br>
diff --git a/meta/recipes-kernel/linux/<a href="http://linux-yocto_4.15.bb" rel="noreferrer" target="_blank">li<wbr>nux-yocto_4.15.bb</a> b/meta/recipes-kernel/linux/<a href="http://linux-yocto_4.15.bb" rel="noreferrer" target="_blank">li<wbr>nux-yocto_4.15.bb</a><br>
index 693670c613..4ea368a011 100644<br>
--- a/meta/recipes-kernel/linux/<a href="http://linux-yocto_4.15.bb" rel="noreferrer" target="_blank">li<wbr>nux-yocto_4.15.bb</a><br>
+++ b/meta/recipes-kernel/linux/<a href="http://linux-yocto_4.15.bb" rel="noreferrer" target="_blank">li<wbr>nux-yocto_4.15.bb</a><br>
@@ -36,7 +36,10 @@ KCONF_BSP_AUDIT_LEVEL = "2"<br>
<br>
KERNEL_DEVICETREE_qemuarm = "versatile-pb.dtb"<br>
<br>
-COMPATIBLE_MACHINE = "qemuarm|qemuarm64|qemux86|<wbr>qemuppc|qemumips|qemumips64|<wbr>qemux86-64"<br>
+KBUILD_DEFCONFIG_qemuriscv64 = "defconfig"<br>
+KCONFIG_MODE_qemuriscv64 = "--alldefconfig"<br></blockquote><div><br></div><div>This doesn't belong in linux-yocto.</div><div><br></div><div>We use defined BSP and configuration fraagments, not in-tree defconfigs</div><div><br></div><div>I'm happy to add a BSP definition to the kernel-cache, but this isn't the way to add configuration support for the linux-yocto trees</div><div><br></div><div>Cheers,</div><div><br></div><div>Bruce</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
+<br>
+COMPATIBLE_MACHINE = "qemuarm|qemuarm64|qemux86|<wbr>qemuppc|qemumips|qemumips64|<wbr>qemux86-64|qemurisc532|<wbr>qemuriscv64"<br>
<br>
# Functionality flags<br>
KERNEL_EXTRA_FEATURES ?= "features/netfilter/netfilter.<wbr>scc"<br>
<span class="HOEnZb"><font color="#888888">-- <br>
2.17.1<br>
<br>
-- <br>
______________________________<wbr>_________________<br>
Openembedded-core mailing list<br>
<a href="mailto:Openembedded-core@lists.openembedded.org">Openembedded-core@lists.<wbr>openembedded.org</a><br>
<a href="http://lists.openembedded.org/mailman/listinfo/openembedded-core" rel="noreferrer" target="_blank">http://lists.openembedded.org/<wbr>mailman/listinfo/openembedded-<wbr>core</a><br>
</font></span></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature">"Thou shalt not follow the NULL pointer, for chaos and madness await thee at its end"</div>
</div></div>