summaryrefslogtreecommitdiff
path: root/configure.ac
AgeCommit message (Collapse)Author
2010-05-13powerpc new toolchains fix (crt.S)Maxim Uvarov
Linker does not provide some vital functions when building freestanding applications with a new toolchain, so we have to provide our own CRT. p.s. Without the CRT we won't see any build errors (since the purgatory is linked with --no-undefined), but the purgatory code won't work, 'kexec -e' will just hang the board. I added option to configure to keep code buildable for old toolchais. But there should be way to do this automatically. Author: Anton Vorontsov <avorontsov@ru.mvista.com> Signed-off-by: Maxim Uvarov <muvarov@gmail.com> Signed-off-by: Simon Horman <horms@verge.net.au>
2010-03-30kexec-tools: Use the build date for package releaseAmeya Palande
kexec built from git HEAD shows release date as 13th August 2009, which is not correct. Instead of that use the build date as release date. Signed-off-by: Ameya Palande <ameya.palande@nokia.com> Signed-off-by: Simon Horman <horms@verge.net.au>
2010-03-24kexec-tools: Fix rpm Version tagAmeya Palande
Version tag in rpm spec file doesn't allow '-', so use '_' to fix the rpm build. Signed-off-by: Ameya Palande <ameya.palande@nokia.com> Signed-off-by: Simon Horman <horms@verge.net.au>
2010-03-08some kexec MIPS improvementsMaxim Uvarov
- using simple mips* ) in configure.ac to make it compilable on mips2 and mips64 - remove kexec/arch/mips/mips-setup-simple.S which prepares cmdline for new kernel, it is better to move this work to kernel code. BTW this code was compilable only on o32 because of t4 is not defined on 64-64 or n32 MIPS ABIs. - simple put cmdline as string, kernel code should catch cmdline like this int board_kexec_prepare(struct kimage *image) { int i; char *bootloader = "kexec"; board_boot_desc_ptr->argc = 0; for(i=0;i<image->nr_segments;i++) { printk("segment %d if (!strncmp(bootloader, (char*)image->segment[i].buf, strlen(bootloader))) { /* * convert command line string to array * of parameters (as bootloader does). */ int argc = 0, offt; char *str = (char *)image->segment[i].buf; char *ptr = strchr(str, ' '); while (ptr && (ARGV_MAX_ARGS > argc)) { *ptr = '\0'; if (ptr[1] != ' ') { offt = (int)(ptr - str + 1); boot_desc_ptr->argv[argc] = image->segment[i].mem + offt; argc++; } ptr = strchr(ptr + 1, ' '); } boot_desc_ptr->argc = argc; break; } } Keep it as string make code simple and more readable. - add crashdump support - do not redefine syscalls numbers if they defined in system remove fixups for /proc/iomem. If your board provides wrong /proc/iomem please fix kernel, or at least you local version of kexec. No need to support it in main line. At least add option --fake-iomem - some minor fixes Signed-off-by: Maxim Uvarov <muvarov@gmail.com> Signed-off-by: Simon Horman <horms@verge.net.au>
2009-11-30add support for loading lzma compressed kernelsFlorian Fainelli
This patch allows one to load a lzma compressed kernel using kexec -l. As I wanted the lzma code to be very similar to the existing zlib slurp_decompress I took lzread and associated routines from the cpio lzma support. Tested on my x86 laptop using the following commands: lzma e bzImage bzImage.lzma kexec -l bzImage.lzma Having lzma support is particularly useful on some embedded systems on which we have the kernel already lzma compressed and available on a mtd partition. Signed-off-by: Florian Fainelli <florian@openwrt.org> Signed-off-by: Simon Horman <horms@verge.net.au>
2009-09-10Fix a problem caused by autoconf 2.64 which redefined AC_MSG_ERRORKhalid Aziz
autoconf 2.64 redefined AC_MSG_ERROR and now a ";" is required at the end of AC_MSG_ERROR macro invocation in configure.ac. Absence of this ";" causes an "unexpected end of file" message when configure script generated by autoconf is run. This patch adds the ";" in right places. I have verified that configure.ac still works fine after these changes with autoconf 2.63 and 2.61. [horms@verge.net.au: removed trailing whitespace] Signed-off-by: Khalid Aziz <khalid.aziz@hp.com> Signed-off-by: Simon Horman <horms@verge.net.au>
2009-08-13kexec-tools 2.0.1-gitSimon Horman
Add -git to version so it doesn't look like a release. This is just so when people build code from git it can be identified as such from the version string. Signed-off-by: Simon Horman <horms@verge.net.au>
2009-08-13kexec-tools 2.0.1Simon Horman
Signed-off-by: Simon Horman <horms@verge.net.au>
2009-07-22kexec-tools 2.0.1-rc1-gitSimon Horman
Add -git to version so it doesn't look like a release. This is just so when people build code from git it can be identified as such from the version string. Signed-off-by: Simon Horman <horms@verge.net.au>
2009-07-22kexec-tools 2.0.1-rc1Simon Horman
Signed-off-by: Simon Horman <horms@verge.net.au>
2008-10-08cris: add cris architecture to configureSimon Horman
# PATH=$PATH:/usr/local/cris/bin/ CC=crisv32-axis-linux-gnu-gcc \ ./configure --host=crisv32-axis-linux-gnu configure: WARNING: If you wanted to set the --build type, don't use --host. If a cross compiler is detected then cross compile mode will be used. checking build system type... i686-pc-linux-gnu checking host system type... cris-axis-linux-gnu checking target system type... cris-axis-linux-gnu configure: error: unsupported architecture cris Signed-off-by: Simon Horman <horms@verge.net.au>
2008-10-08cris: Add CRISv32 supportEdgar E. Iglesias
Hello, I hope this is the correct list to which to send these patches. Comments are very welcome. Thanks, Edgar From: Edgar E. Iglesias <edgar.iglesias@axis.com> Add a CRISv32 port. Initially only the elf filetype is supported. Signed-off-by: Edgar E. Iglesias <edgar.iglesias@axis.com> Signed-off-by: Simon Horman <horms@verge.net.au>
2008-10-08Only use -fno-zero-initialized-in-bss if it is availableSimon Horman
As pointed out by Edgar E. Iglesias, the -fno-zero-initialized-in-bss option to gcc is not available in the cris 3.2.1 toolchain. Signed-off-by: Simon Horman <horms@verge.net.au>
2008-07-19kexec-tools 2.0.0-gitSimon Horman
Add -git to version so it doesn't look like a release. This is just so when people build code from git it can be identified as such from the version string. Signed-off-by: Simon Horman <horms@verge.net.au>
2008-07-19kexec-tools 2.0.0Simon Horman
Signed-off-by: Simon Horman <horms@verge.net.au>
2008-07-16Allow BUILD_CFLAGS and TARGET_CFLAGS to be specified at configure timeJeremy Kerr
Currently, we're unconditionally setting the build and target cflags in the configure script, which means that they can't be easily overwritten. This change conditionally sets these variables if they're not specified during configure, allowing something like: BUILD_CFLAGS=-Werror ./configure Signed-off-by: Jeremy Kerr <jk@ozlabs.org> Signed-off-by: Simon Horman <horms@verge.net.au>
2008-07-14kexec-tools 2.0.0-gitSimon Horman
Add -git to version so it doesn't look like a release. This is just so when people build code from git it can be identified as such from the version string. Signed-off-by: Simon Horman <horms@verge.net.au>
2008-07-14kexec-tools 2.0.0-rc1Simon Horman
Signed-off-by: Simon Horman <horms@verge.net.au>
2008-05-28Fix build without cross compilationBernhard Walle
This patch fixes build on "normal" Linux hosts without cross compiler. The regression was introduced with commit 6f95d707544ab3417673990e6a78b27b79737856 Author: Jamey Sharp <jamey@thetovacompany.com> Date: Thu May 15 17:03:09 2008 -0700 Use target CC and LD to build kdump and kexec_test. Signed-off-by: Jamey Sharp <jamey@thetovacompany.com> Signed-off-by: Simon Horman <horms@verge.net.au> Signed-off-by: Bernhard Walle <bwalle@suse.de> Signed-off-by: Simon Horman <horms@verge.net.au>
2008-05-21Use target CC and LD to build kdump and kexec_test.Jamey Sharp
Signed-off-by: Jamey Sharp <jamey@thetovacompany.com> Signed-off-by: Simon Horman <horms@verge.net.au>
2008-03-24kexec-tools-testing 20080324-gitSimon Horman
Add -git to version so it doesn't look like a release. This is just so when people built stuff from git it can be identified as such from the version string. Signed-off-by: Simon Horman <horms@verge.net.au>
2008-03-24kexec-tools-testing 20080324Simon Horman
Signed-off-by: Simon Horman <horms@verge.net.au>
2008-03-18kexec-tools-testing 20080318-gitSimon Horman
Add -git to version so it doesn't look like a release. This is just so when people built stuff from git it can be identified as such from the version string. Signed-off-by: Simon Horman <horms@verge.net.au>
2008-03-18kexec-tools-testing 20080318-rcSimon Horman
Signed-off-by: Simon Horman <horms@verge.net.au> configure.ac | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) fc6069a80acc10297fc7158ddb088aa73093d8ab
2008-03-18kexec-tools: mips: support big-endian mips (repost)Simon Horman
[ Reposted with correct linux-mips address ] Hi, this patch switches the mips support in kexec-tools around a little bit. All the files and directories containing "mipsel" have been renamed to contain "mips" instead. This is kind of consistent with the way that ARCH=mips in the kernel works for both big and little endian. After a small amount of tweaking, which is also included in this patch, the code compiles and works fine for big endian mips as well as small endian mips. All you need to do is compile using an appropriate compiler. That is to say, kexec-tools's build system doesn't need to be told about which endienness the code is being compiled for. I have added kept mipsel as a supported "architecture" via ./configure, though its just an alias for mips now. This is consistent with how other architectures such as sh are treated. But I'm happy to remove mipsel from ./configure if the mips people want that. I tested this patch using qemu and the 2.6.24.3 tag of the mips-2.6 git tree compiled for the qemu machine type for both big and little endian. The qemu machine type has subsequently been removed, and kexec-tools needs some work in order to function with qemu - as far as I understand the way the boot parameters are passed needs to be fixed, likely in purgatory. However, this is not related to the changes introduced in this patch. I intend to merge this patch into kexec-tools-testing if no alarm bells are sounded. Signed-off-by: Simon Horman <horms@verge.net.au>
2008-03-06kexec-tools: mipsel: mipsel portFrancesco Chiechi
Hello, We developed a patch to port kexec-tools to mips arch and included support for command line passing through elf boot notes. We did it for a customer of ours on a specific platform derived from toshiba tx4938 (so we think it should work at least for tx4938 evaluation board also). We would like to contribute it in case somebody else needs it or wants to improve it. This patch works for us but the assembler part in particular, should be considered as a starting point because my assembly knowledge is not too deep. As this is the first time I submit a patch I tried to guess reading tpp.txt if this is the right way to submit. Please let me know about any mistakes I may have made. Signed-off-by: Simon Horman <horms@verge.net.au>
2008-02-27kexec-tools-testing 20080227-gitSimon Horman
Add -git to version so it doesn't look like a release. This is just so when people built stuff from git it can be identified as such from the version string. Signed-off-by: Simon Horman <horms@verge.net.au>
2008-02-27kexec-tools-testing 20080226Simon Horman
Signed-off-by: Simon Horman <horms@verge.net.au>
2008-02-26kexec-tools-testing 20080226-gitSimon Horman
Add -git to version so it doesn't look like a release. This is just so when people built stuff from git it can be identified as such from the version string. Signed-off-by: Simon Horman <horms@verge.net.au>
2008-02-26kexec-tools-testing 20080226-rcSimon Horman
Signed-off-by: Simon Horman <horms@verge.net.au>
2008-02-21kexec-tools-testing 20080221-gitSimon Horman
Add -git to version so it doesn't look like a release. This is just so when people built stuff from git it can be identified as such from the version string. Signed-off-by: Simon Horman <horms@verge.net.au>
2008-02-21kexec-tools-testing 20080221-rcSimon Horman
Signed-off-by: Simon Horman <horms@verge.net.au>
2008-02-20kexec-tools-testing 20080219-gitSimon Horman
Add -git to version so it doesn't look like a release. This is just so when people built stuff from git it can be identified as such from the version string. Signed-off-by: Simon Horman <horms@verge.net.au>
2008-02-19kexec-tools-testing 20080219-rcSimon Horman
Please ignore the previous "kexec-tools-testing 20080217-rc" commit, obviously its not still last year :-) Signed-off-by: Simon Horman <horms@verge.net.au>
2008-02-19kexec-tools-testing 20071019-rcSimon Horman
2008-02-19Add ARM support to kexecRichard Purdie
Add ARM support to kexec including commandline support through ATAGs. The kernel syscall support has already been merged and kernel ATAG exporting is queued for 2.6.25 (its optional for kexec). Based on work by various people, notably Uli Luckas <u.luckas@road.de> for adding ATAG support. Signed-off-by: Richard Purdie <rpurdie@rpsys.net> Signed-off-by: Simon Horman <horms@verge.net.au>
2007-12-19Build system simplification/standardisationJeremy Kerr
This change makes kexec-tools work more like a standard configure-make- make-install-type project: * Remove $(OBJDIR) stuff. To do an out-of-tree build, just configure from a different directory. * Use the implicit Makefile rules more, and just edit the compiler flags for specific targets. * Simplify compiler/linker flags - no need for EXTRA_* * Add TARGET_CC, and improve checks for BUILD_CC too. * Set arch-specific flags in arch-specific makefiles, not conditional on $(ARCH). * Generate dependency files in the main compile, rather than as a separate step. * Don't #include sha256.c, but re-build it into the purgatory. Still a work-in-progress. Signed-off-by: Jeremy Kerr <jk@ozlabs.org> Signed-off-by: Simon Horman <horms@verge.net.au>
2007-12-19Add gamecube to config.h definesJeremy Kerr
.. instead of messing with CFLAGS. Signed-off-by: Jeremy Kerr <jk@ozlabs.org> Signed-off-by: Simon Horman <horms@verge.net.au>
2007-12-19Use config.h for definesJeremy Kerr
Instead of putting a heap of -D directives in CPPFLAGS, use a config.h header. Signed-off-by: Jeremy Kerr <jk@ozlabs.org> Signed-off-by: Simon Horman <horms@verge.net.au>
2007-12-19Use --target for target architecture specificationJeremy Kerr
Instead of using a combination of ARCH and --host, use --target. It's possible to have host != target. For example, building a ppc kexec binary for a ppc64 kernel. In this case, the kexec binary is compiled for 32-bit, while the purgatory object is 64-bit. Signed-off-by: Jeremy Kerr <jk@ozlabs.org> Signed-off-by: Simon Horman <horms@verge.net.au>
2007-05-09kexec add strict-prototypesGeoff Levand
Add the complier flag -Wstrict-prototypes to EXTRA_CFLAGS. Signed-off-by: Geoff Levand <geoffrey.levand@am.sony.com> Signed-off-by: Simon Horman <horms@verge.net.au>
2007-05-08kexec improve build for ppc64Geoff Levand
Powerpc 64 bit platforms support both 64 bit and 32 bit runtimes. Allow ARCH= to be specified on the command line to separate the processor arch from the compiler machine. This also helps cross-builds with non-standard compiler names. Signed-off-by: Geoff Levand <geoffrey.levand@am.sony.com> Signed-off-by: Simon Horman <horms@verge.net.au>
2007-03-19Fix a cut and paste error in the --without-zlib configure option help.Ian Campbell
Signed-off-by: Ian Campbell <ian.campbell@xensource.com> Acked-by: Magnus Damm <magnus@valinux.co.jp> Signed-off-by: Simon Horman <horms@verge.net.au>
2007-03-19Default to --with_xenSimon Horman
It seems safe enough to enable --with_xen by default as the required header is checked for later on in confiugre, and will turn off --with_xen if needed. Signed-off-by: Simon Horman <horms@verge.net.au>
2007-03-19Set crash dump ELF header e_machine field based on underlying hypervisor ↵Ian Campbell
architecture. This is necessary when running Xen with a 64 bit hypervisor and 32 bit domain 0 since the CPU crash notes will be 64 bit. Detecting the hypervisor archiecture requires libxenctrl and therefore this support is optional and disabled by default. Signed-off-by: Ian Campbell <ian.campbell@xensource.com> Acked-by: Magnus Damm <magnus@valinux.co.jp> Signed-off-by: Simon Horman <horms@verge.net.au>
2007-02-08Trivial change adding sh4a to the sh targets.Paul Mundt
Trivial change adding sh4a to the sh targets. Signed-off-by: Paul Mundt <lethal@linux-sh.org> Signed-off-by: Simon Horman <horms@verge.net.au>
2007-02-01Remove 9bc3f8f7df46d8253bccaede1ea5ad3f21678f80, which is bogusSimon Horman
Signed-off-by: Horms <horms@verge.net.au>
2007-02-01Missing portions of the sh codeSimon Horman
Signed-off-by: Simon Horman <horms@verge.net.au>
2007-02-01kexec-tools: Add sh support to configure.acSimon Horman
Signed-off-by: Simon Horman <horms@verge.net.au>
2006-10-06build-cpp-and-ld-flagsSimon Horman
[BUILD] CPPFLAGS, CFLAGS and LDFLAGS fixes * Set internal CPPFLAGS as EXTRA_CPPFLAGS, CFLAGS as EXTRA_CFLAGS, and LDFLAGS as EXTRA_LDFLAGS - Don't overwrite CPPFLAGS, LDLFAGS or CFLAGS from the environment - They are irrelevant for BUILD_CC - When cross-compiling for a ppc64 host on a non-ppc64 host, EXTRA_CFLAGS, which is included in BUILD_CPPFLAGS contains -mcall-aixdesc, which does not work on i386 at least * Use LDFLAGS when linking kexec - Append rather than overwrite in purgatory/Makefile The purpose of these changes is three-fold. * CPPFLAGS, CFLAGS and LDFLAGS from the environment really ought to be honoured. For one thing; * Without these changes, the confgiure taget in the toplevel makefile can't work * Without these changes, cross compiling does not work - well, I can't work out how to get it to work anyway. Signed-Off-By: Simon Horman <horms@verge.net.au>