summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBernard Xiong <[email protected]>2019-07-30 15:11:03 +0800
committerBernard Xiong <[email protected]>2019-07-30 15:11:03 +0800
commitcfd54c76b6e59e7818008ccba1786ee212260f9a (patch)
tree1319c6b33d7b6977def5381ddec53fd5938f3a11
parentba084c5b5bb9ae1a4d1a302b5d833f548b435b2c (diff)
[BSP][QEMU-VExress] fix the automac issue under rtthread-apps
-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