Skip to content

Commit

Permalink
Add 64bit build option
Browse files Browse the repository at this point in the history
  • Loading branch information
hpvb committed Jul 24, 2024
1 parent 8efb0c6 commit f457d3b
Show file tree
Hide file tree
Showing 2 changed files with 3,541 additions and 0 deletions.
26 changes: 26 additions & 0 deletions build-sdk64.sh
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-badgeros64 .config
toolchain_prefix=riscv64-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"
Loading

0 comments on commit f457d3b

Please sign in to comment.