mirror of
				https://github.com/bensuperpc/dockcross.git
				synced 2025-11-04 01:46:24 +01:00 
			
		
		
		
	Merge pull request #557 from bensuperpc/add_windows_ARM64
Add windows arm64 and armv7
This commit is contained in:
		
							
								
								
									
										6
									
								
								.github/workflows/main.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										6
									
								
								.github/workflows/main.yml
									
									
									
									
										vendored
									
									
								
							@@ -53,9 +53,9 @@ jobs:
 | 
			
		||||
          linux-x64-clang, linux-s390x, linux-x64, linux-x86, 
 | 
			
		||||
          linux-mips, linux-ppc64le, web-wasm,
 | 
			
		||||
          manylinux2014-x64, manylinux2014-x86,
 | 
			
		||||
          windows-static-x64, windows-static-x64-posix, windows-static-x86, 
 | 
			
		||||
          windows-shared-x64, windows-shared-x64-posix, windows-shared-x86, 
 | 
			
		||||
          linux-riscv64, linux-riscv32, linux-m68k-uclibc, linux-x64-tinycc, linux-xtensa-uclibc]
 | 
			
		||||
          windows-static-x64, windows-static-x64-posix, windows-static-x86, windows-armv7,
 | 
			
		||||
          windows-shared-x64, windows-shared-x64-posix, windows-shared-x86, windows-arm64, 
 | 
			
		||||
          linux-riscv64, linux-riscv32, linux-m68k-uclibc, linux-xtensa-uclibc, linux-x64-tinycc]
 | 
			
		||||
    steps:
 | 
			
		||||
      - uses: actions/checkout@v2
 | 
			
		||||
      - uses: actions/download-artifact@v2
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										6
									
								
								Makefile
									
									
									
									
									
								
							
							
						
						
									
										6
									
								
								Makefile
									
									
									
									
									
								
							@@ -19,14 +19,14 @@ STANDARD_IMAGES = android-arm android-arm64 android-x86 android-x86_64 \
 | 
			
		||||
	linux-armv6 linux-armv6-lts linux-armv6-musl \
 | 
			
		||||
	linux-armv7l-musl linux-armv7 linux-armv7a \
 | 
			
		||||
	linux-mips linux-ppc64le linux-riscv64 linux-riscv32 linux-xtensa-uclibc \
 | 
			
		||||
	windows-static-x86 windows-static-x64 windows-static-x64-posix \
 | 
			
		||||
	windows-shared-x86 windows-shared-x64 windows-shared-x64-posix
 | 
			
		||||
	windows-static-x86 windows-static-x64 windows-static-x64-posix windows-armv7 \
 | 
			
		||||
	windows-shared-x86 windows-shared-x64 windows-shared-x64-posix windows-arm64
 | 
			
		||||
 | 
			
		||||
# Generated Dockerfiles.
 | 
			
		||||
GEN_IMAGES = android-arm android-arm64 \
 | 
			
		||||
	linux-x86 linux-x64 linux-x64-clang linux-arm64 linux-arm64-musl linux-arm64-full \
 | 
			
		||||
	manylinux2014-x64 manylinux2014-x86 \
 | 
			
		||||
	web-wasm linux-mips \
 | 
			
		||||
	web-wasm linux-mips windows-arm64 windows-armv7 \
 | 
			
		||||
	windows-static-x86 windows-static-x64 windows-static-x64-posix \
 | 
			
		||||
	windows-shared-x86 windows-shared-x64 windows-shared-x64-posix \
 | 
			
		||||
	linux-armv7 linux-armv7a linux-armv7l-musl \
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										14
									
								
								README.md
									
									
									
									
									
								
							
							
						
						
									
										14
									
								
								README.md
									
									
									
									
									
								
							@@ -109,6 +109,8 @@ The dockcross script will execute the given command-line inside the container, a
 | 
			
		||||
| dockcross/windows-static-x86 | x86 | GCC | Windows |
 | 
			
		||||
| dockcross/windows-static-x64 | x86_64 | GCC | Windows |
 | 
			
		||||
| dockcross/windows-static-x64-posix | x86_64 | GCC | Windows |
 | 
			
		||||
| dockcross/windows-armv7 | ARMv7 | Clang | Windows |
 | 
			
		||||
| dockcross/windows-arm64 | ARMv8 | Clang | Windows |
 | 
			
		||||
 | 
			
		||||
## Cross compilers
 | 
			
		||||
 | 
			
		||||
@@ -325,6 +327,18 @@ linking.
 | 
			
		||||
 | 
			
		||||
