lkml.org 
[lkml]   [2004]   [Oct]   [17]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    Date
    From
    SubjectRe: 2.6.9-rc4-mm1: initramfs build fix
    hi :)

    CONFIG_INITRAMFS_SOURCE may be empty which confuses 'test'.
    So we have to quote it properly.

    Signed-off-by: Martin Waitz <tali@admingilde.org>

    Index: linux-2.6/usr/Makefile
    ===================================================================
    --- linux-2.6.orig/usr/Makefile 2004-10-17 16:06:58.430886734 +0200
    +++ linux-2.6/usr/Makefile 2004-10-17 16:07:56.185444167 +0200
    @@ -25,14 +25,14 @@

    quiet_cmd_gen_list = GEN_INITRAMFS_LIST $@
    cmd_gen_list = $(shell \
    - if test -f $(CONFIG_INITRAMFS_SOURCE); then \
    - if [ $(CONFIG_INITRAMFS_SOURCE) != $@ ]; then \
    - echo 'cp -f $(CONFIG_INITRAMFS_SOURCE) $@'; \
    + if test -f "$(CONFIG_INITRAMFS_SOURCE)"; then \
    + if [ "$(CONFIG_INITRAMFS_SOURCE)" != $@ ]; then \
    + echo 'cp -f "$(CONFIG_INITRAMFS_SOURCE)" $@'; \
    else \
    echo 'echo Using shipped $@'; \
    fi; \
    - elif test -d $(CONFIG_INITRAMFS_SOURCE); then \
    - echo 'scripts/gen_initramfs_list.sh $(CONFIG_INITRAMFS_SOURCE) > $@'; \
    + elif test -d "$(CONFIG_INITRAMFS_SOURCE)"; then \
    + echo 'scripts/gen_initramfs_list.sh "$(CONFIG_INITRAMFS_SOURCE)" > $@'; \
    else \
    echo 'echo Using shipped $@'; \
    fi)
    --
    Martin Waitz
    [unhandled content-type:application/pgp-signature]
    \
     
     \ /
      Last update: 2005-03-22 14:07    [W:0.024 / U:1.616 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site