[lkml]   [2001]   [Dec]   [2]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
    SubjectRe: PATCH make ext2 smaller
    On Sun, 02 Dec 2001 06:31:17 -0500, 
    Jeff Garzik <> wrote:
    >Simply, all ext2 files are #include'd into a single file, ext2_all.c,
    >and all functions and data structures are declared static.

    I like it. With kbuild 2.5 the generation of ext2_all.c (I prefer
    ext2_static.c) can be automated.

    objlink(ext2.o balloc.o bitmap.o dir.o file.o fsync.o ialloc.o inode.o ioctl.o
    namei.o super.o symlink.o)
    select(CONFIG_EXT2_FS ext2.o)

    make_static(xxxx), which does not exist yet -

    * Checks if CONFIG_MAKE_STATIC is set.
    * Takes the objlink information from the kbuild 2.5 database.
    * Automatically creates xxxx_static.c as a series of #include
    statements for the source files derived from objlink.
    * Replaces the objlink data with objlink(xxxx.o xxxx_static.o).
    * Compiles xxxx_static.c with -DXXXX_STATIC=static.

    The code that is normally linked into xxxx.o has to be manually changed
    to add XXXX_STATIC before a make_static(xxxx) command can be added.

    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 13:13    [W:0.067 / U:20.720 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site