Don't hardcode the Linux version to make it easier to overwrite the
Linux provider. There is only one linux-riscv version so it is not
required.
Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
Fix /etc/inittab issue seen when running "runqemu nographic serial":
INIT: Id "AMA0" respawning too fast: disabled for 5 minutes
Signed-off-by: Chin Huat Ang <chinhuat@gmail.com>
The baremetal machines can't be built as bitbake complains about
riscv32/riscv64 being included twice in the PACKAGE_ARCH variable. To
fix this rename the machines to be different from the architecture.
Also remove the QEMU overrides as these are no longer required.
Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
Now that u-boot 2018.11 is supported in Yocto we no longer need custom
options for RISC-V support.
Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
In a multi-BSP env u-boot may be provided by other BSP layers as well so
we need to be explicit about u-boot we need
Signed-off-by: Khem Raj <raj.khem@gmail.com>
clang is not yet supported and when meta-clang is in
layermix things start to fail.
This patch patches by assuming the dependencies
and later adding them to bad recommendations so
they are dropped from runtime deps too
might not work with with dpkg backend
Signed-off-by: Khem Raj <raj.khem@gmail.com>
They result in linking errors, -fstack-protector-strong wants libssp
libdrm errors when using -fstack-protector-strong
drm@sha/xf86drmSL.c.o: relocation R_RISCV_HI20 against `__stack_chk_guard@@GLIBC_2.27' can not be used when making a shared object; recompile with -fPIC
libdrm errors when using fortify options
rm@sha/xf86drm.c.o(.text+0x3ce2): unresolvable R_RISCV_CALL relocation against symbol `strdup@@GLIBC_2.27'
For now just disable the whole shebang
Signed-off-by: Khem Raj <raj.khem@gmail.com>
It is useful to be able to override kernel's provider or version from
local.conf.
For qemuriscv64 machine move PREFERRED_* variables before qemu.inc,
because it sets PREFERRED_PROVIDER to linux-yocto.
Signed-off-by: Taras Kondratiuk <takondra@cisco.com>
Machine-specific packages (like Linux kernel) should have
machine-specific PACKAGE_ARCH that is obtained from MACHINE_ARCH. This
allows to separate their build artifacts in TMPDIR.
Currently all RISC-V machines override MACHINE_ARCH and artifacts for
machine-specific recipes collide. For example kernels of both
qemuriscv64 and freedom-u540 machines will be deployed into the same
$D directory.
Remove MACHINE_ARCH override and set tune PACKAGE_ARCH via
PACKAGE_EXTRA_ARCHS.
Signed-off-by: Taras Kondratiuk <takondra@cisco.com>
Modify freedom-u540 machine to boot off of sd card by default.
Note that there is a bug with the U540's SPI controller that
makes this painfully slow.
Signed-off-by: Moritz Fischer <moritz.fischer@ettus.com>
Preperation patch to supporting something else other then qemu.
While at it removed code that was commented out.
Signed-off-by: Mirza Krak <mirza.krak@endian.se>
The 4.16 kernel doesn't currently seem to be able to come up to a login
prompt. Set the default to 4.15 (which can) for the time-being.
Signed-off-by: Trevor Woerner <twoerner@gmail.com>