vanadis ~ # cat /usr/local/portage/app-misc/twoleveltest/twoleveltest-0.ebuild
EAPI=7
SLOT=0
KEYWORDS="riscv"
S="${WORKDIR}"
src_install() {
echo "hello" > foobar
insinto /usr/lib64/lp64d
doins foobar
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FW upload starts with a packet of type 8: | |
byte 0 : 00 | |
byte 1 : 08 = FW upload start command | |
byte 2 : 03 = packet sequence number | |
byte 3 : 01 = upload protocol version? Must be 1 | |
byte 4-5 : 00 00 = total number of bytes (16-bit little endian), 0 means 64K (max size) | |
byte 6-7 : 7e 04 = total number of data blocks (16-bit little endian) | |
byte 8-9 : 00 00 = ? (not used) | |
byte 10: 39 = bytes of flash data per data block (decimal: 57) (not used) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# compile with: gcc -m32 -static -nostdlib -o hello hello.s | |
.text | |
.globl _start | |
_start: | |
bl 1f | |
1: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/src/cmd/link/internal/ld/config.go b/src/cmd/link/internal/ld/config.go | |
index 60b6491859..2d8f96408e 100644 | |
--- a/src/cmd/link/internal/ld/config.go | |
+++ b/src/cmd/link/internal/ld/config.go | |
@@ -247,9 +247,6 @@ func determineLinkMode(ctxt *Link) { | |
} | |
ctxt.LinkMode = LinkInternal | |
case "1": | |
- if objabi.GOARCH == "ppc64" { | |
- Exitf("external linking requested via GO_EXTLINK_ENABLED but not supported for %s/ppc64", objabi.GOOS) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1) Build the Docker at https://github.com/gregwebs/ghc-docker-dev.git | |
for the target arch | |
2) Inside the Docker, make a manual build from the upstreams ghc | |
sources, with all the Debian patches applied, with a prefix of | |
/tmp/ghcfoo | |
3) Copy /tmp/ghcfoo from the Docker to the target system | |
4) Set up /etc/portage/env/dev-lang/ghc to add the ghc binary in | |
/tmp/ghcfoo to the path | |
5) Build the ebuild with USE=ghcbootstrap | |
6) Delete the /etc/portage/env file and rebuild the ebuild again, to |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
version="$@" | |
if [ -z "$version" ]; then | |
version="`equery l -F '$fullversion' -p dev-lang/ghc | tail -1`" | |
fi | |
PKGDIR="/tmp/`uname -m`/packages" | |
[ -d "$PKGDIR" ] || mkdir -p "$PKGDIR" | |
export PKGDIR | |
CFLAGS="-O2 -pipe" | |
export CFLAGS |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Debian patches needed for riscv64: | |
latomic-subword.patch | |
Debian patches needed for ppc (32-bit): | |
latomic-subword.patch | |
latomic-64bit.patch | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Copyright Oliver Kowalke 2016. | |
// Distributed under the Boost Software License, Version 1.0. | |
// (See accompanying file LICENSE_1_0.txt or copy at | |
// http://www.boost.org/LICENSE_1_0.txt) | |
// libcontext adaptation by Marcus Comstedt 2022 | |
#include <cstdlib> | |
#include <iostream> | |
#include <memory> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FEATURES=test USE=test emerge -1a dev-haskell/mtl dev-haskell/text dev-haskell/fail dev-haskell/transformers dev-haskell/parsec dev-haskell/transformers-compat dev-haskell/cabal dev-haskell/tagged dev-haskell/splitmix dev-haskell/primitive dev-haskell/colour dev-haskell/nanospec dev-haskell/cabal-doctest dev-haskell/th-abstraction dev-haskell/clock dev-haskell/setenv dev-haskell/stm dev-haskell/random dev-haskell/call-stack dev-haskell/ansi-terminal dev-haskell/quickcheck dev-haskell/hunit dev-haskell/tf-random dev-haskell/quickcheck-io dev-haskell/hspec-expectations | |
FEATURES=-test USE=-test emerge -1a dev-haskell/hspec-discover dev-haskell/hspec-core # check only these 2 are merged | |
FEATURES=test USE=test emerge -1a dev-haskell/hspec-discover dev-haskell/hspec-core | |
FEATURES=test USE=test emerge -a @preserved-rebuild # Should rebuild dev-haskell/hspec | |
Only three rebuilds are needed; dev-haskell/hspec-discover dev-haskell/hspec-core and dev-haskell/hspec | |
Build list for first command (25 builds) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM ubuntu:jammy | |
ENV DEBIAN_FRONTEND=noninteractive | |
RUN sed -i -e '/deb-src/s/^#//' /etc/apt/sources.list && apt-get update | |
RUN apt-get install -y --no-install-recommends dpkg-dev | |
WORKDIR /tmp | |
RUN apt-get source breezy |
OlderNewer