From 4afb56f570b3d6943e39bda5c9a2992a3bd139d2 Mon Sep 17 00:00:00 2001 From: cinap_lenrek Date: Sun, 14 Dec 2014 00:00:59 +0100 Subject: kernel: evaluate dependencies of bootfs.proto files for bootfs.paq expand the list of files specified in bootfs.proto and use them as dependencies to bootfs.paq rule. this way, bootfs.paq is regenerated when the to be included files have been modified. --- sys/src/9/port/portmkfile | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/sys/src/9/port/portmkfile b/sys/src/9/port/portmkfile index 99ff194ea..0ecfbd80c 100644 --- a/sys/src/9/port/portmkfile +++ b/sys/src/9/port/portmkfile @@ -91,9 +91,12 @@ devproc.$O edf.$O proc.$O: /sys/include/trace.h boot$CONF.out: $CONF printstub.$O $BOOTLIB $BOOTDIR/mkboot $CONF > boot$CONF.c $CC $CFLAGS boot$CONF.c - $LD -o boot$CONF.out boot$CONF.$O printstub.$O $BOOTLIB + $LD -o boot$CONF.out boot$CONF.$O printstub.$O $BOOTLIB -bootfs.paq: ../port/bootfs.proto +bootfs.paq: ../port/bootfs.proto \ + `{disk/mkfs -s / -ax ../port/bootfs.proto >[2]/dev/null \ + | awk '/^end of archive/{exit}{print $1}' \ + | while(x=`{read}){test -f $x && echo $x}} mkdir -p bootfs disk/mkfs -s / -d bootfs ../port/bootfs.proto @{ -- cgit v1.2.3