Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable to generate the image on AArch64 architecture #9

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 13 additions & 3 deletions runme.sh
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,12 @@ ROOTDIR=`pwd`

REPO_PREFIX=`git log -1 --pretty=format:%h || echo "unknown"`

export PATH=$ROOTDIR/build/toolchain/gcc-arm-11.2-2022.02-x86_64-aarch64-none-elf/bin:$PATH
CPU_ARCH=$(uname -m)
if [ "x$CPU_ARCH" == "xaarch64" ]; then
export PATH=$ROOTDIR/build/toolchain/gcc-arm-11.2-2022.02-aarch64-aarch64-none-elf/bin:$PATH
else
export PATH=$ROOTDIR/build/toolchain/gcc-arm-11.2-2022.02-x86_64-aarch64-none-elf/bin:$PATH
fi
export CROSS_COMPILE=aarch64-none-elf-
export ARCH=arm64
PARALLEL=$(getconf _NPROCESSORS_ONLN) # Amount of parallel jobs for the builds
Expand All @@ -82,8 +87,13 @@ fi
if [[ ! -d $ROOTDIR/build/toolchain ]]; then
mkdir -p $ROOTDIR/build/toolchain
cd $ROOTDIR/build/toolchain
wget https://developer.arm.com/-/media/Files/downloads/gnu/11.2-2022.02/binrel/gcc-arm-11.2-2022.02-x86_64-aarch64-none-elf.tar.xz
tar -xvf gcc-arm-11.2-2022.02-x86_64-aarch64-none-elf.tar.xz
if [ "x$CPU_ARCH" == "xaarch64" ]; then
wget https://developer.arm.com/-/media/Files/downloads/gnu/11.2-2022.02/binrel/gcc-arm-11.2-2022.02-aarch64-aarch64-none-elf.tar.xz
tar -xvf gcc-arm-11.2-2022.02-aarch64-aarch64-none-elf.tar.xz
else
wget https://developer.arm.com/-/media/Files/downloads/gnu/11.2-2022.02/binrel/gcc-arm-11.2-2022.02-x86_64-aarch64-none-elf.tar.xz
tar -xvf gcc-arm-11.2-2022.02-x86_64-aarch64-none-elf.tar.xz
fi
fi

###############################################################################
Expand Down