Valdis Kletnieks <[email protected]> wrote:

> /bin/sh: -c: line 0: syntax error near unexpected token `;'
> /bin/sh: -c: line 0: `set -e;  ; echo 
> 'cmd_/usr/src/valdis/NVIDIA-Linux-x86_64-304.51/kernel/nvidia.ko := ' > 
> /usr/src/valdis/NVIDIA-Linux-x86_64-304.51/kernel/.nvidia.ko.cmd'

I would guess that this is from Kbuild.include's 'if_changed' macro:

        if_changed = $(if $(strip $(any-prereq) $(arg-check)),       \
                @set -e;                                             \
                $(echo-cmd) $(cmd_$(1));                             \
                echo 'cmd_$@ := $(make-cmd)' > $(dot-target).cmd)

unless nvidia.ko has its own build rules.

It looks like either $(call if_changed) got invoked with no arguments or
$(cmd_$(1)) didn't exist.

Could you find out what $(1) was by adding a bit:

        if_changed = $(if $(strip $(any-prereq) $(arg-check)),       \
                $(info XXXX $(1))                                    \
                @set -e;                                             \
                $(echo-cmd) $(cmd_$(1));                             \
                echo 'cmd_$@ := $(make-cmd)' > $(dot-target).cmd)

You should see a line looking something like:

        XXX link_o_target

emitted by make just before it the error occurs.

David
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Reply via email to