25 lines
744 B
Bash
Executable File
25 lines
744 B
Bash
Executable File
#!/bin/sh
|
|
|
|
# Prepare a directory that will contain the cross compiler
|
|
mkdir -p ../../build-tools/x-tools
|
|
|
|
# Build docker image responsible for building the cross compiler
|
|
docker build \
|
|
-t bmr-build-cross-compiler \
|
|
-f build-cross-compiler.Dockerfile .
|
|
|
|
# Perform building of cross compiler
|
|
docker run -ti \
|
|
-e CROSS_TARGET_INFO_PATH=/extern-config \
|
|
-e CROSS_TARGET_DST_PATH=/extern-dst \
|
|
-v ./configurations/armv6-rpi-linux-gnueabihf:/extern-config \
|
|
-v ../../build-tools/x-tools:/extern-dst \
|
|
bmr-build-cross-compiler
|
|
|
|
# Build docker image to be used for cross compiling
|
|
docker build \
|
|
-t bmr-cross-compiler \
|
|
--build-arg CROSS_COMPILER=armv6-rpi-linux-gnueabihf \
|
|
-f cross-compiler.Dockerfile ../..
|
|
|