Commit Graph

121 Commits

Author SHA1 Message Date
Khem Raj
cb2be0259e setup.sh: Fix typo in defining USER_CLASSES
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2018-09-22 08:34:19 -07:00
Khem Raj
0add9dafa5 setup.sh: Enable additional distro policies
These policies enabled essential features like package management
and ssh server in images, additionally remove static libs and use
uninative

Signed-off-by: Khem Raj <raj.khem@gmail.com>
2018-09-22 07:27:03 -07:00
Khem Raj
9d71c72b43 qemuriscv64.conf,freedom-u540.conf: Pin default libc to glibc
musl is not yet supported
Additionally sync with qemu invocation definitions from OE-Core qemus

Signed-off-by: Khem Raj <raj.khem@gmail.com>
2018-09-22 07:27:03 -07:00
Khem Raj
4bc2cb3584 linux-riscv: Enable virtio cryptodev
This helps with OpenSSL 1.x calling getrandom() API
not hanging on openssh key generation

Signed-off-by: Khem Raj <raj.khem@gmail.com>
2018-09-22 07:27:03 -07:00
Khem Raj
3048b41652 prelink: Remove bbappends and patches
They have landed upstream

Signed-off-by: Khem Raj <raj.khem@gmail.com>
2018-09-07 08:44:10 -07:00
Khem Raj
51b766a7b3 Document building a full featured image with SDK
This can be used for on device building

Signed-off-by: Khem Raj <raj.khem@gmail.com>
2018-09-05 13:30:25 -07:00
Khem Raj
f2ec7afd1f gdb: keep empty gdbserver
gdbserver is still not available but we can keep the empty
package so we can build complex SDKs from OE

Signed-off-by: Khem Raj <raj.khem@gmail.com>
2018-08-29 19:03:01 -07:00
Khem Raj
b7526a3e22 risc-v: Fix packagegroup dependencies for no clang
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>
2018-08-29 18:08:30 -07:00
Khem Raj
e9c5a90783 perf: Disable libunwind support via PACKAGECONFIG
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2018-08-29 18:08:30 -07:00
Khem Raj
12f79e34ef libatomic_ops: Remove using master branch
OE-Core/master now uses 7.6 release where
RISC-V support is available upstream

Signed-off-by: Khem Raj <raj.khem@gmail.com>
2018-08-29 18:08:30 -07:00
Khem Raj
7e95e78074 Set BASH_SOURCE to use new path to oe-init-build-env
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2018-08-29 10:03:31 -07:00
Khem Raj
8fa69a8f27 switch to using OE-Core/bitbake instead of poky
We document using oe-core and bitbake but the environment was setting
for poky, this fixes that, plus riscv64 is not enabled as default tatget
in poky where as it is in oe-core

Signed-off-by: Khem Raj <raj.khem@gmail.com>
2018-08-29 09:56:07 -07:00
Khem Raj
b9351d1e36 Update README formatting
Don't use shell syntax, avoid syntax highlighting
2018-08-29 09:43:03 -07:00
Khem Raj
64b2b1317b Update README
Forgot to mention to cd into riscv-yocto after creating it
2018-08-29 09:41:01 -07:00
Khem Raj
1d3ade5e42 layer.conf: Disable clang when meta-clang is present
Force toolchain to use gcc for riscv64.
We dont have full riscv support in upstream clang
as _yet_

Signed-off-by: Khem Raj <raj.khem@gmail.com>
2018-08-28 12:54:23 -07:00
Alistair Francis
04eef316eb gdb-riscv: Update the RISC-V GDB fork
Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
2018-08-28 11:45:15 -07:00
Alistair Francis
eb3cbcb90a gdb-riscv: Add bison dependency
Add the bison dependency for GDB that is required for newer versions of
GDB.

Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
2018-08-28 11:45:15 -07:00
Alistair Francis
552526019d machine: Build an EXT4 rootFS image
Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
2018-08-27 11:32:03 -07:00
Alistair Francis
dcb61db68d qemu: Remove the RISC-V fork of QEMU
As QEMU 3.0 is now included in OE-Corewe no longer need to use
the RISC-V specific fork.

Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
2018-08-27 11:32:03 -07:00
sungwon.pino
e64b2ee4de Modified kernel bbrecipe commitID and Create Kenrel 4.14 bbrecipe 2018-08-26 11:28:05 -07:00
sungwon.pino
3d52a339fe Update machine kernel version 4.18-rc7 2018-08-07 14:47:49 -07:00
Khem Raj
2c4d407d35 Update to tip of riscv-all branch pre 4.18 release
Addresses issue #20

Signed-off-by: Khem Raj <raj.khem@gmail.com>
2018-08-05 17:27:59 -07:00
Khem Raj
2cf991cc31 add templates for commits and issues
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2018-07-27 07:49:52 -07:00
Khem Raj
a4a81b0abc riscv64: Disable ssp and fortify flags
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>
2018-07-21 11:49:53 -07:00
Khem Raj
09732c2049 linux-riscv: Remove yocto kernel specific kernel-sample.scc
Since we do not have kmeta infrastructure for kernel
the qemu builds fail due to this file not being there and
qemu sort of forcing it.

