summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--bsp/qemu-vexpress-a9/rtconfig.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/bsp/qemu-vexpress-a9/rtconfig.py b/bsp/qemu-vexpress-a9/rtconfig.py
index 77e8d6debb..abec45ac35 100644
--- a/bsp/qemu-vexpress-a9/rtconfig.py
+++ b/bsp/qemu-vexpress-a9/rtconfig.py
@@ -21,7 +21,8 @@ end = '''
#endif
'''
-with open('drivers/automac.h', 'w') as f:
+automac_h_fn = os.path.join(os.path.dirname(__file__), 'drivers', 'automac.h')
+with open(automac_h_fn, 'w') as f:
f.write(header + get_mac_address() + end)
# toolchains options