X-Git-Url: http://git.openwrt.org/?a=blobdiff_plain;f=include%2Frootfs.mk;h=bf26dd2415aa090c5030f90d18530e1f5b3bd2d5;hb=cf1c7c0f17a45bba3e7ce1a3cd3f8f7efa7196c4;hp=a3a08c2851cd0a377e36284c69e1518e94b694cc;hpb=6ab50bb10ded770f023e14d63cac2522076f9daf;p=openwrt%2Fstaging%2Fluka.git diff --git a/include/rootfs.mk b/include/rootfs.mk index a3a08c2851..bf26dd2415 100644 --- a/include/rootfs.mk +++ b/include/rootfs.mk @@ -63,9 +63,9 @@ ifdef CONFIG_CLEAN_IPKG endif define prepare_rootfs - @if [ -d $(TOPDIR)/files ]; then \ - $(call file_copy,$(TOPDIR)/files/.,$(1)); \ - fi + $(if $(2),@if [ -d '$(2)' ]; then \ + $(call file_copy,$(2)/.,$(1)); \ + fi) @mkdir -p $(1)/etc/rc.d @mkdir -p $(1)/var/lock @( \