misc: When building packet_pb2.py, don't assume a particular CWD.
authorGabe Black <gabeblack@google.com>
Thu, 5 Oct 2017 02:43:51 +0000 (19:43 -0700)
committerGabe Black <gabeblack@google.com>
Thu, 5 Oct 2017 09:15:59 +0000 (09:15 +0000)
commitedc8cffbead0b76cf8ea537f5d612963d975aa56
tree600c7d1f2f4802f25754669d2270742db7e3d9a7
parentbb23c5075e7a247eaa452a5c7d9bae4c785f730e
misc: When building packet_pb2.py, don't assume a particular CWD.

Allow the script to be run from anywhere, and compute the paths relative to
where the script is. The script is assumed to be in util.

Change-Id: I8500ef959f2ff8119540c956f2b27789c96de60e
Reviewed-on: https://gem5-review.googlesource.com/5004
Reviewed-by: Andreas Sandberg <andreas.sandberg@arm.com>
Maintainer: Andreas Sandberg <andreas.sandberg@arm.com>
util/decode_packet_trace.py