Skip to content

Commit

Permalink
lkl: add support for LKL_INSTALL_ADDITIONAL_HEADERS environment variable
Browse files Browse the repository at this point in the history
this environment variable contains a path to a file with a list of
additional header files to install when running "make install".

- The file contains one header per line.
- empty lines are permitted
- '#' comments are supported - even inline

Signed-off-by: Michael Zimmermann <sigmaepsilon92@gmail.com>
  • Loading branch information
M1cha committed Jul 11, 2017
1 parent 768a3db commit 6003733
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 6003733

Please sign in to comment.