[lkml]   [2007]   [Oct]   [27]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
    SubjectRe: Check handling of kernel build output directory
    >> Which files are not clean in my situation after the command "make mrproper" was executed
    >> at the beginning?
    > If you look at the top-level Makefile you will see:
    > @echo ' Using $(srctree) as source for kernel'
    > $(Q)if [ -f $(srctree)/.config -o -d $(srctree)/include/config ]; then \
    > echo " $(srctree) is not clean, please run 'make mrproper'";\
    > echo " in the '$(srctree)' directory.";\
    > /bin/false; \
    > fi;
    > So you either a .config file or the config directory.

    Well, I've thought about another viewpoint. The Makefile insists on the detail that no
    configuration files are allowed in the source directory if an output directory was specified.
    Original wording:
    # prepare3 is used to check if we are building in a separate output directory,
    # and if so do:
    # 1) Check that make has not been executed in the kernel src $(srctree)

    I seems now that my troubles came from the missing decision when to move or delete the
    .config file from my source directory. So the following command sequence works for a
    completely clean build. (It can be adjusted to support parallel configurations for
    debug/release situations as usual.)

    elfring@Sonne:~/Projekte/Linux/Kernel/> unset KBUILD_OUTPUT && make mrproper && cp
    -p /boot/config- .config && export
    KBUILD_OUTPUT=~/Projekte/Linux/Kernel/obj/ && rm -rf
    $KBUILD_OUTPUT/* && make silentoldconfig && rm .config && date && echo
    HOSTCC scripts/basic/fixdep
    HOSTCC scripts/basic/docproc
    GEN /home/elfring/Projekte/Linux/Kernel/obj/
    HOSTCC scripts/kconfig/conf.o
    HOSTCC scripts/kconfig/kxgettext.o
    SHIPPED scripts/kconfig/
    SHIPPED scripts/kconfig/lex.zconf.c
    SHIPPED scripts/kconfig/zconf.hash.c
    HOSTCC scripts/kconfig/
    HOSTLD scripts/kconfig/conf
    scripts/kconfig/conf -s arch/x86_64/Kconfig
    Sa 27. Okt 17:37:38 CEST 2007
    GEN /home/elfring/Projekte/Linux/Kernel/obj/
    Sa 27. Okt 17:55:09 CEST 2007


    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to
    More majordomo info at
    Please read the FAQ at

     \ /
      Last update: 2007-10-27 18:03    [W:0.032 / U:17.504 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site