[coreboot-gerrit] Patch set updated for coreboot: Makefile: Allow inclusion of source files from 3rdparty/
Nico Huber (nico.h@gmx.de)
gerrit at coreboot.org
Mon Oct 10 16:01:33 CEST 2016
Nico Huber (nico.h at gmx.de) just uploaded a new patch set to gerrit, which you can find at https://review.coreboot.org/16950
-gerrit
commit 70f3a9c6d0d3489eb35c3ab6597894c2907c1758
Author: Nico Huber <nico.huber at secunet.com>
Date: Wed Oct 5 17:41:31 2016 +0200
Makefile: Allow inclusion of source files from 3rdparty/
Change-Id: I81c6f628f239223ba293a1196f70e4f26e022f6c
Signed-off-by: Nico Huber <nico.huber at secunet.com>
---
Makefile | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/Makefile b/Makefile
index 4401288..7801c47 100644
--- a/Makefile
+++ b/Makefile
@@ -190,12 +190,13 @@ add-special-class= \
src-to-obj=\
$(patsubst $(obj)/%,$(obj)/$(1)/%,\
$(patsubst $(obj)/$(1)/%,$(obj)/%,\
+ $(patsubst 3rdparty/%,$(obj)/%,\
$(patsubst src/%,$(obj)/%,\
$(patsubst %.ads,%.o,\
$(patsubst %.adb,%.o,\
$(patsubst %.c,%.o,\
$(patsubst %.S,%.o,\
- $(subst .$(1),,$(2)))))))))
+ $(subst .$(1),,$(2))))))))))
# Converts one or more source file paths to the corresponding build/ paths
# of their Ada library information (.ali) files.
@@ -204,11 +205,12 @@ src-to-obj=\
src-to-ali=\
$(patsubst $(obj)/%,$(obj)/$(1)/%,\
$(patsubst $(obj)/$(1)/%,$(obj)/%,\
+ $(patsubst 3rdparty/%,$(obj)/%,\
$(patsubst src/%,$(obj)/%,\
$(patsubst %.ads,%.ali,\
$(patsubst %.adb,%.ali,\
$(subst .$(1),,\
- $(filter %.ads %.adb,$(2))))))))
+ $(filter %.ads %.adb,$(2)))))))))
# Clean -y variables, include Makefile.inc
# Add paths to files in X-y to X-srcs
More information about the coreboot-gerrit
mailing list