Skip to content

Commit

Permalink
Merge pull request torvalds#356 from M1cha/additional-headers
Browse files Browse the repository at this point in the history
lkl: add support for LKL_INSTALL_ADDITIONAL_HEADERS environment variable
  • Loading branch information
tavip committed Jul 12, 2017
2 parents 50ad8d6 + 6003733 commit 214eb08
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions arch/lkl/scripts/headers_install.py
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,13 @@ def replace(h):
find_headers("arch/lkl/include/uapi/asm/syscalls.h")
headers.add("arch/lkl/include/uapi/asm/host_ops.h")

if 'LKL_INSTALL_ADDITIONAL_HEADERS' in os.environ:
with open(os.environ['LKL_INSTALL_ADDITIONAL_HEADERS'], 'rU') as f:
for line in f.readlines():
line = line.split('#', 1)[0].strip()
if line != '':
headers.add(line)

new_headers = set()

for h in headers:
Expand Down

0 comments on commit 214eb08

Please sign in to comment.