diff --git a/bsp/qemu-vexpress-a9/rtconfig.py b/bsp/qemu-vexpress-a9/rtconfig.py index 77e8d6debb425553aadf32345bec0b68663109ce..abec45ac35d5a6229b4d8d477fc72bd784e4ec81 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