Skip to content

Commit

Permalink
Debug Makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
Sven Van Asbroeck committed Apr 14, 2021
1 parent 6115fa3 commit 0362cbd
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions scripts/Makefile.build
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,7 @@ quiet_cmd_cc_o_c = CC $(quiet_modtag) $@
cmd_cc_o_c = $(CC) $(c_flags) -c -o $@ $<

ifdef CONFIG_MODVERSIONS
@echo >&2 '*** Why do we have modversions??'
# When module versioning is enabled the following steps are executed:
# o compile a <file>.o from <file>.c
# o if <file>.o doesn't contain a __ksymtab version, i.e. does
Expand All @@ -167,6 +168,7 @@ ifdef CONFIG_MODVERSIONS
# o remove .tmp_<file>.o to <file>.o

ifdef CONFIG_LTO_CLANG
@echo >&2 '*** CONFIG_LTO_CLANG is set ?!'
# Generate .o.symversions files for each .o with exported symbols, and link these
# to the kernel and/or modules at the end.
cmd_modversions_c = \
Expand All @@ -175,6 +177,7 @@ cmd_modversions_c = \
> [email protected]; \
fi;
else
@echo >&2 '*** CONFIG_LTO_CLANG is NOT set ?!'
cmd_modversions_c = \
if $(OBJDUMP) -h $@ | grep -q __ksymtab; then \
$(call cmd_gensymtypes_c,$(KBUILD_SYMTYPES),$(@:.o=.symtypes)) \
Expand Down

0 comments on commit 0362cbd

Please sign in to comment.