Files
gem5/tests/test-progs/m5-exit/src/Makefile.x86
Bobby R. Bruce 93933b4465 misc,tests: Updated and generalized the resource url for tests
As we are now going to maintain different bundles of resources for each
gem5 release, the resources have been archived to
http://dist.gem5.org/dist/current for gem5 19. The development branch
will use http://dist.gem5.org/dist/develop going forward. New releases
will follow the format http://dist.gem5.org/dist/{VERSION}.

This patch makes the resources url a command-line parameter, set to the
"correct" url by default. This will be updated to the correct, archived,
version subdirectory upon release of a new gem5 version. E.g.:
http://dist.gem5.org/dist/v20 for the gem5 20 release.

Some Make files have been cleaned up to no longer fetch and push to
remote locations. As gem5-resources is implemented, sources will be
moved to the gem5-resources resository and compiled binaries, etc.
pulled from our Google Cloud bucket from the tests themselves.

Change-Id: Ia16c496be3a60283ecc431ffaa5b059e1932b526
Issue-on: https://gem5.atlassian.net/browse/GEM5-431
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/27987
Reviewed-by: Jason Lowe-Power <power.jg@gmail.com>
Maintainer: Jason Lowe-Power <power.jg@gmail.com>
Tested-by: kokoro <noreply+kokoro@google.com>
2020-04-25 20:41:58 +00:00

20 lines
478 B
Makefile

M5_UTIL:=${CURDIR}/../../../../util/m5
M5_INCLUDE:=${CURDIR}/../../../../include/
all: m5_exit
# NOTE: For docker to work, all of the files must be in this directory
m5_exit: m5-exit.c
cp -r $(M5_INCLUDE)/gem5 .
cp $(M5_UTIL)/m5op_x86.S .
./dockcross-x64 -c '$$CC -I. m5op_x86.S m5-exit.c -o m5_exit -static -DM5'
rm m5op_x86.S
rm -r gem5
dockcross-x64:
docker run --rm dockcross/linux-x64 > ./dockcross-x64
chmod +x ./dockcross-x64
clean:
rm -f dockcross-* m5_exit