summaryrefslogtreecommitdiff
path: root/sys/src
diff options
context:
space:
mode:
authorcinap_lenrek <cinap_lenrek@felloff.net>2014-12-14 00:00:59 +0100
committercinap_lenrek <cinap_lenrek@felloff.net>2014-12-14 00:00:59 +0100
commit4afb56f570b3d6943e39bda5c9a2992a3bd139d2 (patch)
tree646a5b76d36f0749a2b7cb7a7c4dc6cf57fc139a /sys/src
parent96525edaae6e1fb076b4286fdd41032dafff651c (diff)
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.
Diffstat (limited to 'sys/src')
-rw-r--r--sys/src/9/port/portmkfile7
1 files 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
@{