Skip to content

make-based: Add arm64 support#51

Open
StefanJum wants to merge 10 commits intounikraft-upb:mainfrom
StefanJum:StefanJum/add-arm64-support
Open

make-based: Add arm64 support#51
StefanJum wants to merge 10 commits intounikraft-upb:mainfrom
StefanJum:StefanJum/add-arm64-support

Conversation

@StefanJum
Copy link
Contributor

@StefanJum StefanJum commented May 16, 2023

Add base commands for arm64 support: setup_arm64, build_arm64 and run_arm64.

The one thing to have in mind when using these functions is that you
will need to have the gcc-arm cross compiler installed on your device.

You need to pass the path to the cross compiler to the script by the
CROSS_COMPILE env variable. If you don't do that it will use the default
path: "~/.toolchain/gcc-arm-10.3-2021.07-x86_64-aarch64-none-linux-gnu/bin/
aarch64-none-linux-gnu-".

Usage example:

$ ./do.sh setup_arm64
$ CROSS_COMPILE=<path> ./do.sh build_arm64
$ ./do.sh run_arm64

The way the automated tests are run has also changed:

./build-all.sh <x86_64 | arm64> <set of prs>
[...]

./run-all.sh <x86_64 | arm64>

StefanJum added 10 commits May 17, 2023 12:27
Add base commands for arm64 support: setup_arm64, build_arm64 and run_arm64.

The one thing to have in mind when using these functions is that you
will need to have the `gcc-arm` cross compiler installed on your device.

You need to pass the path to the cross compiler to the script by the
CROSS_COMPILE env variable. If you don't do that it will use the default
path: "~/.toolchain/gcc-arm-10.3-2021.07-x86_64-aarch64-none-linux-gnu/bin/
aarch64-none-linux-gnu-".

Usage example:
```
$ ./do.sh setup_arm64
$ CROSS_COMPILE=<path> ./do.sh build_arm64
$ ./do.sh run_arm64
```

Signed-off-by: Stefan Jumarea <stefanjumarea02@gmail.com>
Signed-off-by: Stefan Jumarea <stefanjumarea02@gmail.com>
Signed-off-by: Stefan Jumarea <stefanjumarea02@gmail.com>
Signed-off-by: Stefan Jumarea <stefanjumarea02@gmail.com>
Signed-off-by: Stefan Jumarea <stefanjumarea02@gmail.com>
Signed-off-by: Stefan Jumarea <stefanjumarea02@gmail.com>
Signed-off-by: Stefan Jumarea <stefanjumarea02@gmail.com>
Signed-off-by: Stefan Jumarea <stefanjumarea02@gmail.com>
Signed-off-by: Stefan Jumarea <stefanjumarea02@gmail.com>
Change the `build-all.sh` and `run-all.sh` scripts to be able to run the
tests on both x86_64 and arm64 architectures.

The scripts should now be run like this:
```
./build-add.sh <x86_64 | arm64> <list of prs>
[...]
./run-all.sh <x86_64 | arm64>
[...]
```

Signed-off-by: Stefan Jumarea <stefanjumarea02@gmail.com>
@StefanJum StefanJum force-pushed the StefanJum/add-arm64-support branch from 74c9378 to 1ba1588 Compare May 17, 2023 10:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants