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.
This commit is contained in:
cinap_lenrek 2014-12-14 00:00:59 +01:00
parent 96525edaae
commit 4afb56f570

View file

@ -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
@{