Compare commits

..

No commits in common. "823365bc8af9a49be8f37f19b0a373152f61dd7a" and "715d27d314fed7bd367976ae8a92696ee84b3567" have entirely different histories.

2 changed files with 1 additions and 3 deletions

View file

@ -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. 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. 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. 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 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`. 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`.
Some functions are perhaps overly general, but that is because they are taken directly from the [EMG](https://nordicmessaging.se) source code. 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
View file

@ -9,8 +9,6 @@ repodir=`pwd`/repo-$arch
if [ ! -d $repodir ]; then if [ ! -d $repodir ]; then
mkdir -p $repodir mkdir -p $repodir
cp -a `git ls-files . | grep -v /` $repodir/ cp -a `git ls-files . | grep -v /` $repodir/
# else
# echo maybe run this: rsync -av src $repodir
fi fi
docker run --rm -ti \ docker run --rm -ti \