mirror of
https://github.com/thead-yocto-mirror/meta-riscv
synced 2026-09-04 07:44:45 +02:00
b7526a3e22e6458d00b55d25bcfc9eb8dacaee19
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>
meta-riscv
RISC-V Architecture Layer for OpenEmbedded/Yocto
Description
This is the general hardware specific BSP overlay for the RISC-V based devices.
More information can be found at: https://riscv.org/ (Official Site)
The core BSP part of meta-riscv should work with different OpenEmbedded/Yocto distributions and layer stacks, such as:
- Distro-less (only with OE-Core).
- Angstrom.
- Yocto/Poky (main focus of testing).
Dependencies
This layer depends on:
- URI: git://github.com/openembedded/openembedded-core
- branch: master
- revision: HEAD
- URI: git://github.com/openembedded/bitbake
- branch: master
- revision: HEAD
Quick Start
Note: You only need this if you do not have an existing Yocto Project build environment.
Make sure to install the repo command by Google first.
Create workspace
mkdir riscv-yocto && cd riscv-yocto
repo init -u git://github.com/riscv/meta-riscv -b master -m tools/manifests/riscv-yocto.xml
repo sync
repo start work --all
Update existing workspace
In order to bring all layers uptodate with upstream
cd riscv-yocto
repo sync
repo rebase
Setup Build Environment
. ./meta-riscv/setup.sh
Build Image
bitbake core-image-full-cmdline
Run in QEMU
runqemu nographic
Running wic.gz image on hardware
The output of the build will be a <image>.wic.gz file. You can write this file to an sd card using:
$ zcat <image>-<machine>.wic.gz | sudo dd of=/dev/sdX bs=4M iflag=fullblock oflag=direct conv=fsync status=progress
Maintainer(s)
- Khem Raj
<raj dot khem at gmail.com>
Languages
BitBake
72.3%
Makefile
22.2%
Shell
3%
CMake
2.5%