aboutsummaryrefslogtreecommitdiff
path: root/Makefile
AgeCommit message (Collapse)Author
2019-06-07test_i386: change syntax from nasm to gasJan Bobek
This allows us to drop dependency on NASM and build the test image with GCC only. Adds support for x86_64, too. Suggested-by: Richard Henderson <richard.henderson@linaro.org> Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Signed-off-by: Jan Bobek <jan.bobek@gmail.com> Reviewed-by: Alex Bennée <alex.bennee@linaro.org> Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
2019-06-07Makefile: undefine the arch name symbolJan Bobek
At least GCC defines the symbol "i386" to 1 to signal the target platform. We need to use "i386" as an undefined symbol in order to correctly include risu_reginfo_i386.h from risu.h. Add an -U option to the build command to make sure the symbol remains undefined. Suggested-by: Richard Henderson <richard.henderson@linaro.org> Reviewed-by: Alex Bennée <alex.bennee@linaro.org> Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Signed-off-by: Jan Bobek <jan.bobek@gmail.com> Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
2018-07-02Makefile: include risu_reginfo_$(ARCH) in HDRSAlex Bennée
Otherwise changes to reginfo don't cause the whole thing to be re-built causing much confusion when bisecting. Signed-off-by: Alex Bennée <alex.bennee@linaro.org> Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Message-id: 20180622141205.16306-7-alex.bennee@linaro.org Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
2018-07-02build-all-arches: do a distclean $(SRC) configuredAlex Bennée
This can cause much confusion when you have been building in your source tree. I've added a distclean so we don't unexpectedly drop the config for normal make clean invocations. Signed-off-by: Alex Bennée <alex.bennee@linaro.org> Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Message-id: 20180622141205.16306-5-alex.bennee@linaro.org Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
2017-06-29risu: add support for compressed tracefilesAlex Bennée
This uses the magic of zlib's gzread/write interface to wrap the tracefile in compression. The code changes are tiny. I spent more time messing about with the configure/linker stuff to auto-detect bits. As you need decent multi-arch support or a correctly setup cross toolchain we fall back if we can't compile with zlib. This unfortunately needs some #ifdef hackery around the zlib bits in risu.c. Signed-off-by: Alex Bennée <alex.bennee@linaro.org> Reviewed-by: Peter Maydell <peter.maydell@linaro.org> Message-id: 20170621154244.28309-9-alex.bennee@linaro.org Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
2017-02-24Move send_register_info() to reginfo.cPeter Maydell
send_register_info() is now essentially the same code for all target CPUs, so move it into reginfo.c rather than having duplicated code. Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
2017-02-24Makefile: Build with -D_GNU_SOURCE=1Peter Maydell
For x86 the ucontext.h only provides the #defines for register indexes if _GNU_SOURCE is enabled; enable it. As part of this, split our CFLAGS into: * CFLAGS: can be set by the user, defaults to -g * EXTRA_CFLAGS: set by the user, additional to CFLAGS * ALL_CFLAGS: the above, plus flags we must have in order to build correctly (or otherwise don't want the user to disable) Signed-off-by: Peter Maydell <pmaydell@chiark.greenend.org.uk>
2017-02-20Support building into a build directoryPeter Maydell
Add support for building outside the source tree, by running configure from the build directory: mkdir build cd build ../configure make Signed-off-by: Peter Maydell <pmaydell@chiark.greenend.org.uk>
2014-11-28Makefile: Add "dump" target to aid debuggingAlex Bennée
This will dump any risu.bin files to the risu.asm files which are so useful for working through stuff. Of course you can run an individual make target by running: make simd_copy.risu.asm Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
2014-11-28risu: enable static buildsAlex Bennée
It is possible to build statically with some limitations on the use of gethostbyname(). Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
2014-04-25Makefile: pass CFLAGS also to gcc when linkingClaudio Fontana
Useful for sysroot situations. Signed-off-by: Claudio Fontana <claudio.fontana@linaro.org>
2014-04-25configure: add -h,--help text, also add CPPFLAGSClaudio Fontana
Signed-off-by: Claudio Fontana <claudio.fontana@linaro.org>
2014-04-25risu_reginfo_arm: new module for the reginfo structClaudio Fontana
put the struct reginfo and its methods in a separate module. This also addresses the problem with the memcmp being used directly on the struct without the memset 0. Signed-off-by: Claudio Fontana <claudio.fontana@linaro.org>
2014-04-25configure: add a configuration step, prepare for 64bit compilationClaudio Fontana
adjust some types to be able to compile successfully on 64 bit. To make it cleanly, add a configure step to check for the appropriate types to use. Signed-off-by: Claudio Fontana <claudio.fontana@linaro.org>
2010-12-07Add licensing/copyright boilerplate to license under EPLPeter Maydell
Add the COPYING file and per-source-file boilerplate text to place risu ender the Eclipse Public License.
2010-09-22Add a simple test image for ARM, and make the makefile only build the right ↵Peter Maydell
one for the architecture.
2010-09-21Implement image loading and enough of x86 to work with a simple static test ↵Peter Maydell
image.
2010-09-20Split out socket related code into its own file.Peter Maydell
2010-09-20Add the initial structure of SIGILL handling and CPU-specific interface.Peter Maydell
2010-09-17Initial commit (argument parsing and tcp setup only)Peter Maydell