32-bit Windows cross-compiler based on [MXE/MinGW-w64](https://mxe.cc/) with win32 threads and dynamic linking.
 | 
			
		||||
 | 
			
		||||
### dockcross/windows-armv7
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
 | 
			
		||||
ARMv7 32-bit Windows cross-compiler based on [LLVM/MinGW-w64](https://github.com/mstorsjo/llvm-mingw)
 | 
			
		||||
 | 
			
		||||
### dockcross/windows-arm64
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
 | 
			
		||||
ARMv8 64-bit Windows cross-compiler based on [llvm-mingw](https://github.com/mstorsjo/llvm-mingw)
 | 
			
		||||
 | 
			
		||||
## Summary legacy cross compilers
 | 
			
		||||
 | 
			
		||||
The list of docker images that are no longer supported or broken
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										29
									
								
								windows-arm64/Dockerfile.in
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										29
									
								
								windows-arm64/Dockerfile.in
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,29 @@
 | 
			
		||||
FROM dockcross/base:latest
 | 
			
		||||
MAINTAINER Matt McCormick "matt.mccormick@kitware.com"
 | 
			
		||||
 | 
			
		||||
ENV XCC_PREFIX /usr/xcc
 | 
			
		||||
ENV CROSS_TRIPLE aarch64-w64-mingw32
 | 
			
		||||
ENV CROSS_ROOT ${XCC_PREFIX}/${CROSS_TRIPLE}-cross
 | 
			
		||||
 | 
			
		||||
ARG DOWNLOAD_URL=https://github.com/mstorsjo/llvm-mingw/releases/download/20210423/llvm-mingw-20210423-msvcrt-ubuntu-18.04-x86_64.tar.xz
 | 
			
		||||
ENV DOWNLOAD_URL=${DOWNLOAD_URL}
 | 
			
		||||
 | 
			
		||||
RUN mkdir -p ${CROSS_ROOT} && wget -qO- "${DOWNLOAD_URL}" | tar xJvf - --strip 1 -C ${CROSS_ROOT}/ > /dev/null
 | 
			
		||||
 | 
			
		||||
ENV AS=${CROSS_ROOT}/bin/${CROSS_TRIPLE}-as \
 | 
			
		||||
    AR=${CROSS_ROOT}/bin/${CROSS_TRIPLE}-ar \
 | 
			
		||||
    CC=${CROSS_ROOT}/bin/${CROSS_TRIPLE}-clang \
 | 
			
		||||
    CPP=${CROSS_ROOT}/bin/${CROSS_TRIPLE}-cpp \
 | 
			
		||||
    CXX=${CROSS_ROOT}/bin/${CROSS_TRIPLE}-clang++ \
 | 
			
		||||
    LD=${CROSS_ROOT}/bin/${CROSS_TRIPLE}-ld \
 | 
			
		||||
    FC=${CROSS_ROOT}/bin/${CROSS_TRIPLE}-gfortran
 | 
			
		||||
 | 
			
		||||
COPY Toolchain.cmake ${CROSS_ROOT}/
 | 
			
		||||
ENV CMAKE_TOOLCHAIN_FILE ${CROSS_ROOT}/Toolchain.cmake
 | 
			
		||||
 | 
			
		||||
# Linux kernel cross compilation variables
 | 
			
		||||
ENV PATH ${PATH}:${CROSS_ROOT}/bin
 | 
			
		||||
ENV CROSS_COMPILE ${CROSS_TRIPLE}-
 | 
			
		||||
ENV ARCH arm64
 | 
			
		||||
 | 
			
		||||
#include "common.label-and-env"
 | 
			
		||||
							
								
								
									
										19
									
								
								windows-arm64/Toolchain.cmake
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										19
									
								
								windows-arm64/Toolchain.cmake
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,19 @@
 | 
			
		||||
set(CMAKE_SYSTEM_NAME Linux)
 | 
			
		||||
set(CMAKE_SYSTEM_VERSION 1)
 | 
			
		||||
set(CMAKE_SYSTEM_PROCESSOR aarch64)
 | 
			
		||||
 | 
			
		||||
set(cross_triple $ENV{CROSS_TRIPLE})
 | 
			
		||||
set(cross_root $ENV{CROSS_ROOT})
 | 
			
		||||
 | 
			
		||||
set(CMAKE_C_COMPILER $ENV{CC})
 | 
			
		||||
set(CMAKE_CXX_COMPILER $ENV{CXX})
 | 
			
		||||
set(CMAKE_Fortran_COMPILER $ENV{FC})
 | 
			
		||||
 | 
			
		||||
set(CMAKE_CXX_FLAGS "-I ${cross_root}/include/")
 | 
			
		||||
 | 
			
		||||
set(CMAKE_FIND_ROOT_PATH ${cross_root} ${cross_root}/${cross_triple})
 | 
			
		||||
set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER)
 | 
			
		||||
set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY BOTH)
 | 
			
		||||
set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE BOTH)
 | 
			
		||||
 | 
			
		||||
