Compare commits
2 commits
715d27d314
...
823365bc8a
| Author | SHA1 | Date | |
|---|---|---|---|
| 823365bc8a | |||
| a057593680 |
2 changed files with 3 additions and 1 deletions
|
|
@ -20,7 +20,7 @@ The easiest way to build this is to use Docker.
|
|||
1. Run `./build.sh`. This will build a binary for aarch64 or x84_64, depending on your host.
|
||||
1. You can also add the parameter `arm` or `x86` to the `./build.sh` script to build for a particular architecture.
|
||||
1. The result will be a binary in the `bin` sub directory.
|
||||
1. You can then run `./run.sh` for an interactive environment. In this case the source code will be copied to new `src-x` directory (where `x` depends on the architecture), so your changes do not disappear when the Docker container exits. This script also takes the parameter `arm` or `x86`.
|
||||
1. You can then run `./run.sh` for an interactive environment. In this case the full repo will be copied to new `repo-x` directory (where `x` depends on the architecture), so your changes do not disappear when the Docker container exits. This script also takes the parameter `arm` or `x86`.
|
||||
|
||||
Some functions are perhaps overly general, but that is because they are taken directly from the [EMG](https://nordicmessaging.se) source code.
|
||||
|
||||
|
|
|
|||
2
run.sh
2
run.sh
|
|
@ -9,6 +9,8 @@ repodir=`pwd`/repo-$arch
|
|||
if [ ! -d $repodir ]; then
|
||||
mkdir -p $repodir
|
||||
cp -a `git ls-files . | grep -v /` $repodir/
|
||||
# else
|
||||
# echo maybe run this: rsync -av src $repodir
|
||||
fi
|
||||
|
||||
docker run --rm -ti \
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue