diff --git a/mk/spksrc.cross-cc.mk b/mk/spksrc.cross-cc.mk index a5998cb38d0..f88a9d8df3e 100644 --- a/mk/spksrc.cross-cc.mk +++ b/mk/spksrc.cross-cc.mk @@ -89,8 +89,17 @@ all-supported: env $(ENV) $(MAKE) -C ../../$$depend 2>&1 | tee --append build-$${depend%/*}-$${depend#*/}.log ; \ [ $${PIPESTATUS[0]} -eq 0 ] || false ; \ fi ; \ - done ; \ + done +ifeq ($(strip $(SUPPORTED_ARCHS)),) + $(MAKE) supported-arch-error +else $(MAKE) $(addprefix supported-arch-,$(SUPPORTED_ARCHS)) +endif + +supported-arch-error: + @$(MSG) ######################################################## + @$(MSG) ERROR - Please run make setup from spksrc root directory + @$(MSG) ######################################################## supported-arch-%: @$(MSG) BUILDING package for arch $* with SynoCommunity toolchain