--- zzzz-none-000/linux-2.6.19.2/scripts/Kbuild.include 2007-01-10 19:10:37.000000000 +0000 +++ davinci-8020-5505/linux-2.6.19.2/scripts/Kbuild.include 2007-09-20 11:45:52.000000000 +0000 @@ -45,7 +45,7 @@ mkdir -p $(dir $@); \ $(filechk_$(1)) < $< > $@.tmp; \ if [ -r $@ ] && cmp -s $@ $@.tmp; then \ - rm -f $@.tmp; \ + rm -rf $@.tmp; \ else \ echo ' UPD $@'; \ mv -f $@.tmp $@; \ @@ -69,11 +69,12 @@ # as-instr # Usage: cflags-y += $(call as-instr, instr, option1, option2) -as-instr = $(shell if echo -e "$(1)" | \ - $(CC) $(AFLAGS) -c -xassembler - \ - -o $(TMPOUT)astest$$$$.out > /dev/null 2>&1; \ - then rm $(TMPOUT)astest$$$$.out; echo "$(2)"; \ - else echo "$(3)"; fi) +# remove by patch (handmade) +# as-instr = $(shell if echo -e "$(1)" | $(AS) >/dev/null 2>&1 -W -Z -o astest$$$$.out ; \ +# then echo "$(2)"; else echo "$(3)"; fi; \ +# rm -rf astest$$$$.out) +as-instr = $(shell if echo -e "$(1)" | $(AS) >/dev/null 2>&1 -W -Z -o /dev/null ; \ + then echo "$(2)"; else echo "$(3)"; fi; ) # cc-option # Usage: cflags-y += $(call cc-option, -march=winchip-c6, -march=i586) @@ -104,7 +105,7 @@ # Usage: ldflags += $(call ld-option, -Wl$(comma)--hash-style=both) ld-option = $(shell if $(CC) $(1) -nostdlib -xc /dev/null \ -o $(TMPOUT)ldtest$$$$.out > /dev/null 2>&1; \ - then rm $(TMPOUT)ldtest$$$$.out; echo "$(1)"; \ + then rm -rf $(TMPOUT)ldtest$$$$.out; echo "$(1)"; \ else echo "$(2)"; fi) ### @@ -166,7 +167,7 @@ @set -e; \ $(echo-cmd) $(cmd_$(1)); \ scripts/basic/fixdep $(depfile) $@ '$(make-cmd)' > $(dot-target).tmp;\ - rm -f $(depfile); \ + rm -rf $(depfile); \ mv -f $(dot-target).tmp $(dot-target).cmd) # Usage: $(call if_changed_rule,foo)