Signed-off-by: Khem Raj <raj.khem@gmail.com>
2018-07-16 15:33:35 -07:00
Alistair Francis
f157841d37 gdb: Update to latest RISC-V fork
Update to the latest RISC-V GDB and a patch to fix a compilation error

Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
2018-07-16 15:33:08 -07:00
Alistair Francis
ecd5f4ba89 nspr: Remove NSPR patch
RISC-V support is now included in the OE-Core NSPR package, this patch
is no longer required so let's remove it.

Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
2018-07-10 15:41:03 -07:00
Khem Raj
89c77d9ddb qemu-riscv: Switch back to master branch
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2018-06-25 10:12:41 -07:00
Ricardo Salveti
7664795675 qemu-riscv: update to the latest
Signed-off-by: Ricardo Salveti <ricardo@opensourcefoundries.com>
2018-06-22 00:38:31 -07:00
Khem Raj
555e0f1fc4 Document syncing workspace intructions 2018-06-21 15:59:00 -07:00
Khem Raj
fb8ad42aee Disable PIE
It needs some work in glibc "to be looked"

Signed-off-by: Khem Raj <raj.khem@gmail.com>
2018-06-21 15:30:37 -07:00
Khem Raj
677de6e525 qemu-riscv: Update to latest
Adjust to oe-core change to not use autotools bbclass

Signed-off-by: Khem Raj <raj.khem@gmail.com>
2018-06-21 15:30:37 -07:00
Alistair Francis
d1ef5451f7 machine: Use the RISC-V 4.17 kernel
Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
2018-06-21 15:30:16 -07:00
Alistair Francis
11f45f75b3 recipes-kernel: Update to the 4.17 RISC-V Linux kernel
Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
2018-06-21 06:22:29 -07:00
Ricardo Salveti
e07da3d676 riscv-pk: depend on virtual/kernel:do_deploy
bbl_payload requires the kernel deployed artifacts (e.g. vmlinux) during
compile time in order to generate the final bbl binary, so add
virtual/kernel:do_deploy as a do_compile dependency to get the
dependency task in the expected order.

Signed-off-by: Ricardo Salveti <ricardo@opensourcefoundries.com>
2018-05-15 17:31:01 -07:00
Alistair Francis
3adeec9dc3 recipes-devtools/rpm: Remove the beecrypt dependency
beecrypt is no longer included in OE-core (since fb8ca4225f beecrypt:
remove) so remove our dependency on it.

Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
2018-05-08 21:48:56 -07:00
Ricardo Salveti
288d91ac4a libgpg-error: drop patch as it was merged in 1.28
libgpg-error was updated in oe-core to 1.28, which already includes the
patch adding risc-v support.

Signed-off-by: Ricardo Salveti <ricardo@opensourcefoundries.com>
2018-05-07 14:39:21 -07:00
Khem Raj
62aaadbac0 linux-riscv: Update to latest
move riscv-all to 4.17-rc2

Signed-off-by: Khem Raj <raj.khem@gmail.com>
2018-05-05 00:52:57 -07:00
Khem Raj
831a056c89 cv-tools: Update to latest
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2018-05-05 00:52:30 -07:00
Khem Raj
1dfa54ac46 qemu: Update to latest on riscv fork
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2018-05-05 00:51:54 -07:00
Khem Raj
d0ef492974 gdb: Update to 8.1+git
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2018-05-05 00:51:30 -07:00
Taras Kondratiuk
bbbfd9e87d machine: allow to override kernel's provider/version
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>
2018-04-30 18:00:57 -07:00
Taras Kondratiuk
ae10d093f6 riscv-pk: make it machine-specific
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>
2018-04-29 07:19:32 -07:00
Taras Kondratiuk
39a3237db5 machine: remove MACHINE_ARCH override to fix package collision
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>
2018-04-29 07:19:32 -07:00
Moritz Fischer
b708de6a45 recipes-core: sysvinit-inittab: Work around getty issue
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>
2018-04-10 22:12:26 -07:00
Moritz Fischer
c01c8aad5b machine: freedom-u540: Add support for booting from SD card
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>
2018-04-10 22:12:26 -07:00
Moritz Fischer
0473a5ba80 README: Add paragraph on how to use wic images
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>
2018-04-10 22:12:26 -07:00
Moritz Fischer
2056e12220 recipes-devtools: Rename folder to recipes-devtools
Rename the folder to recipes-devtools as most other layers call it.

Signed-off-by: Moritz Fischer <moritz.fischer@ettus.com>
2018-04-10 18:04:25 -07:00
Khem Raj
8a371c99d5 layer.conf: add LAYERSERIES_COMPAT
We need sumo or newer release of OE

Signed-off-by: Khem Raj <raj.khem@gmail.com>
2018-04-06 07:56:25 -07:00
Mirza Krak
7ea142a9ea riscv-initramfs-image: remove WIC fstype
Signed-off-by: Mirza Krak <mirza.krak@endian.se>
2018-03-26 21:51:50 -07:00