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:
Gerard Marull-Paretas 2022-05-09 13:58:12 +02:00 committed by Anas Nashif
parent cf8d9f88fe
commit 8f09118b4a

View file

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