From db624bb63beed8cecdf36716667525cb9138e6ee Mon Sep 17 00:00:00 2001 From: yoogx Date: Thu, 10 May 2018 09:12:32 -0400 Subject: [PATCH] * Add defensive elements when compiling for XtratuM --- share/make/Makefile.common.in | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/share/make/Makefile.common.in b/share/make/Makefile.common.in index 6b92ef2..2fd0f56 100644 --- a/share/make/Makefile.common.in +++ b/share/make/Makefile.common.in @@ -275,11 +275,15 @@ $(BINARY): fi endif +### The following is to be revisited ifeq ($(TARGET), leon3-xm3) -$(BINARY): OBJS = $(USER_OBJS) $(PO_HI_OBJS) $(GENERATED_OBJS) $(EXTERNAL_OBJECTS) -$(BINARY): generate-asn1-deployment target-objects compile-po-hi $(USER_OBJS) $(GENERATED_OBJS) - $(make-exe) +$(BINARY): + if [ x"$(shell which sparc-rtems-gcc)" = x ]; then \ + echo "XtratuM not installed, exiting" ; \ + else \ + $(MAKE) generate-asn1-deployment target-objects compile-po-hi $(USER_OBJS) $(GENERATED_OBJS); \ + fi endif -- GitLab