builddeb: fix missing headers in linux-headers package
Subsystems (2)
PATCH 1/1 builddeb: fix missing headers in linux-headers package
The kernel headers package (linux-headers) doesn't include header files from other architectures required to build out-of-tree modules.
For e.g. on ARM64, opcodes.h includes the same file from ARM which causes the following error:./arch/arm64/include/asm/opcodes.h:1:43: fatal error:../../arm/include/asm/opcodes.h: No such file or directory compilation terminated.
--- scripts/package/builddeb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
scripts/package/builddeb +1 -1
@@ -322,7 +322,7 @@ fi # Build kernel header package (cd $srctree; find . -name Makefile\* -o -name Kconfig\* -o -name \*.pl) > "$objtree/debian/hdrsrcfiles" -(cd $srctree; find arch/$SRCARCH/include include scripts -type f) >> "$objtree/debian/hdrsrcfiles" +(cd $srctree; find arch/*/include include scripts -type f) >> "$objtree/debian/hdrsrcfiles" (cd $srctree; find arch/$SRCARCH -name module.lds -o -name Kbuild.platforms -o -name Platform) >> "$objtree/debian/hdrsrcfiles" (cd $srctree; find $(find arch/$SRCARCH -name include -o -name scripts -type d) -type f) >> "$objtree/debian/hdrsrcfiles" (cd $objtree; find arch/$SRCARCH/include Module.symvers include scripts -type f) >> "$objtree/debian/hdrobjfiles"
Signature · 3 lines
Qualcomm Innovation Center, Inc. The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum, a Linux Foundation Collaborative Project.
Quoted 20 lines · Azriel Samson
The kernel headers package (linux-headers) doesn't include header files from other architectures required to build out-of-tree modules.
For e.g. on ARM64,
opcodes.hincludes the same file from ARM which causes the following error:./arch/arm64/include/asm/opcodes.h:1:43: fatal error:../../arm/include/asm/opcodes.h: No such file or directory compilation terminated.Signed-off-by Azriel Samson <[email protected]>--- scripts/package/builddeb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)scripts/package/builddeb +0
-0
scripts/package/builddeb fi · line 328
Quoted 8 lines
scripts/package/builddeb +1
-1@@ -322,7 +322,7 @@ fi # Build kernel header package (cd $srctree; find . -name Makefile\* -o -name Kconfig\* -o -name \*.pl) > "$objtree/debian/hdrsrcfiles" -(cd $srctree; find arch/$SRCARCH/include include scripts -type f) >> "$objtree/debian/hdrsrcfiles" +(cd $srctree; find arch/*/include include scripts -type f) >> "$objtree/debian/hdrsrcfiles" (cd $srctree; find arch/$SRCARCH -name module.lds -o -name Kbuild.platforms -o -name Platform) >> "$objtree/debian/hdrsrcfiles" (cd $srctree; find $(find arch/$SRCARCH -name include -o -name scripts -type d) -type f) >> "$objtree/debian/hdrsrcfiles" (cd $objtree; find arch/$SRCARCH/include Module.symvers include scripts -type f) >> "$objtree/debian/hdrobjfiles"
Any feedback on this? Michal, do you think this would be appropriate to include in 4.7?
Thanks,
Christopher Covington
Signature · 3 lines
Qualcomm Innovation Center, Inc. Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, a Linux Foundation Collaborative Project
Quoted 22 lines · Christopher Covington
Quoted 21 lines · Azriel Samson
The kernel headers package (linux-headers) doesn't include header files from other architectures required to build out-of-tree modules.
For e.g. on ARM64,
opcodes.hincludes the same file from ARM which causes the following error:./arch/arm64/include/asm/opcodes.h:1:43: fatal error:../../arm/include/asm/opcodes.h: No such file or directory compilation terminated.Signed-off-by Azriel Samson <[email protected]>--- scripts/package/builddeb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)scripts/package/builddeb +0
-0@@ -322,7 +322,7 @@ fi
Quoted 10 lines
scripts/package/builddeb fi · line 328
Quoted 7 lines
scripts/package/builddeb +1
-1# Build kernel header package (cd $srctree; find . -name Makefile\* -o -name Kconfig\* -o -name \*.pl) > "$objtree/debian/hdrsrcfiles" -(cd $srctree; find arch/$SRCARCH/include include scripts -type f) >> "$objtree/debian/hdrsrcfiles" +(cd $srctree; find arch/*/include include scripts -type f) >> "$objtree/debian/hdrsrcfiles" (cd $srctree; find arch/$SRCARCH -name module.lds -o -name Kbuild.platforms -o -name Platform) >> "$objtree/debian/hdrsrcfiles" (cd $srctree; find $(find arch/$SRCARCH -name include -o -name scripts -type d) -type f) >> "$objtree/debian/hdrsrcfiles" (cd $objtree; find arch/$SRCARCH/include Module.symvers include scripts -type f) >> "$objtree/debian/hdrobjfiles"Any feedback on this? Michal, do you think this would be appropriate to include in 4.7?
Applied to kbuild.git#misc now.
Michal