Change in ...osmo-ccid-firmware[master]: Makefile: automatically get output directory list

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/gerrit-log@lists.osmocom.org/.

Kévin Redon gerrit-no-reply at lists.osmocom.org
Thu Jun 6 16:46:24 UTC 2019


Kévin Redon has uploaded this change for review. ( 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(-)



  git pull ssh://gerrit.osmocom.org:29418/osmo-ccid-firmware refs/changes/95/14395/1

diff --git a/sysmoOCTSIM/gcc/Makefile b/sysmoOCTSIM/gcc/Makefile
index 01088cc..062a468 100644
--- a/sysmoOCTSIM/gcc/Makefile
+++ b/sysmoOCTSIM/gcc/Makefile
@@ -45,34 +45,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" \
@@ -167,6 +139,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: 1
Gerrit-Owner: Kévin Redon <kredon at sysmocom.de>
Gerrit-MessageType: newchange
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20190606/beedd0ff/attachment.htm>


More information about the gerrit-log mailing list