X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;f=scripts%2FKbuild.include;h=e8bbe9ce70e3cb172e8f13d804c8694044761a3b;hb=ee3eb8902192071059aaf2833185fb15b7e1d6bd;hp=065324a8046ff8e0af179e6e90f335afb8d99179;hpb=5aa90a84589282b87666f92b6c3c917c8080a9bf;p=mirror_ubuntu-bionic-kernel.git diff --git a/scripts/Kbuild.include b/scripts/Kbuild.include index 065324a8046f..e8bbe9ce70e3 100644 --- a/scripts/Kbuild.include +++ b/scripts/Kbuild.include @@ -8,6 +8,7 @@ squote := ' empty := space := $(empty) $(empty) space_escape := _-_SPACE_-_ +pound := \# right_paren := ) left_paren := ( @@ -324,11 +325,11 @@ endif # Replace >$< with >$$< to preserve $ when reloading the .cmd file # (needed for make) -# Replace >#< with >\#< to avoid starting a comment in the .cmd file +# Replace >#< with >$(pound)< to avoid starting a comment in the .cmd file # (needed for make) # Replace >'< with >'\''< to be able to enclose the whole string in '...' # (needed for the shell) -make-cmd = $(call escsq,$(subst \#,\\\#,$(subst $$,$$$$,$(cmd_$(1))))) +make-cmd = $(call escsq,$(subst $(pound),$$(pound),$(subst $$,$$$$,$(cmd_$(1))))) # Find any prerequisites that is newer than target or that does not exist. # PHONY targets skipped in both cases. @@ -475,3 +476,6 @@ endif endef # ############################################################################### + +# delete partially updated (i.e. corrupted) files on error +.DELETE_ON_ERROR: