ensure that the initrd/bin dir exists

This commit is contained in:
Trammell Hudson 2016-08-02 23:48:18 -04:00
parent c6e066fd0c
commit 397aa4a9f8
Failed to extract signature

View File

@ -76,6 +76,7 @@ $(foreach _, $(modules), $(eval $(call define_module,$_)))
# #
define initrd_bin = define initrd_bin =
initrd/bin/$(notdir $1): $1 initrd/bin/$(notdir $1): $1
@-mkdir "initrd/bin"
cmp --quiet "$$@" "$$^" || \ cmp --quiet "$$@" "$$^" || \
cp -a "$$^" "$$@" cp -a "$$^" "$$@"
initrd_bins += initrd/bin/$(notdir $1) initrd_bins += initrd/bin/$(notdir $1)