forked from buildroot/buildroot
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
3,512 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
FROM almalinux:8 | ||
|
||
RUN yum -y update && \ | ||
yum -y install make ncurses-devel which unzip perl cpio rsync fileutils bc bzip2 gzip sed git python3 file patch wget perl-Thread-Queue perl-Data-Dumper perl-ExtUtils-MakeMaker perl-IPC-Cmd gcc gcc-c++ && \ | ||
yum clean all | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
#!/bin/bash | ||
set -e | ||
|
||
if which podman &> /dev/null; then | ||
container=podman | ||
elif which docker &> /dev/null; then | ||
container=docker | ||
else | ||
echo "Podman or docker have to be in \$PATH" | ||
exit 1 | ||
fi | ||
|
||
function build_linux_sdk() { | ||
|
||
cp config-badgeros .config | ||
toolchain_prefix=riscv32-badgeros-linux-gnu | ||
|
||
${container} build -f Dockerfile.linux-builder -t badgeros-buildroot-builder-linux | ||
${container} run -it --rm -v $(pwd):/tmp/buildroot:z -w /tmp/buildroot -e FORCE_UNSAFE_CONFIGURE=1 --userns=keep-id badgeros-buildroot-builder-linux bash -c "make clean; make syncconfig; make sdk" | ||
} | ||
|
||
build_linux_sdk | ||
|
||
echo | ||
echo "***************************************" | ||
echo "Build succesful your toolchain is in output/images/${toolchain_prefix}_sdk-buildroot.tar.gz" |
Oops, something went wrong.