日期:2014-05-16  浏览次数:20762 次

请问cmd文件是做什么用的?
例如:
cmd_drivers/char/fipkernel.ko   :=   mipsel-linux-ld     -m   elf32ltsmip   -r   -o   drivers/char/fipkernel.ko   drivers/char/fipkernel.o   drivers/char/fipkernel.mod.o


又比如:
cmd_drivers/char/fipkernel.o   :=   mipsel-linux-gcc   -Wp,-MD,drivers/char/.fipkernel.o.d     -nostdinc   -isystem   /home/baiqian/myproject/newV8/sdk/smp86xx_toolchain_2.7.158.1/build_mipsel_nofpu/staging_dir/bin-ccache/../lib/gcc/mipsel-linux-uclibc/3.4.2/include   -D__KERNEL__   -Iinclude     -include   include/linux/autoconf.h   -Wall   -Wundef   -Wstrict-prototypes   -Wno-trigraphs   -fno-strict-aliasing   -fno-common   -ffreestanding   -O2           -fomit-frame-pointer     -I   /home/baiqian/myproject/newV8/sdk/smp86xx_kernel_source_2.7.158.1/linux-2.6.15/include/asm/gcc   -G   0   -mno-abicalls   -fno-pic   -pipe     -mabi=32   -march=mips32r2   -Wa,-32   -Wa,-march=mips32r2   -Wa,-mips32r2   -Wa,--trap   -Iinclude/asm-mips/mach-tango2   -DEM86XX_CHIP=EM86XX_CHIPID_TANGO2   -DEM86XX_REVISION=6   -Iinclude/asm-mips/mach-generic         -DMODULE   -mlong-calls   -DKBUILD_BASENAME=fipkernel   -DKBUILD_MODNAME=fipkernel   -c   -o   drivers/char/.tmp_fipkernel.o   drivers/char/fipkernel.c

deps_drivers/char/fipkernel.o   :=   \
    drivers/char/fipkernel.c   \
        $(wildcard   include/config/tango2.h)   \
        $(wildcard   include/config/tango3.h)   \
        $(wildcard   include/config/tangox.h)   \
        $(wildcard   include/config/tangox/fip/ref1.h)   \
        $(wildcard   include/config/tangox/fip/ref2.h)   \
    include/linux/init.h   \
        $(wildcard   include/config/modules.h)   \
        $(wildcard   include/config/hotplug.h)   \
        $(wildcard   include/config/hotplug/cpu.h)   \
    include/linux/config.h   \
        $(wildcard   include/config/h.h)   \
    include/linux/compiler.h   \
    include/linux/compiler-gcc3.h   \
    include/linux/compiler-gcc.h   \
    include/linux/slab.h   \
        $(wildcard   include/config/.h)   \
        $(wildcard   include/config/numa.h)   \
    include/linux/gfp.h   \
        $(wildcard   include/config/dma/is/dma32.h)   \
    include/linux/mmzone.h   \
        $(wildcard   include/config/force/max/zoneorder.h)   \
        $(wildcard   include/config/smp.h)   \
        $(wildcard   include/config/memory/hotplug.h)   \
        $(wildcard   include/config/discontigmem.h)   \
        $(wildcard   include/config/flat/node/mem/map.h)   \
        $(wildcard   include/config/have/memory/present.h)   \
        $(wildcard   include/config/need/node/memmap/size.h)   \
        $(