Skip to content

Commit

Permalink
Add support for mintelf toolchains
Browse files Browse the repository at this point in the history
  • Loading branch information
th-otto committed Apr 30, 2024
1 parent 8785170 commit 8bd31cf
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 11 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,9 @@ jobs:
build:
runs-on: ubuntu-20.04
strategy:
fail-fast: false
matrix:
cross_tool: [ "m68k-atari-mint" ]
cross_tool: [ "m68k-atari-mint", "m68k-atari-mintelf" ]
steps:
- uses: actions/checkout@v4
- name: Install SSH keys
Expand Down
3 changes: 1 addition & 2 deletions .scripts/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,8 @@

export ACLOCAL=aclocal
export AUTOMAKE=automake
CROSS_TOOL=${CROSS_TOOL:-m68k-atari-mint}
# wrong: we need the cross-compiler version here
# CC=${CROSS_TOOL}-gcc RANLIB=m68k-atari-mint-ranlib ./configure --prefix=/usr --disable-nls --host=${CROSS_TOOL} --target=${CROSS_TOOL} && make
# CC=${CROSS_TOOL}-gcc RANLIB=${CROSS_TOOL}-ranlib ./configure --prefix=/usr --disable-nls --host=${CROSS_TOOL} --target=${CROSS_TOOL} && make

CC=gcc ./configure --prefix=/usr --disable-nls --target=${CROSS_TOOL}

Expand Down
4 changes: 0 additions & 4 deletions .scripts/deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -73,10 +73,6 @@ upload_file "$ARCHIVE_PATH" "${UPLOAD_DIR}/${PROJECT_DIR}/${ARCHIVE_NAME}"
if test -z "${CPU_TARGET}"
then
link_file "$ARCHIVE_NAME" "${PROJECT_DIR}-${toolsuffix}-latest.${DEPLOY_ARCHIVE}"
# traditionally, that link did not contain the cross toolchain suffix
if test "$toolsuffix" = "mint"; then
link_file "$ARCHIVE_NAME" "${PROJECT_DIR}-latest.${DEPLOY_ARCHIVE}"
fi
fi

echo ${PROJECT_NAME}-${PROJECT_VERSION}-${SHORT_ID} > .latest_version
Expand Down
2 changes: 1 addition & 1 deletion .scripts/install-freemint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ exit 0

DOWNLOAD_DIR=http://tho-otto.de/snapshots
CROSS_TOOL=${CROSS_TOOL:-m68k-atari-mint}
SYSROOT_DIR=${SYSROOT_DIR:-"/usr/$CROSS_TOOL/sys-root/usr"}
SYSROOT_DIR=${SYSROOT_DIR:-"/usr/$CROSS_TOOL/sys-root"}

sudo mkdir -p "${SYSROOT_DIR}" && cd "${SYSROOT_DIR}"

Expand Down
5 changes: 2 additions & 3 deletions .scripts/setup_env.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,8 @@ BRANCH=$(echo "${GITHUB_REF}" | cut -d '/' -f 3)
if test "$CPU_TARGET" != ""; then
echo "CPU_TARGET=$CPU_TARGET" >> $GITHUB_ENV
fi
if test "$CROSS_TOOL" != ""; then
echo "CROSS_TOOL=$CROSS_TOOL" >> $GITHUB_ENV
fi
CROSS_TOOL=${CROSS_TOOL:-m68k-atari-mint}
echo "CROSS_TOOL=$CROSS_TOOL" >> $GITHUB_ENV

# GITHUB_HEAD_REF is only set for pull requests
if [ "${GITHUB_HEAD_REF}" = "" ]
Expand Down

0 comments on commit 8bd31cf

Please sign in to comment.