Skip to content

Commit

Permalink
makefile: copy default_version_script to version_script if latter one…
Browse files Browse the repository at this point in the history
… missing

When building kernel with most symbols hidden for the very first time, the
default_version_script is generated correctly however we do miss to copy
it to version_script and the build fails. This patch fixes it by
detecting this case and copying default_version_script to
version_script.

Signed-off-by: Waldemar Kozaczuk <[email protected]>
  • Loading branch information
wkozaczuk committed Jun 13, 2022
1 parent e0d0bfb commit 47e10f3
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2067,6 +2067,9 @@ ifneq ($(shell cmp $(out)/version_script $(conf_version_script)),)
$(shell cp $(conf_version_script) $(out)/version_script)
endif
else
ifeq ($(shell test -e $(out)/version_script || echo -n no),no)
$(shell cp $(out)/default_version_script $(out)/version_script)
endif
ifneq ($(shell cmp $(out)/version_script $(out)/default_version_script),)
$(shell cp $(out)/default_version_script $(out)/version_script)
endif
Expand Down

0 comments on commit 47e10f3

Please sign in to comment.