[lkml]   [2004]   [Aug]   [16]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
    Patch in this message
    SubjectRe: kbuild + kconfig: Updates
    On Sun, Aug 15, 2004 at 09:42:29PM +0100, wrote:
    > Speaking of kbuild, is there any reasonable way to do check-only runs?
    > Simple "set CC to scripts that will create target and do nothing
    > else" doesn't work for obvious reasons - we have some stuff that really
    > has to be compiled (e.g. empty.c + some arch-dependent files). Same
    > goes for make -n C=1 | grep sparse | ... variants.

    make C=2

    ===== scripts/ 1.47 vs edited =====
    --- 1.47/scripts/ 2004-08-15 21:54:06 +02:00
    +++ edited/scripts/ 2004-08-16 22:38:51 +02:00
    @@ -85,6 +85,9 @@
    ifneq ($(KBUILD_CHECKSRC),0)
    quiet_cmd_checksrc = CHECK $<
    cmd_checksrc = $(CHECK) $(c_flags) $< ;
    + ifeq ($(KBUILD_CHECKSRC),2)
    + cmd_force_checksrc = $(call cmd,checksrc)
    + endif

    @@ -182,11 +185,13 @@
    # Built-in and composite module parts

    %.o: %.c FORCE
    + $(cmd_force_checksrc)
    $(call if_changed_rule,cc_o_c)

    # Single-part modules are special since we need to mark them in $(MODVERDIR)

    $(single-used-m): %.o: %.c FORCE
    + $(cmd_force_checksrc)
    $(call if_changed_rule,cc_o_c)
    @{ echo $(@:.o=.ko); echo $@; } > $(MODVERDIR)/$(@F:.o=.mod)

    That should do it?
    I will push this if you are OK with it.

    > Another thing that would be very nice to have: analog of allmodconfig with
    > some options pre-set. Trivial cases can be hanlded by patching Kconfig
    > (basically, adding depends on BROKEN), but IWBN to have something like
    > make allmodconfig PRESET=<file that looks like a subset of .config>...

    Agree. Discussed a long time ago if we should introduce
    preprocessed _defconfig files, but people told me
    there were too little in common.

    IIRC it is possible just to add to a .config file, and then the last
    assignment will decide.
    But I have not tested it since long time ago so I may be wrong.

    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: 2005-03-22 14:05    [W:0.022 / U:0.496 seconds]
    ©2003-2017 Jasper Spaans. hosted at Digital OceanAdvertise on this site