David van Moolenbroek
3956ee9eed
LLVM passes: centralize Makefile structure
...
Make the passes we have so far, hello and WeakAliasModuleOverride,
use settings from a Makefile include file in the parent directory.
This change is in preparation of adding other passes.
Change-Id: Ib195ee7f5c7626f4975368b02c944382e87e3814
2015-09-17 13:56:41 +00:00
Erik van der Kouwe
63a89582ab
x86_hdimage: increase image size for bitcode build
...
Make disk image size sufficient for LLVM bitcode build with symbols.
Edited by David van Moolenbroek to do this only when -b is given.
Change-Id: I3bde164756c477b4af5ed9435ca03da3b186cf7e
2015-09-17 13:55:38 +00:00
Lionel Sambuc
3ceafe99fd
Support BUILDVARS from cmd line in configure.llvm
...
Change-Id: I59527c60cb34c12fd2bed449b37bb812a83c4e42
2015-09-17 13:53:18 +00:00
Cristiano Giuffrida
035cdb2e79
llvm: Never rebuild gold in configure.llvm.
...
Change-Id: I7378ca38a5a9bf018823b6431d1a4ca8fbb10b58
2015-09-17 13:52:35 +00:00
Cristiano Giuffrida
c9590fa23a
llvm: Fix OPTFLAGS.
...
Change-Id: Id35ac2821ad69825735c50a32bdd04d8453edb22
2015-09-17 13:52:24 +00:00
Lionel Sambuc
d8d3052dd0
QEMU default command lines updates
...
- Fix a bug in clientctl which tried to test for kvm. This simply
remove this faulty test as the kvm command has been deprecated by the
QEMU project for a couple of years now.
- Specify by default 256M of RAM as this is the minimal amount required
for the whole-OS live update test to succeed.
- Update the default command printed out at the end of the x86_hdimage
script to be more generic, less focused on one use-case.
Change-Id: Ic555d50a3a1471f7d35cc7fd369f2292add6ac39
2015-09-17 13:51:14 +00:00
Cristiano Giuffrida
1e7bfb997f
llvm: Build scripts improvements.
...
Change-Id: I278cdebccdba18be7e264bfd240ff02d4480b33c
2015-09-17 13:49:25 +00:00
Cristiano Giuffrida
04c5ac3eb5
llvm: Extend clientctl with many features.
...
Change-Id: I739eefa46458e956cb79c42a8cbf880428eec794
2015-09-17 13:49:03 +00:00
Cristiano Giuffrida
c3041d5c6d
llvm: Fix module map generation.
...
Change-Id: If9c2bef4c0ef3d002ac65a2c66aabcf0cf99ff95
2015-09-17 13:48:40 +00:00
Cristiano Giuffrida
326b9df3db
llvm: Improve error handling in configure.llvm.
...
Change-Id: I9aa8f8a07a512f642447c70dca2e85d40ebe2b2a
2015-09-17 13:48:18 +00:00
Lionel Sambuc
5f8eb6fb0c
minix/llvm/passes/Makefile.inc: Fix
...
This fixes and documents a mistake made during the sources move.
2014-08-29 12:56:57 -04:00
Erik van der Kouwe
a7db4b5d19
Skip modules that don't work on x86
...
Skip the following modules in relink.llvm/build.llvm:
- i2c
- gpio
- cat24c256
- tsl2550
2014-08-29 12:56:40 -04:00
Erik van der Kouwe
08423ba51f
Adjust LLVM MINIX scripts for new source layout
...
Adjust to the fact that drivers and servers have moved into the minix
subdir.
2014-08-29 12:56:28 -04:00
Erik van der Kouwe
52c6ad72ab
build.llvm fix to allow pass arguments
...
This allows pass arguments to be specified (written by Cristiano)
2014-08-29 12:56:23 -04:00
Lionel Sambuc
84bb300f88
Remove /multiboot
...
This is just a duplicate of /boot/.temp, and it is not used anymore.
Change-Id: I8a4d6e68829de3ff3628ff0fe15f6d1d0a6b128f
2014-07-31 16:00:31 +02:00
Lionel Sambuc
433d6423c3
New sources layout
...
Change-Id: Ic716f336b7071063997cf5b4dae6d50e0b4631e9
2014-07-31 16:00:30 +02:00
Ben Gras
edb410ffe2
empty Makefile
...
. needed to avoid a build problem on native minix under some
circumstances
2014-07-28 17:06:16 +02:00
Cristiano Giuffrida
592c9e1223
llvm: Use mfs images for clientctl buildisk.
2014-07-28 17:06:14 +02:00
Cristiano Giuffrida
dea274570b
llvm: Add SERIALOUT option to clientctl script.
2014-07-28 17:06:13 +02:00
Koustubha Bhat
98141c6587
build.llvm: including configure.llvm.inc must be optional
2014-07-28 17:06:13 +02:00
Cristiano Giuffrida
bf1ab51c95
llvm: Use a separate common.overrides file for MINIX.
2014-07-28 17:06:12 +02:00
Cristiano Giuffrida
646a6b144b
llvm: Fix rc script.
2014-07-28 17:06:12 +02:00
Cristiano Giuffrida
5c95bc4d9f
llvm: Add clientctl actions for external disk support.
2014-07-28 17:06:11 +02:00
Cristiano Giuffrida
0810704c3d
llvm: Preserve default OPTFLAGS when adding instrumentation.
2014-07-28 17:06:10 +02:00
Cristiano Giuffrida
5119c2fe3a
llvm: Use default LLVMPREFIX when building passes.
2014-07-28 17:06:10 +02:00
Erik van der Kouwe
ca39637dcc
LLVM clientctl: activate the KVM module only if available
2014-07-28 17:06:10 +02:00
Erik van der Kouwe
d7b27ed4f9
Fix LLVM clientctl: if the kvm command is not available, just use QEMU directly
2014-07-28 17:06:09 +02:00
Erik van der Kouwe
193bd04207
configure.llvm: add INTERACTIVE environment variable which can be set to no to prevent questions from being asked
2014-07-28 17:06:09 +02:00
Cristiano Giuffrida
d27de61ef2
llvm: Fix llvm-apps bridging.
2014-07-28 17:06:08 +02:00
Cristiano Giuffrida
07ae148a06
llvm: serverctl is now clientctl.
2014-07-28 17:06:08 +02:00
Cristiano Giuffrida
635e44315c
llvm: Always build memory last.
2014-07-28 17:06:08 +02:00
Cristiano Giuffrida
8eb30202e6
llvm: Add the serverctl script.
2014-07-28 17:06:07 +02:00
Cristiano Giuffrida
4ddc42d97a
llvm: Use common.overrides* files the llvm-apps way.
2014-07-28 17:06:07 +02:00
Cristiano Giuffrida
9f6977d22d
llvm: Split BITCODE_LD_FLAGS
...
Split across the two linking steps for instrumentation purposes.
2014-07-28 17:06:06 +02:00
Cristiano Giuffrida
79f9fd0612
llvm: Readd mistakenly deleted minix.inc.
2014-07-28 17:06:06 +02:00
Cristiano Giuffrida
c2a6ec6824
llvm: A few bitcode-related fixes.
2014-07-28 17:06:05 +02:00
Cristiano Giuffrida
76c4605bfe
llvm: Remove no longer needed SLOPPY_FLIST option.
2014-07-28 17:06:05 +02:00
Cristiano Giuffrida
0e560ca0c8
llvm: Avoid versioning configuration files directly.
2014-07-28 17:06:04 +02:00
Koustubha Bhat
dd85959391
LLVM Hello pass: inserts printf statement in main() method.
2014-07-28 17:06:04 +02:00
Koustubha Bhat
5ba302fdea
Bridging Minix & llvm-apps repos for instrumentating Minix
...
Allows instrumentation of Minix components using LLVM passes from
"llvm-apps" repository
In addition, the change does the following:
1. Move releasetools/generate_gold_plugin.sh to minix/llvm
2. Move external/bsd/llvm/passes to minix/llvm/passes
3. libLTO.so, LLVMgold.so and WeakAliasModuleOverride.so files
now get installed in minix/llvm/bin
2014-07-28 17:06:03 +02:00