brcm63xx: fix build with per-device rootfs
[librecmc/librecmc.git] / target / linux / brcm63xx / image / Makefile
index ca1792abf0c922485dcb940a1c05297ef5852f24..f5de6734fe60d1c7799951f661f609cdcd23ed39 100644 (file)
@@ -98,7 +98,7 @@ $(shell expr substr "$(1)" 1 16)
 endef
 
 define Image/FileSystemStrip
-$(subst root.,,$(notdir $(1)))
+$(firstword $(subst +,$(space),$(subst root.,,$(notdir $(1)))))
 endef
 
 define Build/cfe-bin