소스 검색

[BSP][QEMU-VExress] fix the automac issue under rtthread-apps

Bernard Xiong 6 년 전
부모
커밋
cfd54c76b6
1개의 변경된 파일2개의 추가작업 그리고 1개의 파일을 삭제
  1. 2 1
      bsp/qemu-vexpress-a9/rtconfig.py

+ 2 - 1
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