Add support for manually modified kernel headers.
This changes the scripts so that if some kernel files exists in external/kernel-headers/modified, that they will be preferred over the same files found in original. This is to support the case where the kernel headers cannot be taken without some small modifications. Included with this change, is a general cleanup of the python scripts. This also modifies the generate uapi headers script to indicate if the source of the modified headers has changed. Change-Id: Id13523b244ced52a2ecd9f1399c43996dd8296fa
This commit is contained in:
@@ -12,12 +12,6 @@ kernel_archs = [ 'arm', 'arm64', 'mips', 'x86' ]
|
||||
# tree. used when looking for sources...
|
||||
kernel_dirs = [ "linux", "asm", "asm-generic", "mtd" ]
|
||||
|
||||
# path to the directory containing the original kernel headers
|
||||
kernel_original_path = os.path.normpath( find_program_dir() + '/../../../../external/kernel-headers/original' )
|
||||
|
||||
# path to the default location of the cleaned-up headers
|
||||
kernel_cleaned_path = os.path.normpath( find_program_dir() + '/..' )
|
||||
|
||||
# a special value that is used to indicate that a given macro is known to be
|
||||
# undefined during optimization
|
||||
kCppUndefinedMacro = "<<<undefined>>>"
|
||||
|
Reference in New Issue
Block a user