set(CMAKE_CROSSCOMPILING_EMULATOR /usr/bin/qemu-aarch64)
 | 
			
		||||
							
								
								
									
										29
									
								
								windows-armv7/Dockerfile.in
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										29
									
								
								windows-armv7/Dockerfile.in
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,29 @@
 | 
			
		||||
FROM dockcross/base:latest
 | 
			
		||||
MAINTAINER Matt McCormick "matt.mccormick@kitware.com"
 | 
			
		||||
 | 
			
		||||
ENV XCC_PREFIX /usr/xcc
 | 
			
		||||
ENV CROSS_TRIPLE armv7-w64-mingw32
 | 
			
		||||
ENV CROSS_ROOT ${XCC_PREFIX}/${CROSS_TRIPLE}-cross
 | 
			
		||||
 | 
			
		||||
ARG DOWNLOAD_URL=https://github.com/mstorsjo/llvm-mingw/releases/download/20210423/llvm-mingw-20210423-msvcrt-ubuntu-18.04-x86_64.tar.xz
 | 
			
		||||
ENV DOWNLOAD_URL=${DOWNLOAD_URL}
 | 
			
		||||
 | 
			
		||||
RUN mkdir -p ${CROSS_ROOT} && wget -qO- "${DOWNLOAD_URL}" | tar xJvf - --strip 1 -C ${CROSS_ROOT}/ > /dev/null
 | 
			
		||||
 | 
			
		||||
ENV AS=${CROSS_ROOT}/bin/${CROSS_TRIPLE}-as \
 | 
			
		||||
    AR=${CROSS_ROOT}/bin/${CROSS_TRIPLE}-ar \
 | 
			
		||||
    CC=${CROSS_ROOT}/bin/${CROSS_TRIPLE}-clang \
 | 
			
		||||
    CPP=${CROSS_ROOT}/bin/${CROSS_TRIPLE}-cpp \
 | 
			
		||||
    CXX=${CROSS_ROOT}/bin/${CROSS_TRIPLE}-clang++ \
 | 
			
		||||
    LD=${CROSS_ROOT}/bin/${CROSS_TRIPLE}-ld \
 | 
			
		||||
    FC=${CROSS_ROOT}/bin/${CROSS_TRIPLE}-gfortran
 | 
			
		||||
 | 
			
		||||
COPY Toolchain.cmake ${CROSS_ROOT}/
 | 
			
		||||
ENV CMAKE_TOOLCHAIN_FILE ${CROSS_ROOT}/Toolchain.cmake
 | 
			
		||||
 | 
			
		||||
# Linux kernel cross compilation variables
 | 
			
		||||
ENV PATH ${PATH}:${CROSS_ROOT}/bin
 | 
			
		||||
ENV CROSS_COMPILE ${CROSS_TRIPLE}-
 | 
			
		||||
ENV ARCH arm
 | 
			
		||||
 | 
			
		||||
#include "common.label-and-env"
 | 
			
		||||
							
								
								
									
										19
									
								
								windows-armv7/Toolchain.cmake
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										19
									
								
								windows-armv7/Toolchain.cmake
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,19 @@
 | 
			
		||||
set(CMAKE_SYSTEM_NAME Linux)
 | 
			
		||||
set(CMAKE_SYSTEM_VERSION 1)
 | 
			
		||||
set(CMAKE_SYSTEM_PROCESSOR arm)
 | 
			
		||||
 | 
			
		||||
set(cross_triple $ENV{CROSS_TRIPLE})
 | 
			
		||||
set(cross_root $ENV{CROSS_ROOT})
 | 
			
		||||
 | 
			
		||||
set(CMAKE_C_COMPILER $ENV{CC})
 | 
			
		||||
set(CMAKE_CXX_COMPILER $ENV{CXX})
 | 
			
		||||
set(CMAKE_Fortran_COMPILER $ENV{FC})
 | 
			
		||||
 | 
			
		||||
set(CMAKE_CXX_FLAGS "-I ${cross_root}/include/")
 | 
			
		||||
 | 
			
		||||
set(CMAKE_FIND_ROOT_PATH ${cross_root} ${cross_root}/${cross_triple})
 | 
			
		||||
set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER)
 | 
			
		||||
set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY BOTH)
 | 
			
		||||
set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE BOTH)
 | 
			
		||||
 | 
			
		||||
set(CMAKE_CROSSCOMPILING_EMULATOR /usr/bin/qemu-arm)
 | 
			
		||||
		Reference in New Issue
	
	Block a user