From cfd54c76b6e59e7818008ccba1786ee212260f9a Mon Sep 17 00:00:00 2001 From: Bernard Xiong Date: Tue, 30 Jul 2019 15:11:03 +0800 Subject: [PATCH] [BSP][QEMU-VExress] fix the automac issue under rtthread-apps --- bsp/qemu-vexpress-a9/rtconfig.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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