From: Richard W.M. Jones Date: Fri, 5 Aug 2016 19:45:14 +0000 (+0100) Subject: Add CONFIG_CMDLINE to kernel. X-Git-Url: http://git.annexia.org/?a=commitdiff_plain;ds=sidebyside;h=4ffeebe0fd904964ebee6e7d1e063b80571fc4ec;hp=77062fa6b4a9ffb28b3108131e7407d294e128f8;p=fedora-riscv.git Add CONFIG_CMDLINE to kernel. Required when using Spike. See: https://stackoverflow.com/questions/32846037/how-to-specify-kernel-parameters-in-spike-riscv --- diff --git a/Makefile b/Makefile index 0d32353..96da1ca 100644 --- a/Makefile +++ b/Makefile @@ -252,7 +252,10 @@ stage3-kernel/linux-$(KERNEL_VERSION)/vmlinux: git checkout -f linux-4.1.y-riscv && \ make mrproper && \ make ARCH=riscv defconfig && \ - make ARCH=riscv CONFIG_CROSS_COMPILE=riscv64-unknown-elf- vmlinux + make ARCH=riscv \ + CONFIG_CROSS_COMPILE=riscv64-unknown-elf- \ + CONFIG_CMDLINE="root=/dev/htifblk0 init=/bin/bash" \ + vmlinux ls -l $@ # Build an original (x86-64) chroot using supermin. We then aim to