[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH] build_wrapper: Call customization hook
From: |
Christophe Lyon |
Subject: |
[PATCH] build_wrapper: Call customization hook |
Date: |
Mon, 14 Sep 2020 12:02:18 +0000 |
It can be useful to customize the build wrapper for local needs: for
instance, one may need to compile additional objects to add
initialization code depending on the target board or multilibs in use.
2020-09-14 Torbjörn SVENSSON <torbjorn.svensson@st.com>
* lib/libgloss.exp (build_wrapper): Call build_wrapper_hook.
---
lib/libgloss.exp | 3 +++
1 file changed, 3 insertions(+)
diff --git a/lib/libgloss.exp b/lib/libgloss.exp
index 8e8a9ce..956701e 100644
--- a/lib/libgloss.exp
+++ b/lib/libgloss.exp
@@ -961,6 +961,9 @@ proc build_wrapper { gluefile } {
}
if { [target_compile $libdir/testglue.c $gluefile object $flags] eq "" } {
set gluefile [remote_download host $gluefile ${tool}_tg.o]
+ if {[info procs build_wrapper_hook] != ""} {
+ build_wrapper_hook $gluefile $result $flags
+ }
return [list $gluefile $result]
} else {
return ""
--
2.7.4
- [PATCH] build_wrapper: Call customization hook,
Christophe Lyon <=