Merge pull request #2909 from BernardXiong/fix_automac

[BSP][QEMU-VExress] fix the automac issue under rtthread-apps
This commit is contained in:
Bernard Xiong 2019-07-30 16:21:24 +08:00 committed by GitHub
commit e5562cf60d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -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