git: initrd: Tell make to use makefiles from the source tree

Aaron LI aly at crater.dragonflybsd.org
Sun Jul 1 02:22:30 PDT 2018


commit 57179abeebaf40c2fc2a839fe6dcfab8c16cffe0
Author: Aaron LI <aly at aaronly.me>
Date:   Sat Jun 9 20:06:05 2018 +0800

    initrd: Tell make to use makefiles from the source tree
    
    Otherwise, make uses makefiles from the system installed ones at
    /usr/share/mk, therefore, the updated bsd.prog.mk has no effect until
    being installed to the system.
    
    Note that the variables assigned by make (i.e., make ... var=value)
    will override the shell enviroment variables (e.g., var=value shell
    command).  So make sure the make variable assignments (e.g., DESTDIR)
    are put after the make.
    
    Also fix mkinitrd.sh to remove the used temporary initrd image file.

Summary of changes:
 initrd/Makefile    | 19 +++++++++++--------
 initrd/mkinitrd.sh |  1 +
 2 files changed, 12 insertions(+), 8 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/57179abeebaf40c2fc2a839fe6dcfab8c16cffe0


-- 
DragonFly BSD source repository



More information about the Commits mailing list