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>
bbl has a machine specific payload (vmlinux), so it should be
machine-specific too. Otherwise riscv-pk build for different machines
will collide.
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>
This is a workaround for the naming of the console.
This doesn't work around the issue for systemd based builds.
Signed-off-by: Moritz Fischer <moritz.fischer@ettus.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>
Add a paragraph on how to use the wic images to run on hardware
Suggested-by: Alistair Francis <alistair.francis@wdc.com>
Signed-off-by: Moritz Fischer <moritz.fischer@ettus.com>
The "default" boot mode at the moment is to bundle a ramdisk image in
the kernel and mount root in a ramfs.
This image is suitable to bundle with the kernel but it has minimal
features and basicly just boots.
Signed-off-by: Mirza Krak <mirza.krak@endian.se>
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>
- Qemu preferred versions are now in OE-core so drop it here
- Do not strip .comment, it seems to work without it
- Drop disabling USE_VT, we need it on qemu
- Pin 4.16 as default kernel
- ext3 is not necessary so drop enforcing it into image fstypes
- Make hard assignment for SERIAL_CONSOLES
Signed-off-by: Khem Raj <raj.khem@gmail.com>
prelink-rtld was segfaulting because prelink looks for
libs in lib64 folder for 64-bit machines, however on riscv
the directories are simply /lib and /usr/lib
Secondly define the ldso name for riscv
backport another patch to fix DT_NEEDED processing
Signed-off-by: Khem Raj <raj.khem@gmail.com>
- Organize the machines a bit better
- Add baremetal machine configs for 32/64 bit
so we can generate SDKs for zephyr and other RTOSes
- Fixup tune files to match BSP layer norms
Signed-off-by: Khem Raj <raj.khem@gmail.com>