Commit Graph

60 Commits

Author SHA1 Message Date
Mirza Krak
fe8fa317aa linux-riscv: clean-up
Cosmetic clean-up mostly based on the linux-yocto-template

Signed-off-by: Mirza Krak <mirza.krak@endian.se>
2018-03-20 14:51:37 -07:00
Trevor Woerner
21d7d83081 qemuriscv64: pin kernel to 4.15
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>
2018-03-20 14:41:07 -07:00
Khem Raj
be1cd58519 gdb-riscv: Switch to using upstream master + OE patches
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2018-03-17 20:23:36 -07:00
Khem Raj
9dfec0496f qemu_riscv.bb: Only build for risc-v when doing target builds
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2018-03-17 19:33:28 -07:00
Khem Raj
1024bab3e1 qemuriscv64.conf: Enable prelink
- 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>
2018-03-17 19:17:24 -07:00
Khem Raj
4702abe1d4 riscv-qemu: Switch to master branch
qemu is now upstream so start using master branch

Signed-off-by: Khem Raj <raj.khem@gmail.com>
2018-03-17 19:16:20 -07:00
Khem Raj
aba18fdc33 prelink: Fix segfaults in prelink-rtld
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>
2018-03-17 19:14:19 -07:00
Khem Raj
9ffc522446 linux-riscv: Add earlyprintk.cfg for qemu
- early printk is must for qemu to work
- Remove dead code
- Update to tip of respective branches

Signed-off-by: Khem Raj <raj.khem@gmail.com>
2018-03-17 19:11:59 -07:00
Khem Raj
dfc6f46d96 README.md: Monitor master branch in travis 2018-03-17 18:27:00 -07:00
Khem Raj
e41a7ba4a4 Correct typo in github url in travis shield 2018-03-16 19:01:57 -07:00
Khem Raj
bb86c39270 travis: Use mkdir -p so we can reuse the existing directories
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2018-03-16 18:32:49 -07:00
Khem Raj
993fd422a1 travis: Enable repo init color prompt
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2018-03-16 18:30:29 -07:00
Khem Raj
e503d131b1 travis.yml: Do not use multi-line commands
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2018-03-16 18:27:19 -07:00
Khem Raj
55879039a4 Add travis shield 2018-03-16 18:24:23 -07:00
Khem Raj
f2af47cad0 Add travis CI configuration
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2018-03-16 18:18:11 -07:00
Khem Raj
a6cec434af Add license logo 2018-03-16 17:52:50 -07:00
Khem Raj
d8d012b8ae Update build instructions 2018-03-16 17:46:11 -07:00
Khem Raj
b9717f0341 Add setup scripts
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2018-03-16 17:16:53 -07:00
Khem Raj
943dedf192 linux-riscv: Add recipe for 4.16 upcoming release
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2018-03-16 16:56:05 -07:00
Khem Raj
1741996b09 linux-riscv: Drop riscv64 baremetal from compatible machine
baremetal does not run linux kernel

Signed-off-by: Khem Raj <raj.khem@gmail.com>
2018-03-16 16:55:27 -07:00
Taras Kondratiuk
16a13a6328 linux-riscv: use in-tree defconfig
It is easier to update kernel version if in-tree defconfig is used.

Signed-off-by: Taras Kondratiuk <takondra@cisco.com>
2018-03-16 15:11:01 -07:00
Khem Raj
80e2da578c machine: Add machines for riscv32 baremetal
- 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>
2018-03-16 14:57:23 -07:00
Khem Raj
c2fde414a4 qemuriscv64.conf: Add description
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2018-03-11 22:08:23 -07:00
Khem Raj
b993d03686 init-ifupdown: Add interfaces file for qemuriscv64
This is needed for kernel passed IP config to work

