diff options
Diffstat (limited to 'meta-arm/meta-gem5/recipes-devtools/gem5/gem5-m5term/0001-add-makefile-flags.patch')
-rw-r--r-- | meta-arm/meta-gem5/recipes-devtools/gem5/gem5-m5term/0001-add-makefile-flags.patch | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/meta-arm/meta-gem5/recipes-devtools/gem5/gem5-m5term/0001-add-makefile-flags.patch b/meta-arm/meta-gem5/recipes-devtools/gem5/gem5-m5term/0001-add-makefile-flags.patch new file mode 100644 index 0000000000..d13ef4ceb8 --- /dev/null +++ b/meta-arm/meta-gem5/recipes-devtools/gem5/gem5-m5term/0001-add-makefile-flags.patch @@ -0,0 +1,34 @@ +From 688f7103e08318edbd48cf830c0ab3a048761bbb Mon Sep 17 00:00:00 2001 +From: Adrian Herrera <adrian.herrera@arm.com> +Date: Thu, 03 Dec 2020 16:45:59 +0000 +Subject: [PATCH] util: m5term, fix LDFLAGS, standard make variables + +Enables build systems to provide necessary flags to build m5term. +Useful specially if a different linker is intended to be used. + +Change-Id: If7f867cc0965d6ad4627b5421e00a99cc3d64989 +Signed-off-by: Adrian Herrera <adrian.herrera@arm.com> + +Upstream-Status: Accepted [https://gem5-review.googlesource.com/c/public/gem5/+/38256] +Expected version: v20.2 +--- + +diff --git a/util/term/Makefile b/util/term/Makefile +index 658b961..4aa1c52 100644 +--- a/util/term/Makefile ++++ b/util/term/Makefile +@@ -24,12 +24,12 @@ + # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE + # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +-CCFLAGS= -g -O0 ++CFLAGS ?= -g -O0 + + default: m5term + + m5term: term.c +- $(CC) $(LFLAGS) -o $@ $^ ++ $(CC) $(CPPFLAGS) $(CFLAGS) $(LDFLAGS) -o $@ $^ $(LDLIBS) + + install: m5term + $(SUDO) install -o root -m 555 m5term /usr/local/bin |