Created
May 1, 2016 09:46
-
-
Save stffrdhrn/37f77ed54745deedf47356a4a8b31124 to your computer and use it in GitHub Desktop.
Running or1k gdb sim tests
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
# after configuring and building openrisc gdb with --enable-sim or1k or or1ksim | |
# Go into the gdb directly containing the make file | |
# Why? we go into this directly to make sure we are just running gdb tests, otherwise we run all tests | |
cd {build-gdb}/gdb/ | |
## edit testsuite/site.exp # | |
# Add a line linkinging in boards directly from (https://github.com/openrisc/or1k-src/tree/or1k/boards) | |
# Why? the boards directory is used by test suite dejagnu. The board argumented use in the make check below | |
# loadd the board file which tells the test suite details of how to load the target under test. In this case | |
# the simulator. | |
# Add this line to site.exp | |
lappend boards_dir {or1k-src}/boards | |
## Run the test | |
make check RUNTESTFLAGS="--target_board=or1k-elf-sim" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment