Commit 657f96cb authored by WangYuli's avatar WangYuli Committed by Masahiro Yamada
Browse files

kbuild: deb-pkg: Add libdw-dev:native to Build-Depends-Arch



The dwarf.h header, which is included by
scripts/gendwarfksyms/gendwarfksyms.h, resides within the libdw-dev
package.

This portion of the code is compiled under the condition that
CONFIG_GENDWARFKSYMS is enabled.

Consequently, add libdw-dev to Build-Depends-Arch to prevent
unforeseen compilation failures.

Fix follow possible error:
  In file included from scripts/gendwarfksyms/symbols.c:6:
  scripts/gendwarfksyms/gendwarfksyms.h:6:10: fatal error: 'dwarf.h' file not found
      6 | #include <dwarf.h>
        |          ^~~~~~~~~

Fixes: f2856884 ("tools: Add gendwarfksyms")
Reviewed-by: default avatarSami Tolvanen <samitolvanen@google.com>
Signed-off-by: default avatarWangYuli <wangyuli@uniontech.com>
Reviewed-by: default avatarNicolas Schier <n.schier@avm.de>
Tested-by: default avatarNicolas Schier <n.schier@avm.de>
Signed-off-by: default avatarMasahiro Yamada <masahiroy@kernel.org>
parent 56045757
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -210,7 +210,7 @@ Rules-Requires-Root: no
Build-Depends: debhelper-compat (= 12)
Build-Depends-Arch: bc, bison, flex,
 gcc-${host_gnu} <!pkg.${sourcename}.nokernelheaders>,
 kmod, libelf-dev:native,
 kmod, libdw-dev:native, libelf-dev:native,
 libssl-dev:native, libssl-dev <!pkg.${sourcename}.nokernelheaders>,
 python3:native, rsync
Homepage: https://www.kernel.org/