laforge has submitted this change and it was merged. ( 
https://gerrit.osmocom.org/c/osmo-ccid-firmware/+/14395 )

Change subject: Makefile: automatically get output directory list
......................................................................

Makefile: automatically get output directory list

Change-Id: I8a18a5f04b03f9fa95a1b4f5ee77945e4fa8db07
---
M sysmoOCTSIM/gcc/Makefile
1 file changed, 2 insertions(+), 28 deletions(-)

Approvals:
  Jenkins Builder: Verified
  laforge: Looks good to me, approved



diff --git a/sysmoOCTSIM/gcc/Makefile b/sysmoOCTSIM/gcc/Makefile
index 282a146..d5c11e8 100644
--- a/sysmoOCTSIM/gcc/Makefile
+++ b/sysmoOCTSIM/gcc/Makefile
@@ -46,34 +46,6 @@
        endif
 endif

-# List the subdirectories for creating object files
-SUB_DIRS +=  \
-       ccid \
-       dma_m2m \
-       gcc \
-       gcc/gcc \
-       hal/src \
-       hal/utils/src \
-       hpl/cmcc \
-       hpl/core \
-       hpl/dmac \
-       hpl/gclk \
-       hpl/mclk \
-       hpl/osc32kctrl \
-       hpl/oscctrl \
-       hpl/pm \
-       hpl/ramecc \
-       hpl/sercom \
-       hpl/rtc \
-       hpl/usb \
-       stdio_redirect \
-       stdio_redirect/gcc \
-       usb \
-       usb/class/ccid/device \
-       usb/class/cdc/device \
-       usb/device \
-       $(NULL)
-
 INC_DIRS = \
        -I"../" \
        -I"../CMSIS/Core/Include" \
@@ -168,6 +140,8 @@

 # List the dependency files
 DEPS := $(OBJS:%.o=%.d)
+# List the subdirectories for creating object files
+SUB_DIRS := $(sort $(foreach obj,$(OBJS),$(dir $(obj))))

 OUTPUT_FILE_NAME := sysmoOCTSIM
 QUOTE := "

--
To view, visit https://gerrit.osmocom.org/c/osmo-ccid-firmware/+/14395
To unsubscribe, or for help writing mail filters, visit 
https://gerrit.osmocom.org/settings

Gerrit-Project: osmo-ccid-firmware
Gerrit-Branch: master
Gerrit-Change-Id: I8a18a5f04b03f9fa95a1b4f5ee77945e4fa8db07
Gerrit-Change-Number: 14395
Gerrit-PatchSet: 2
Gerrit-Owner: Kévin Redon <kre...@sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: laforge <lafo...@gnumonks.org>
Gerrit-MessageType: merged

Reply via email to