scripts: gen_handles: update to handle <zephyr/...> include prefix
Update the script so that it handles generates files using the <zephyr/...> include prefix. Signed-off-by: Gerard Marull-Paretas <gerard.marull@nordicsemi.no>
This commit is contained in:
parent
cf8d9f88fe
commit
8f09118b4a
|
@ -362,8 +362,8 @@ def main():
|
|||
debug("\nFinal sups:\n\t%s" % ("\n\t".join([_sn.path for _sn in n.__supports])))
|
||||
|
||||
with open(args.output_source, "w") as fp:
|
||||
fp.write('#include <device.h>\n')
|
||||
fp.write('#include <toolchain.h>\n')
|
||||
fp.write('#include <zephyr/device.h>\n')
|
||||
fp.write('#include <zephyr/toolchain.h>\n')
|
||||
|
||||
for dev in devices:
|
||||
hs = dev.handle
|
||||
|
|
Loading…
Reference in a new issue