summaryrefslogtreecommitdiffhomepage
path: root/sysinfo/toolchain
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2016-02-26 17:09:04 -0500
committermidipix <writeonce@midipix.org>2016-11-11 00:22:35 -0500
commite692ecc8f9e67935711fca72f93f537ce505c2f9 (patch)
tree3e405d968f1db70ec5acc1a8c94d8c370e9aa70a /sysinfo/toolchain
parent5cdf33234403a259c70b2afece9d57f75a91e7b3 (diff)
downloadmdso-e692ecc8f9e67935711fca72f93f537ce505c2f9.tar.bz2
mdso-e692ecc8f9e67935711fca72f93f537ce505c2f9.tar.xz
build system: --toolchain: initial implementation.
Diffstat (limited to 'sysinfo/toolchain')
-rw-r--r--sysinfo/toolchain/binutils.mk17
-rw-r--r--sysinfo/toolchain/llvm.mk17
2 files changed, 34 insertions, 0 deletions
diff --git a/sysinfo/toolchain/binutils.mk b/sysinfo/toolchain/binutils.mk
new file mode 100644
index 0000000..a29ac0c
--- /dev/null
+++ b/sysinfo/toolchain/binutils.mk
@@ -0,0 +1,17 @@
+AS = $(CROSS_COMPILE)as
+AR = $(CROSS_COMPILE)ar
+LD = $(CROSS_COMPILE)ld
+NM = $(CROSS_COMPILE)nm
+OBJDUMP = $(CROSS_COMPILE)objdump
+RANLIB = $(CROSS_COMPILE)ranlib
+SIZE = $(CROSS_COMPILE)size
+STRIP = $(CROSS_COMPILE)strip
+STRINGS = $(CROSS_COMPILE)strings
+
+
+ADDR2LINE = $(CROSS_COMPILE)addr2line
+COV = $(CROSS_COMPILE)gcov
+CXXFILT = $(CROSS_COMPILE)c++filt
+ELFEDIT = $(CROSS_COMPILE)elfedit
+OBJCOPY = $(CROSS_COMPILE)objcopy
+READELF = $(CROSS_COMPILE)readelf
diff --git a/sysinfo/toolchain/llvm.mk b/sysinfo/toolchain/llvm.mk
new file mode 100644
index 0000000..3c805a8
--- /dev/null
+++ b/sysinfo/toolchain/llvm.mk
@@ -0,0 +1,17 @@
+AS = llvm-mc -filetype=obj
+AR = llvm-ar
+LD = lld
+NM = llvm-nm
+OBJDUMP = llvm-objdump
+RANLIB = llvm-ranlib
+SIZE = llvm-size
+STRIP = $(CROSS_COMPILE)strip
+STRINGS = $(CROSS_COMPILE)strings
+
+
+ADDR2LINE = $(CROSS_COMPILE)addr2line
+COV = $(CROSS_COMPILE)gcov
+CXXFILT = $(CROSS_COMPILE)c++filt
+ELFEDIT = $(CROSS_COMPILE)elfedit
+OBJCOPY = $(CROSS_COMPILE)objcopy
+READELF = $(CROSS_COMPILE)readelf