Signed-off-by: Khem Raj <raj.khem@gmail.com>
2018-03-10 23:59:34 -08:00
Khem Raj
27a5e1ebca qemu_riscv: Use riscv-all branch and drop upstreamed patches
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2018-03-10 22:49:22 -08:00
Khem Raj
56a0ee8c59 prelink: Add risc-v support
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2018-03-10 15:23:08 -08:00
Khem Raj
6372f14546 libatomic-ops: Fix host contamination [host-user-contaminated] QA warning
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2018-03-10 11:10:41 -08:00
Khem Raj
c359e72fd0 libatomic-ops: Switch to using master
RISC-V support is not in a release yet

Signed-off-by: Khem Raj <raj.khem@gmail.com>
2018-03-10 11:07:05 -08:00
Khem Raj
e7ea596e4b qemuriscv64: Disable prelink
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2018-03-10 11:06:43 -08:00
Khem Raj
6a23d8afda qemuriscv64: Define QEMUVERSION = riscv
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2018-03-10 10:31:25 -08:00
Khem Raj
5b3d178967 README.md: Fix typo
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2018-03-09 18:24:30 -08:00
Mirza Krak
f2149e9405 libgpg-erro: add riscv support
Backported patch from upstream

Signed-off-by: Mirza Krak <mirza.krak@endian.se>
2018-03-09 18:22:01 -08:00
Khem Raj
60d589c75e README.md: Add info on running the image in qemu
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2018-03-09 14:14:53 -08:00
Khem Raj
b2775cd4c6 qemuriscv64.conf: Customize qemuboot options
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2018-03-09 14:01:16 -08:00
Khem Raj
e3c8bac3d9 Linux: Drop unused files
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2018-03-09 12:15:01 -08:00
Khem Raj
e29112279d linux-kernel: Update the defconfig for 4.15 release
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2018-03-09 12:08:48 -08:00
Khem Raj
1408c1525e qemuriscv64.conf: Add ttyS0 instead of ttyHTIF0
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2018-03-09 12:08:14 -08:00
Khem Raj
d964c6450f riscv-tools: Delete dead code
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2018-03-09 08:49:45 -08:00
Khem Raj
7ddf71a820 riscv-pk.bb: Add do_compile to depends for do_deploy
eases out doing bitbake -cdeploy riscv-pk

Signed-off-by: Khem Raj <raj.khem@gmail.com>
2018-03-09 08:49:01 -08:00
Khem Raj
3358757183 qemuriscv64.conf: Build riscv-pk always to get new bbl
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2018-03-09 02:59:29 -08:00
Khem Raj
1921565bbf linux-riscv: cleanup
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2018-03-09 02:58:52 -08:00
Khem Raj
1f1b15110c riscv-tools: Upgrade to latest
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2018-03-09 02:39:16 -08:00
Khem Raj
ccb6f44539 qemu-riscv: Switch to master-next
Use rebasable=1 so we can still build it
after upstream rebases

Signed-off-by: Khem Raj <raj.khem@gmail.com>
2018-03-09 02:38:24 -08:00
Khem Raj
230631d0f0 glibc: Drop glibc 2.26 bbappends
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2018-03-09 02:29:03 -08:00
Khem Raj
b8db3af843 qemuriscv64: Switch to riscv forks of qemu and gdb
Use linux-libc-headers from oe-core

Signed-off-by: Khem Raj <raj.khem@gmail.com>
2018-03-08 23:07:14 -08:00
Khem Raj
db0528a843 gdb: Add riscv version
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2018-03-08 23:04:24 -08:00
Khem Raj
d33193b5b0 Change option to enable beecrypt
New way is to use --with-crypto

Signed-off-by: Khem Raj <raj.khem@gmail.com>
2018-03-08 23:03:43 -08:00
Khem Raj
c994b66877 qemu: Switch to riscv fork
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2018-03-08 23:03:13 -08:00
Khem Raj
bf6ad53b1c linux-riscv: Upgrade to 4.15
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2018-03-08 23:02:34 -08:00
Khem Raj
63bd5de703 binutils: Use binutils 2.30 from oe-core
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2018-03-08 23:01:25 -08:00