-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
d844ed9
commit b99d13a
Showing
6 changed files
with
37 additions
and
20 deletions.
There are no files selected for viewing
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,17 @@ | ||
#!/bin/bash | ||
docker build \ | ||
-t xcompiler \ | ||
-f Dockerfile-xcompiler \ | ||
. | ||
#!/bin/bash -e | ||
DEST_DIR=${1?}; if [ ! -w "${DEST_DIR?}" ]; then echo "ERROR: cannot write to the destination dir provided: '${DEST_DIR?}'"; exit 1; fi | ||
./build-xcompiler-base.sh | ||
CONTAINER_ID=$(date "+%y%m%d%H%M%S") | ||
docker run \ | ||
--name="${CONTAINER_ID?}" \ | ||
This comment has been minimized.
Sorry, something went wrong. |
||
-t xcompiler \ | ||
./ct-ng.sh \ | ||
/home/xcompiler/ct-ng \ | ||
"/home/xcompiler/ct-ng" \ | ||
"none" \ | ||
"arm-unknown-linux-gnueabi" \ | ||
"1.20.0" # "none" is a special value, as opposed to a file path | ||
docker cp \ | ||
This comment has been minimized.
Sorry, something went wrong.
anthony-cros
Author
Member
|
||
${CONTAINER_ID?}:/home/xcompiler/x-tools.tgz \ | ||
${DEST_DIR?}/ | ||
ls ${DEST_DIR?}/x-tools.tgz | ||
|
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
docker build \ | ||
-t xcompiler \ | ||
-f Dockerfile-xcompiler \ | ||
. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
#!/bin/bash -e | ||
DEST_DIR=${1?}; if [ ! -w "${DEST_DIR?}" ]; then echo "ERROR: cannot write to the destination dir provided: '${DEST_DIR?}'"; exit 1; fi | ||
./build-xcompiler-base.sh | ||
CONTAINER_ID=$(date "+%y%m%d%H%M%S") | ||
docker run \ | ||
--name="${CONTAINER_ID?}" \ | ||
-t xcompiler \ | ||
./ct-ng.sh \ | ||
"/home/xcompiler/ct-ng" \ | ||
"conf/wandboard.config" \ | ||
"arm-unknown-linux-gnueabi" \ | ||
"1.20.0" | ||
docker cp \ | ||
${CONTAINER_ID?}:/home/xcompiler/x-tools.tgz \ | ||
${DEST_DIR?}/ | ||
ls ${DEST_DIR?}/x-tools.tgz | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -80,7 +80,10 @@ ct-ng build | |
|
||
ls "${CROSS_COMPILER_DIR?}/bin/${TARGET_ARCHITECTURE?}-gcc" | ||
echo | ||
tree "${CROSS_COMPILER_DIR?}" | ||
tree -L 3 "${CROSS_COMPILER_DIR?}" | ||
cd $HOME | ||
tar --remove-files -zcf $HOME/x-tools.tgz ./x-tools | ||
This comment has been minimized.
Sorry, something went wrong.
anthony-cros
Author
Member
|
||
ls $HOME/x-tools.tgz | ||
|
||
# =========================================================================== | ||
|
1 comment
on commit b99d13a
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Cool beans - thanks!
this is where the container name can be given (and later used in place of ID)