History log of /arch/sh/Makefile
Revision Date Author Comments
b1923b55af43a6febb976084bf30d1a4797c92c9 23-Jul-2014 Geert Uytterhoeven <geert+renesas@glider.be> sh: also try passing -m4-nofpu for SH2A builds

When compiling a SH2A kernel (e.g. se7206_defconfig or rsk7203_defconfig)
using sh4-linux-gcc, linking fails with:

net/built-in.o: In function `__sk_run_filter':
net/core/filter.c:566: undefined reference to `__fpscr_values'
net/core/filter.c:269: undefined reference to `__fpscr_values'
...
net/built-in.o:net/core/filter.c:580: more undefined references to `__fpscr_values' follow

This happens because sh4-linux-gcc doesn't support the "-m2a-nofpu",
which is thus filtered out by "$(call cc-option, ...)".

As compiling using sh4-linux-gcc is useful for compile coverage, also
try passing "-m4-nofpu" (which is presumably filtered out when using a
real sh2a-linux toolchain) to disable the generation of FPU instructions
and references to __fpscr_values[].

Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Cc: Guenter Roeck <linux@roeck-us.net>
Cc: Tony Breeds <tony@bakeyournoodle.com>
Cc: Alexei Starovoitov <ast@plumgrid.com>
Cc: Fengguang Wu <fengguang.wu@intel.com>
Cc: Daniel Borkmann <dborkman@redhat.com>
Cc: Magnus Damm <magnus.damm@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
19952a92037e752f9d3bbbad552d596f9a56e146 19-Dec-2013 Kees Cook <keescook@chromium.org> stackprotector: Unify the HAVE_CC_STACKPROTECTOR logic between architectures

Instead of duplicating the CC_STACKPROTECTOR Kconfig and
Makefile logic in each architecture, switch to using
HAVE_CC_STACKPROTECTOR and keep everything in one place. This
retains the x86-specific bug verification scripts.

Signed-off-by: Kees Cook <keescook@chromium.org>
Cc: Arjan van de Ven <arjan@linux.intel.com>
Cc: Michal Marek <mmarek@suse.cz>
Cc: Russell King <linux@arm.linux.org.uk>
Cc: Ralf Baechle <ralf@linux-mips.org>
Cc: Paul Mundt <lethal@linux-sh.org>
Cc: James Hogan <james.hogan@imgtec.com>
Cc: Stephen Rothwell <sfr@canb.auug.org.au>
Cc: Shawn Guo <shawn.guo@linaro.org>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Andrew Morton <akpm@linux-foundation.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: linux-arm-kernel@lists.infradead.org
Cc: linux-mips@linux-mips.org
Cc: linux-arch@vger.kernel.org
Link: http://lkml.kernel.org/r/1387481759-14535-2-git-send-email-keescook@chromium.org
Signed-off-by: Ingo Molnar <mingo@kernel.org>
d14a5fdc26986f7bac8376a339f336be18ba2a90 12-May-2012 Geert Uytterhoeven <geert@linux-m68k.org> sh: Setup CROSS_COMPILE at the top

CROSS_COMPILE must be setup before using e.g. cc-option (and a few other
as-*, cc-*, ld-* macros), else they will check against the wrong compiler
when cross-compiling, and may invoke the cross compiler with wrong or
suboptimal compiler options.

Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
Cc: Paul Mundt <lethal@linux-sh.org>
Cc: linux-sh@vger.kernel.org
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
8e780be960c3e7000a94652bc56efeb3c932ee24 13-Jun-2012 Paul Mundt <lethal@linux-sh.org> sh: Fix up link time defsym warnings.

sh-linux-gnu-ld:--defsym 'jiffies=jiffies_64': ignoring invalid character `'' in expression

For some reason ld has recently started complaining about the quotes, so just
get rid of them, we don't need them for anything anyways.

Signed-off-by: Paul Mundt <lethal@linux-sh.org>
41fe22f6553d1384fbef20b195b8c61ed6e768a1 03-May-2012 Thomas Gleixner <tglx@linutronix.de> sh: Use generic init_task

Same code. Use the generic version. The special Makefile treatment is
pointless anyway as init_task.o contains only data which is handled by
the linker script. So no point on being treated like head text.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Acked-by: Paul Mundt <lethal@linux-sh.org>
Link: http://lkml.kernel.org/r/20120503085035.398257169@linutronix.de
5d920bb929a99446062a48cf90867bbca57b8e77 19-Apr-2012 Filippo Arcidiacono <filippo.arcidiacono@st.com> sh: initial stack protector support.

This implements basic -fstack-protector support, based on the early ARM
version in c743f38013aeff58ef6252601e397b5ba281c633. The SMP case is
limited to the initial canary value, while the UP case handles per-task
granularity (limited to 32-bit sh until a new enough sh64 compiler
manifests itself).

Signed-off-by: Filippo Arcidiacono <filippo.arcidiacono@st.com>
Reviewed-by: Carmelo Amoroso <carmelo.amoroso@st.com>
Signed-off-by: Stuart Menefy <stuart.menefy@st.com>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
e857bfd4604a3a4edaf9c7038db880d9f78aecbd 01-Nov-2011 Nobuhiro Iwamatsu <nobuhiro.iwamatsu.yj@renesas.com> sh: Add default uImage rule for sh7757lcr

Signed-off-by: Nobuhiro Iwamatsu <nobuhiro.iwamatsu.yj@renesas.com>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
61a6976bf19a6cf5dfcf37c3536665b316f22d49 13-Jun-2011 Paul Mundt <lethal@linux-sh.org> serial: sh-sci: Abstract register maps.

This takes a bit of a sledgehammer to the horribly CPU subtype
ifdef-ridden header and abstracts all of the different register layouts
in to distinct types which in turn can be overriden on a per-port basis,
or permitted to default to the map matching the port type at probe time.

In the process this ultimately fixes up inumerable bugs with mismatches
on various CPU types (particularly the legacy ones that were obviously
broken years ago and no one noticed) and provides a more tightly coupled
and consolidated platform for extending and implementing generic
features.

Signed-off-by: Paul Mundt <lethal@linux-sh.org>
50cfa79dcb91a7c40038b7a13b7e2242b541242f 14-Jan-2011 Paul Mundt <lethal@linux-sh.org> sh: support XZ-compressed kernel.

Follow the x86 change and wire up support for the XZ decompressor.

Signed-off-by: Paul Mundt <lethal@linux-sh.org>
c819cc732267d6e46833a8d98bd7677b3d12d7d1 29-Oct-2010 Paul Mundt <lethal@linux-sh.org> sh: mach-edosk7705: Kill off machtype, consolidate board def.

Trivial shuffling and tidying.

Signed-off-by: Paul Mundt <lethal@linux-sh.org>
2504075d383fcefd746dac42a0cd1c3bdc006bd1 29-Oct-2010 Paul Mundt <lethal@linux-sh.org> sh: mach-systemh: Kill off dead board.

This code has been untouched since it was merged many years ago, and has
severely bitrotted since, suggesting that the board has no real users
left. Notice of intent to remove has been sent out over the last few
years, with no takers. Kill it off.

Signed-off-by: Paul Mundt <lethal@linux-sh.org>
f6eec8d66400714e47add3d8341688a1e86c5de9 29-Oct-2010 Paul Mundt <lethal@linux-sh.org> sh: mach-snapgear: Kill off machtype, consolidate board def.

Only the secureedge5410 was ever supported by this code, so make the
board specification explicit rather than perpetuating a mach group.

Signed-off-by: Paul Mundt <lethal@linux-sh.org>
e60692b9347d17774cdad00ae2b9afd3dc5444af 26-Apr-2010 Paul Mundt <lethal@linux-sh.org> sh: mach-sdk7786: update defconfig for compressed kernel image.

Now that compressed image loading is possible for sdk7786, drop the
vmlinux.bin default image target and update the defconfig accordingly.

Signed-off-by: Paul Mundt <lethal@linux-sh.org>
f655f5e956eaf4fcda983f3b3d37c76371556c27 28-Jan-2010 Paul Mundt <lethal@linux-sh.org> sh: mach-titan: Kill off unused PIO port mangling.

Nothing is using this, kill it off. Fixing up access sizes can be done
with trapped I/O for anyone wanting to make use of this for devices that
need it, everything else is already pure MMIO.

Signed-off-by: Paul Mundt <lethal@linux-sh.org>
02bf6cc72cc2a6258411ddf1649f33a65fc9a06e 14-Jan-2010 Paul Mundt <lethal@linux-sh.org> sh: Preliminary SDK7786 board support.

This stubs in some preliminary board support for the RTE SDK7786.

This is quite stunted at the moment, and primarily builds on top of the
system FPGA. FPGA IRQs are handled via CPU IRL masking for simplicity,
with initial peripheral support restricted to the debug ethernet.

Signed-off-by: Matt Fleming <matt@console-pimps.org>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
eca50f14b88315bd31183a17c89e53534f2ed2fa 13-Jan-2010 Paul Mundt <lethal@linux-sh.org> sh: Add a vmlinux.bin target.

This makes vmlinux.bin generation an explicit make target, as opposed to
just a dependency for some of the other targets.

Signed-off-by: Paul Mundt <lethal@linux-sh.org>
c7b16efb7d0c7fce218b2cdafa2432c5fbf57314 13-Jan-2010 Paul Mundt <lethal@linux-sh.org> sh: Add support for LZO-compressed kernels.

Plugs in LZO along with the others.

Signed-off-by: Paul Mundt <lethal@linux-sh.org>
3252b11fc4790d046b93f300c898df2f7cd7c176 17-Oct-2009 Sam Ravnborg <sam@ravnborg.org> sh: move machtypes.h to include/generated

Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
Cc: Paul Mundt <lethal@linux-sh.org>
Cc: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Michal Marek <mmarek@suse.cz>
8144a7dd51712ab58d052f4df4420768ec5489ef 04-Dec-2009 Paul Mundt <lethal@linux-sh.org> sh: Add default uImage rule for se7724, ap325rxa, and migor.

Signed-off-by: Paul Mundt <lethal@linux-sh.org>
53528928d1260747c294b63218d9886c74df4c31 30-Oct-2009 Magnus Damm <damm@opensource.se> sh: Move ap325rxa board code into separate directory

Move the AP325RXA board code from a single board file
to a separate directory. This to make it easy to add
support for sdram sleep mode code.

Signed-off-by: Magnus Damm <damm@opensource.se>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
a5c461bb3f74646d99464652cd5363e88434c3e1 26-Oct-2009 Paul Mundt <lethal@linux-sh.org> sh: Document uImage.bin target in archhelp.

This was missing from the previous patch.

Reported-by: Mike Frysinger <vapier@gentoo.org>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
9e24c7e2ac269486ab7c69ce50e944698e818fac 26-Oct-2009 Magnus Damm <damm@opensource.se> sh: add uImage.bin target

Add an uImage.bin target to allow uncompressed uImages.
Useful for boards with busted u-boot decompression like
the rsk7203 on my desk.

Signed-off-by: Magnus Damm <damm@opensource.se>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
4138b74066cc33ede31bfd6cb2b7a5e685cfd327 19-Aug-2009 Kuninori Morimoto <morimoto.kuninori@renesas.com> sh: Add EcoVec (SH7724) board support

This adds preliminary support for the EcoVec board.

Signed-off-by: Kuninori Morimoto <morimoto.kuninori@renesas.com>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
bd353861c735b2265c9d8b2559960c693e7c68ab 13-Aug-2009 Matt Fleming <matt@console-pimps.org> sh: dwarf unwinder support.

This is a first cut at a generic DWARF unwinder for the kernel. It's
still lacking DWARF64 support and the DWARF expression support hasn't
been tested very well but it is generating proper stacktraces on SH for
WARN_ON() and NULL dereferences.

Signed-off-by: Matt Fleming <matt@console-pimps.org>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
fdeb076f20df14b1c7f2817362172548d146b121 29-Jul-2009 Paul Mundt <lethal@linux-sh.org> sh: Add romImage target to archhelp.

Adds an archhelp blurb for the romImage target so it is reflected in
'make help'.

Signed-off-by: Paul Mundt <lethal@linux-sh.org>
3c928320b2254cb6c8d8a7919a1fcf94ca7cae66 29-Jul-2009 Magnus Damm <damm@igel.co.jp> sh: romImage support V2

This patch contains support for the romImage build target V2.

The resulting romImage file should be burned to rom
or flash and could be used as small boot loader.

Board code should keep their setup code in the file
romimage.h located in their mach include directory.

Signed-off-by: Magnus Damm <damm@igel.co.jp>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
e7d165146a7de5ceb4f68e188b2679f003744f54 22-Jul-2009 Magnus Damm <damm@igel.co.jp> sh: kfr2r09 board support - SCIF console

This patch adds basic kfr2r09 board support. Only
the SCIF1 console is supported with this patch, but
this patch and a proper sh7724 configuration is all
that is needed. Combine with an initramfs to have a
small RAM based kernel and distribution booted as
zImage from RAM via JTAG.

Signed-off-by: Magnus Damm <damm@igel.co.jp>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
ef9b542fce00dafc6bb1d9097b045a777f4a2382 21-Jul-2009 Paul Mundt <lethal@linux-sh.org> sh: bzip2/lzma uImage support.

This builds on the bzip2/lzma zImage support change and wires it up for
uImages. Based on the blackfin implementation.

Signed-off-by: Paul Mundt <lethal@linux-sh.org>
473d1cf4ee623b043790838bcf77e77958840bf2 11-Jul-2009 Paul Mundt <lethal@linux-sh.org> sh: Decouple mcount from ftrace.

This adds a general CONFIG_MCOUNT in order to permit mcount generation
without ftrace support. This is primarily for allowing platforms to
enable aggressive stack overflow checking without having to enable ftrace
support. Based on the sparc64 implementation.

Signed-off-by: Paul Mundt <lethal@linux-sh.org>
c1d0d32a603ed06377f404adf2c538de33bb3634 10-Jun-2009 Paul Mundt <lethal@linux-sh.org> sh: plug vsyscall dir in to archclean.

The vsyscall targets are presently not cleaned up, so just handle it in
the archclean rule.

Reported-by: Magnus Damm <damm@igel.co.jp>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
f9e2b97dc2cf832ccceea2a2e6eccc4bc9af72cf 26-May-2009 Paul Mundt <lethal@linux-sh.org> sh: Add a KBUILD_DEFCONFIG for sh64.

Signed-off-by: Paul Mundt <lethal@linux-sh.org>
457daa2b66e07bbd2280b9f8d2b03e800f357243 09-May-2009 Paul Mundt <lethal@linux-sh.org> sh: Hook up cc-cross-prefix support.

This implements a simple case that just iterates through the common
cases, looking at UTS_MACHINE for hints.

Signed-off-by: Paul Mundt <lethal@linux-sh.org>
b20883562455060272126c36563a7d8edafc30d3 09-May-2009 Paul Mundt <lethal@linux-sh.org> sh: Provide a BITS definition, use it in the arch/sh/boot/ Makefiles.

This introduces a BITS export that can handily be picked up by Makefiles
for cleaner sharing. Reflect its use in arch/sh/boot/compressed/ in
preparation for unifying the Makefiles.

Signed-off-by: Paul Mundt <lethal@linux-sh.org>
7b022d07a0fd2ce02d4456b732c674ff1d16f5ce 09-May-2009 Paul Mundt <lethal@linux-sh.org> sh: Tidy up the ldscript output format specifier.

Tie this in to the Makefile directly, where we already know what we are
running on. This tidies up the linker script a bit, and is prep work for
unifying the arch/sh/boot/compressed linker scripts.

Signed-off-by: Paul Mundt <lethal@linux-sh.org>
30d88cf52f229c3e0c90b8d71036960ccc2db4e2 08-May-2009 Paul Mundt <lethal@linux-sh.org> sh: Kill off extra cflags Kconfig entry.

There is no real reason to use this anymore, as the build system
generally knows what it is doing with regards to cflags mangling.

Signed-off-by: Paul Mundt <lethal@linux-sh.org>
cb3a86c89ebdf917b88665f70e06863986fbab5c 08-May-2009 Paul Mundt <lethal@linux-sh.org> sh: Kill off sh64's hand-rolled syscall tracer.

This is no longer necessary, as there are now sufficient generic
alternatives available.

Signed-off-by: Paul Mundt <lethal@linux-sh.org>
ae68df5635a191c7edb75f5c1c1406353cb24a9f 10-Mar-2009 Paul Mundt <lethal@linux-sh.org> sh: Generate uImage by default on Urquell board.

Signed-off-by: Paul Mundt <lethal@linux-sh.org>
6f5cd2bd59c3bbaf073a7a52fcdefded939bd306 21-Dec-2008 Paul Mundt <lethal@linux-sh.org> sh: mach-rsk: Use uImage generation by default for rsk7201/7203.

Signed-off-by: Paul Mundt <lethal@linux-sh.org>
180ae2037f5bc33b0597ddbb76d36b08a74a238a 12-Dec-2008 Paul Mundt <lethal@linux-sh.org> sh: Provide sdivsi3/udivsi3/udivdi3 for sh64, kill off libgcc linking.

This moves in the necessary libgcc bits and kills off the libgcc linking
for sh64 kernels as well.

Signed-off-by: Paul Mundt <lethal@linux-sh.org>
ea0aac1e1327476d2f6a38f08145281237cf1b03 08-Dec-2008 Paul Mundt <lethal@linux-sh.org> sh: Consolidate rsk7203/7201 in to a new mach-rsk.

RSK+ platforms have quite a few characteristics in common, so roll them
together in to a shiny new RSK mach-type.

Signed-off-by: Paul Mundt <lethal@linux-sh.org>
5dd614761f05f56b93c94541aa92e6449920516c 25-Nov-2008 Paul Mundt <lethal@linux-sh.org> sh: Re-add support for best fit ISA tuning if none is available.

This was removed in the libgcc integration, but there are still some
compilers that need this. We also relax the rules on the ISA tuning in
the cases where there are no matches for the CPU tuning and adopt the
-any default, which matches the intent of the isa-y target list. This
compensates for mismatches where binutils supports a wide array of
targets whilst the compiler is much more restricted.

Signed-off-by: Paul Mundt <lethal@linux-sh.org>
8bcc5c1c332af97ba731f99fda780a47911e476f 20-Nov-2008 Paul Mundt <lethal@linux-sh.org> sh: Add -m4al tuning for SH4AL-DSP.

Signed-off-by: Paul Mundt <lethal@linux-sh.org>
709420dd4e75083ee7920e61c2d0bcc3db9b7405 18-Nov-2008 Paul Mundt <lethal@linux-sh.org> sh: Specify sane default image targets for the SH-2 platforms.

Signed-off-by: Paul Mundt <lethal@linux-sh.org>
1aad54a99b6ce316c851ba99b2efe41998cfd37d 18-Nov-2008 Paul Mundt <lethal@linux-sh.org> sh: Migrate necessary libgcc bits in to arch/sh/lib for SUPERH32.

This moves in the necessary libgcc bits for SUPERH32 and drops the
libgcc linking for the regular targets. This in turn allows us to rip
out quite a few hacks both in sh_ksyms_32 and arch/sh/Makefile.

Signed-off-by: Paul Mundt <lethal@linux-sh.org>
ddb72b02414228844ad46f7cbd42eccea01fb485 31-Oct-2008 Paul Mundt <lethal@linux-sh.org> sh: SHmedia ISA tuning fixups.

SH-5 doesn't support any elaborate ISA inheritance schemes (-dsp, -up,
etc.), so only bother with that if we are building an sh32 kernel.

Signed-off-by: Paul Mundt <lethal@linux-sh.org>
b2d86a3fd9855380598c0c039e712a20086e119f 28-Oct-2008 Paul Mundt <lethal@linux-sh.org> sh: Simplify and lock down the ISA tuning.

The ISA tuning as it is today can not cope with all of the different
variations that are possible, so all we can do is a best attempt based on
the CPU family. The DSP and FPU generation are already at odds with each
other, and the nommu tuning we weren't handling at all. Additionally,
for platforms that never had an FPU, the -nofpu variant never existed,
meaning that we would lose out on family granular tuning completely in
certain cases.

With tat out of the way, we were also using -up versions, allowing for
later instructions that branched off of a particular subset of the ISA,
but are not actually reflected on the hardware being targetted. This
leads to some confusion, and the possibility of bogus instructions on
older parts. Kill that off and lock it down to the family being built
for specifically.

Signed-off-by: Paul Mundt <lethal@linux-sh.org>
1a30603233fdd104aba430fd8f3443160474b6bb 28-Oct-2008 Paul Mundt <lethal@linux-sh.org> sh: sh7785lcr: Select uImage as default image target.

Signed-off-by: Paul Mundt <lethal@linux-sh.org>
8a2fd5f3ab6535035f08d7d0fda90abe73c6d282 28-Oct-2008 Paul Mundt <lethal@linux-sh.org> sh: Fix FPU tuning on toolchains with mismatched multilib targets.

Presently there is very little standing in the way of using an SH-4
toolchain for building an SH-2 kernel, and vice versa. Binutils itself
has no limitations whatsoever and supports explicit ISA hinting, which
we already use with varying degrees of success today.

This leaves GCC as the odd one out, due to a rather dubious policy
decision by the GCC folks to not include all of the CPU family variants
in the default list of multilib targets in GCC4. Despite best efforts to
the contrary, libgcc itself already contains awareness of the various CPU
types and remains generally usable, allowing it to safely be referenced
even on a mismatched target (and indeed, explicit ISA tuning by binutils
keeps us honest in terms of ensuring that we do not link incompatible
objects in).

In order to support this, a couple of changes had to be made. Firstly,
the introduction of MAYBE_DECLARE_EXPORT(), which provides a __weak
extern reference for libgcc resident routines when finer-grained
-m<cpu-family> based tuning is not supported by the toolchain. This
fixes up the __sdivsi3_i4i and __udivsi3_i4i references when dealing
with SH-2 kernels linked with an SH-4 libgcc. Secondly, in case where we
are unable to find a suitable match for CPU family tuning but still
have a toolchain that defaults to FP instruction generation, a suitable
nofpu target must be selected. This is accomplished by selecting the
first nofpu multilib target supported by the toolchain, which is
also necessary for selecting the proper libgcc to link against.

Signed-off-by: Paul Mundt <lethal@linux-sh.org>
7639a4541f7e7abb1295ff8ab39cc2f5842239ae 20-Oct-2008 Paul Mundt <lethal@linux-sh.org> sh: Migrate common board headers to mach-common/.

Signed-off-by: Paul Mundt <lethal@linux-sh.org>
09558748464a9afafe2848a3ad4cfd509c9b0fb6 12-Sep-2008 Paul Mundt <lethal@linux-sh.org> sh: Provide a fixed UTS_MACHINE definition for sh64.

Signed-off-by: Paul Mundt <lethal@linux-sh.org>
49de935c107a53b0eba336efceb1dc3a8be64f87 02-Aug-2008 Adrian Bunk <bunk@kernel.org> sh: fix LIBGCC

Commit f15cbe6f1a4b4d9df59142fc8e4abb973302cf44
(sh: migrate to arch/sh/include/) moved KBUILD_CFLAGS
(which is used by LIBGCC) below LIBGCC, causing build
errors like the following:

<-- snip -->

...
LD .tmp_vmlinux1
arch/sh/kernel/built-in.o: In function `module_clk_recalc':
clock-sh4.c:(.text+0x80f0): undefined reference to `__udivsi3_i4i'
...
make[1]: *** [.tmp_vmlinux1] Error 1

<-- snip -->

Reported-by: Adrian Bunk <bunk@kernel.org>
Signed-off-by: Adrian Bunk <bunk@kernel.org>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
4385e12b291a6816987cb88a74fc116f520180f8 02-Aug-2008 Paul Mundt <lethal@linux-sh.org> sh: Revert the location change of auto-generated asm/machtypes.h

This ended up causing build breakage on O= builds, as reported by Adrian:

<-- snip -->

...
CC init/main.o
In file included from /home/bunk/linux/kernel-2.6/git/linux-2.6/arch/sh/include/asm/irq.h:4,
from /home/bunk/linux/kernel-2.6/git/linux-2.6/include/linux/irq.h:23,
from /home/bunk/linux/kernel-2.6/git/linux-2.6/arch/sh/include/asm/hardirq.h:5,
from /home/bunk/linux/kernel-2.6/git/linux-2.6/include/linux/hardirq.h:7,
from /home/bunk/linux/kernel-2.6/git/linux-2.6/include/asm-generic/local.h:5,
from /home/bunk/linux/kernel-2.6/git/linux-2.6/arch/sh/include/asm/local.h:4,
from /home/bunk/linux/kernel-2.6/git/linux-2.6/include/linux/module.h:19,
from /home/bunk/linux/kernel-2.6/git/linux-2.6/init/main.c:13:
/home/bunk/linux/kernel-2.6/git/linux-2.6/arch/sh/include/asm/machvec.h:15:27:
error: asm/machtypes.h: No such file or directory
make[2]: *** [init/main.o] Error 1

<-- snip -->

So we simply move machtypes.h back to its original place. asm-offsets.h is
still generated there regardless, until such a time that we find a better place
to stash auto-generated files.

Reported-by: Adrian Bunk <bunk@kernel.org>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
9b4d10ff247a440d3d4ec130866f7f5b7d1c7c14 29-Jul-2008 Paul Mundt <lethal@linux-sh.org> sh: Kill off stray mach-rsk7203 reference.

Signed-off-by: Paul Mundt <lethal@linux-sh.org>
c8b5d9dcbc94ae5e7d9ed647246df4454d25332e 29-Jul-2008 Paul Mundt <lethal@linux-sh.org> sh: Move out individual boards without mach groups.

Signed-off-by: Paul Mundt <lethal@linux-sh.org>
93dc544cf4892b9188d7d0d4946b0394020b4551 29-Jul-2008 Paul Mundt <lethal@linux-sh.org> sh: Provide common CPU headers, prune the SH-2 and SH-2A directories.

Signed-off-by: Paul Mundt <lethal@linux-sh.org>
939a24a6df24649cea9fd0ff54fe71ee0dc1d61e 29-Jul-2008 Paul Mundt <lethal@linux-sh.org> sh: Move out the solution engine headers to arch/sh/include/mach-se/

Signed-off-by: Paul Mundt <lethal@linux-sh.org>
da2014a2b080e7f3024a4eb6917d47069ad9620b 29-Jul-2008 Paul Mundt <lethal@linux-sh.org> sh: Shuffle the board directories in to mach groups.

This flattens out the board directories in to individual mach groups,
we will use this for getting rid of unneeded directories, simplifying
the build system, and becoming more coherent with the refactored
arch/sh/include topology.

Signed-off-by: Paul Mundt <lethal@linux-sh.org>
cfb81f361a3e73bb4eb7207a88f720e2f652dd63 29-Jul-2008 Paul Mundt <lethal@linux-sh.org> sh: Switch KBUILD_DEFCONFIG to shx3_defconfig.

Signed-off-by: Paul Mundt <lethal@linux-sh.org>
f15cbe6f1a4b4d9df59142fc8e4abb973302cf44 29-Jul-2008 Paul Mundt <lethal@linux-sh.org> sh: migrate to arch/sh/include/

This follows the sparc changes a439fe51a1f8eb087c22dd24d69cebae4a3addac.

Most of the moving about was done with Sam's directions at:

http://marc.info/?l=linux-sh&m=121724823706062&w=2

with subsequent hacking and fixups entirely my fault.

Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
cbe9da029d9cc4fff59d559789885079a84a0af8 16-Jul-2008 Yoshihiro Shimoda <shimoda.yoshihiro@renesas.com> sh: Renesas R0P7785LC0011RL board support

This adds initial support for the Renesas R0P7785LC0011RL board.
This patch supports 29bit address mode only.

Signed-off-by: Yoshihiro Shimoda <shimoda.yoshihiro@renesas.com>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
4cec1a37ba7d9dce6ed5d8259b95272100a98b1f 06-Jun-2008 Nobuhiro Iwamatsu <iwamatsu.nobuhiro@renesas.com> sh: Renesas Solutions SH7763RDP board support

This patch adds basic support for the SH7763RDP board.
This supports a basic stuff provided in SH7763, like SCIF,
NOR Flash and USB host.

Signed-off-by: Nobuhiro Iwamatsu <iwamatsu.nobuhiro@renesas.com>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
04e917b606ffe6ec10fb75c21447162cba31f6b6 06-Jun-2008 Yusuke Goda <goda.yusuke@renesas.com> sh: Add support Renesas Solutions AP-325RXA board

This board is SH7723 base board.

This has SCIF, LCDC, USB Host controler, NOR/NAND Flash, Sound,
Ether and other.

This patch supports SCIF, NOR Flash.

Signed-off-by: Yusuke Goda <goda.yusuke@renesas.com>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
3787aa112c653b34b6f901b2eaae2b62f9582569 19-May-2008 Paul Mundt <lethal@linux-sh.org> sh: RSK+ 7203 board support.

This adds initial support for the RTE RSK+ SH7203 board.

Signed-off-by: Paul Mundt <lethal@linux-sh.org>
e50901338b23cc173f464ff8e0179c4354d16877 09-Jun-2008 Paul Mundt <lethal@linux-sh.org> sh: Add -mno-fdpic to default flags.

Presently the --fdpic specifier and the --isa matching clash when
building with FDPIC toolchains. As we have no interest in building the
kernel with --fdpic in the first place, always try to add in -mno-fdpic
to the default flags.

Signed-off-by: Paul Mundt <lethal@linux-sh.org>
f5f826c685464301e4316a9321eb95801c653158 31-Mar-2008 Adrian Bunk <bunk@kernel.org> sh: remove the broken SH_MPC1211 support

SH_MPC1211 has been marked as BROKEN for some time.

Unless someone is working on reviving it now, I'd therefore suggest this
patch to remove it.

Signed-off-by: Adrian Bunk <bunk@kernel.org>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
6e862995a07629858bfa16e0991a258de35007f3 21-Mar-2008 Yoshihiro Shimoda <shimoda.yoshihiro@renesas.com> sh: Add support for Solution Engine SH7721 board

Add support for Solution Engine SH7721 board(MS7721RP01).

Signed-off-by: Yoshihiro Shimoda <shimoda.yoshihiro@renesas.com>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
49a5ba46c5d1e34bcb07634157b29d7414ce13bd 20-Mar-2008 Franck Bui-Huu <fbuihuu@gmail.com> sh: Use relative paths for mach/cpu symlinks.

When building the kernel without passing the O= command line parameter
there's no point to use absolute paths for them.

Usually relative paths are preferred because they survive directory
moves, work across networked file systems and chrooted environments.

Absolute paths are still used if an output directory is given.

Signed-off-by: Franck Bui-Huu <fbuihuu@gmail.com>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
e7d7deca60c01d844a4d8e5644f4aecaf0e3bee4 06-Mar-2008 Paul Mundt <lethal@linux-sh.org> sh: Fix up SH7710 VoIP-GW build.

The only board-specific bits that existed here were for setting up the
IRQs, which are now handled by the SH7710 CPU support code instead. As
there's nothing else to do for setup, kill off the board support code
and have the defconfig use the generic machvec instead.

Signed-off-by: Paul Mundt <lethal@linux-sh.org>
70f784ec1ddacf8e17da2663f842efac029da796 06-Feb-2008 Magnus Damm <magnus.damm@gmail.com> sh: migor board support

This patch adds basic support for the Migo-R board.

Only simple stuff provided by the cpu specific sh7722 code is in place now,
like serial console port, timers and usb gadget. There is also partial support
for the smc91c111 ethernet controller - unfortunately some driver header file
also needs patching (not included here) to make the driver get IRQ sense
information from the platform data.

Signed-off-by: Magnus Damm <damm@igel.co.jp>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
4862ec073975e28f432f164405e60fa6f5c9d071 22-Jan-2008 Nicholas Beck <nbeck@mpc-data.co.uk> sh: Add support for SDK7780 board.

Add support for Renesas Technology Europe SDK7780 board.

Signed-off-by: Nicholas Beck <nbeck@mpc-data.co.uk>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
1b1e037a8974801cb3e1da3281ca3a88cbec3de8 22-Jan-2008 Paul Mundt <lethal@linux-sh.org> sh: Kill off -traditional for linker script.

Some of Sam's new work in the kbuild queue depend on ## concatenation
within the linker script, which doesn't work when -traditional is
enabled. -traditional is a legacy remnant anyways, and we no longer
require it for anything, so kill it off completely.

Noted-by: Andreas Schwab <schwab@suse.de>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
b87bf74724750d6e89bf86f40ba86f743607341b 19-Jan-2008 Paul Mundt <lethal@linux-sh.org> sh: Drop r7780rp_defconfig, use r7780mp_defconfig as kbuild default.

Signed-off-by: Paul Mundt <lethal@linux-sh.org>
a5350a9686efa65cbd2ad4677bcb9372c7ad05c7 19-Jan-2008 Paul Mundt <lethal@linux-sh.org> sh: Kill off dead HS771RVoIP board support.

Signed-off-by: Paul Mundt <lethal@linux-sh.org>
29ec6778a49d30c47345afdfaf1d03acff3cf656 14-Jan-2008 Magnus Damm <damm@igel.co.jp> sh: remove voyagergx

This patch removes redundant irq handling code together with unused
consistent alloc code. R2D uart setup code is changed to use
sm501-regs.h and unused header files are removed.

Signed-off-by: Magnus Damm <damm@igel.co.jp>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
74d99a5e262229ee865f6f68528d10b82471ead6 26-Nov-2007 Paul Mundt <lethal@linux-sh.org> sh: SH-2A FPU support.

Signed-off-by: Kieran Bingham <kbingham@mpc-data.co.uk>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
03713bd226caece8e089490a47f093f5193e5e96 23-Nov-2007 Paul Mundt <lethal@linux-sh.org> sh: Move mach-cayman in with the rest of the boards.

Signed-off-by: Paul Mundt <lethal@linux-sh.org>
3e0137f6c7852aff12db0da7bb45f8b3a0a704c8 23-Nov-2007 Paul Mundt <lethal@linux-sh.org> sh: Kill off the mach-harp and mach-sim machtypes.

Signed-off-by: Paul Mundt <lethal@linux-sh.org>
35a74499a4f5abbfcdf85629d696c8cfdbd2167f 23-Nov-2007 Paul Mundt <lethal@linux-sh.org> sh: Fix up default zImage target for sh32.

This was using the absolute path, which was confusing the make target.
Switch it to just 'zImage', as per powerpc.

Signed-off-by: Paul Mundt <lethal@linux-sh.org>
d088f323574ea932a9bfc65302120e1526131887 21-Nov-2007 Paul Mundt <lethal@linux-sh.org> sh: Consolidate sh/sh64 Makefiles.

Signed-off-by: Paul Mundt <lethal@linux-sh.org>
c2f1755becdc7c78ca07a516d358d9fa7a0a2707 21-Nov-2007 Paul Mundt <lethal@linux-sh.org> sh: Tidy up KBUILD_IMAGE for sh64.

Signed-off-by: Paul Mundt <lethal@linux-sh.org>
36763b22bee56713057762bb0756e8075b5bb918 21-Nov-2007 Paul Mundt <lethal@linux-sh.org> sh: Switch SH-5 to use CONFIG_PAGE_OFFSET.

Signed-off-by: Paul Mundt <lethal@linux-sh.org>
b4db3aec8351c78df77bbd95f1951a4dd0246853 20-Nov-2007 Paul Mundt <lethal@linux-sh.org> sh: Fix up the _stext references for SH-5.

Signed-off-by: Paul Mundt <lethal@linux-sh.org>
4c91d6b105af5ab3011158addbd23f038aee6a00 11-Nov-2007 Paul Mundt <lethal@linux-sh.org> sh: Fix up the head-y targets for _32 and _64.

Signed-off-by: Paul Mundt <lethal@linux-sh.org>
c20c20047b1aa4ba6fc2bb4e9ab91402026c3e71 08-Nov-2007 Paul Mundt <lethal@linux-sh.org> sh: Plug SH-5 in to arch/sh/Makefile.

Adds the ISA tuning and a lib64 rule.

Signed-off-by: Paul Mundt <lethal@linux-sh.org>
4d2718d00de9896b27cec86b03c50cbfcf3afde4 30-Oct-2007 Manuel Lauss <mano@roarinelk.homelinux.net> sh: fix zImage build with >=binutils-2.18

Starting with binutils somewhere around 2.17.50.14 the vmlinux file
contains a ".note.gnu.build-id" section which doesn't get removed when
the zImage is built; resulting in a 2GB intermediate file and a broken
zImage.

Signed-off-by: Manuel Lauss <mano@roarinelk.homelinux.net>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
222d394d30e74bb7a2a65029fcea68107b0d0eb6 15-Oct-2007 Sam Ravnborg <sam@neptun.(none)> kbuild: enable 'make AFLAGS=...' to add additional options to AS

The variable AFLAGS is a wellknown variable and the usage by
kbuild may result in unexpected behaviour.
On top of that several people over time has asked for a way to
pass in additional flags to gcc.

This patch replace use of AFLAGS with KBUILD_AFLAGS all over
the tree.

Patch was tested on following architectures:
alpha, arm, i386, x86_64, mips, sparc, sparc64, ia64, m68k, s390

Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
a0f97e06a43cf524e616f09e6af3398e1e9c1c5b 14-Oct-2007 Sam Ravnborg <sam@neptun.(none)> kbuild: enable 'make CFLAGS=...' to add additional options to CC

The variable CFLAGS is a wellknown variable and the usage by
kbuild may result in unexpected behaviour.
On top of that several people over time has asked for a way to
pass in additional flags to gcc.

This patch replace use of CFLAGS with KBUILD_CFLAGS all over the
tree and enabling one to use:
make CFLAGS=...
to specify additional gcc commandline options.

One usecase is when trying to find gcc bugs but other
use cases has been requested too.

Patch was tested on following architectures:
alpha, arm, i386, x86_64, mips, sparc, sparc64, ia64, m68k

Test was simple to do a defconfig build, apply the patch and check
that nothing got rebuild.

Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
ded5431ff311d963888ac951131a04fe7633aa79 12-Sep-2007 Markus Brunner <super.firetwister@gmail.com> sh: Magic Panel R2 board support.

This adds support for the SH7720 (SH3-DSP) based Magic Panel R2
board.

Signed-off-by: Markus Brunner <super.firetwister@gmail.com>
Signed-off by: Mark Jonas <toertel@gmail.com>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
f8b40d8ce86035b126a27a57ed9139c08ae3ebf1 12-Aug-2007 Magnus Damm <damm@igel.co.jp> sh: replace sh specific CONFIG_VOYAGERGX with CONFIG_MFD_SM501

This patch replaces all instances of CONFIG_VOYAGERGX with
CONFIG_MFD_SM501. While at it we make sure the r2d code compiles
both with and without SM501.

Signed-off-by: Magnus Damm <damm@igel.co.jp>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
94807a33dc4aaf522d3eab62db225361e5a97b2a 08-Aug-2007 Paul Mundt <lethal@linux-sh.org> sh: Initial support for SH-X3 prototype board.

This adds initial support for the SH-X3 prototype board.
Only simple logic for the IRQ controller and the heartbeat driver
for now.

Signed-off-by: Paul Mundt <lethal@linux-sh.org>
da2f5f7bf4a39f9613fc04d7030cffb63e435e1d 21-Aug-2007 Paul Mundt <lethal@linux-sh.org> sh: Fix DSP opcode regression for SH3-DSP parts.

Older versions of binutils do not support -Wa,-isa= tuning, which is
something we rely on for enabling DSP opcode support on the newer
parts. SH3-DSP parts can still be handled with -Wa,-dsp even if the
newer parts require the newer versions of binutils for supporting the
new opcodes.

This was broken in -rc1 when the SH4AL-DSP support was being reworked,
and is needed to get SH3-DSP working with older toolchains again.

Reported-by: Markus Brunner <super.firetwister@gmail.com>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
d89ddd1c847637d91625c8cb6b0d064e1717057c 25-Jul-2007 Magnus Damm <damm@igel.co.jp> sh: remove support for sh7300 and solution engine 7300

This patch removes old dead code:
- kill off sh7300 cpu support
- get rid of broken solution engine 7300 board support

Signed-off-by: Magnus Damm <damm@igel.co.jp>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
870e8a24380cf1854dc1bb5fa5abebb44d82674b 25-Jul-2007 Magnus Damm <damm@igel.co.jp> sh: remove support for sh73180 and solution engine 73180

This patch removes old dead code:
- kill off sh73180 cpu support
- get rid of broken solution engine 73180 board support

Signed-off-by: Magnus Damm <damm@igel.co.jp>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
4aafae27d0ce73f8507b8983b36006b734aa343a 17-Jul-2007 Kristoffer Ericson <kristoffer.ericson@gmail.com> sh: hd64461 tidying.

Kill off the hd64461 io.c, as all of the hd64461 users are now
using the generic I/O routines.

[ hd64461/ moved to hd64461.c by Paul ]

Signed-off-by: Kristoffer Ericson <kristoffer.ericson@gmail.com>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
aab1b16a61d653173b1c5f158c51ec08dd6605b0 12-Jul-2007 Paul Mundt <lethal@linux-sh.org> sh: Don't let SH-4A clobber SH-4 CFLAGS.

Older compilers don't support the -m4a{,nofpu} flags, which has the
side-effect of allowing FP operations to be emitted. Switch this to
incremental tuning, so we at least have -m4-nofpu as a fallback for
the gcc3 toolchains.

Without this, certain modules emit references to __udivsi3_i4 and
__sdivsi3_i4.

Reported-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
5296307de63f1949d601b3515f8b1a0a859c5847 07-Jul-2007 Paul Mundt <lethal@linux-sh.org> sh: Drop -Wa,-dsp for DSP tuning.

We already hand off the proper ISA variant with the dsp specifier
appended, so we don't need to explicitly set -dsp. This causes some
confusion with certain toolchains that are restricted to -dsp family
opcodes artificially.

Signed-off-by: Paul Mundt <lethal@linux-sh.org>
880dec100761f4fbc5fa5d22e658a8718828f04e 06-Jul-2007 Paul Mundt <lethal@linux-sh.org> sh: Add cpu and mach links to CLEAN_FILES.

These weren't being cleaned up, so add them to the CLEAN_FILES.

Signed-off-by: Paul Mundt <lethal@linux-sh.org>
b9601c5e59dd25693345558a301e833741bf5874 08-Jun-2007 Paul Mundt <lethal@linux-sh.org> sh: Kill off dead SH7604 support.

This was added during 2.5.x, but was never moved along. This
can easily be resurrected if someone has one they wish to work
with, but it's not worth keeping around in its current form.

Signed-off-by: Paul Mundt <lethal@linux-sh.org>
6240d92f2f2fb74094b66b3510733fa0a1e2631a 01-Jun-2007 Paul Mundt <lethal@linux-sh.org> sh: Wrap CPU tuning through cc-option.

Some compilers don't support the explicit CPU tuning, while binutils
is still able to handle the special subtype-specific opcodes. Make
the CFLAG optional, falling back on the compiler default if nothing
better exists.

Signed-off-by: Paul Mundt <lethal@linux-sh.org>
fd8f20e8e2f8f1d9201086bff444c8d35f0a6a45 15-May-2007 Paul Mundt <lethal@linux-sh.org> sh: Rip out special unknown machvec.

This kills off the BareCPU board as a "special" machvec, rather,
we leave this as a default for when no other vector is available,
or when we want to use it in combination with other vectors for
testing with generic ops. As sh_mv is copied out anyways (or
overloaded when an alternate vector is explicitly selected), this
doesn't consume any additional memory.

The generic machvec can be forcibly selected with sh_mv=generic,
or by not having any other boards enabled.

Signed-off-by: Paul Mundt <lethal@linux-sh.org>
25f8151bdcdd62c6b879e3669a562c0d329eee4a 14-May-2007 Paul Mundt <lethal@linux-sh.org> sh: Get multiple boards in one image working again.

This tidies up the build rules and permits multiple boards to be
linked in to the same kernel. The earlier Kconfig work ensures that
the CPU configuration is consistent across the boards, as this is
the only thing that we can't do dynamically.

Signed-off-by: Paul Mundt <lethal@linux-sh.org>
4e1c20842044da32f771631049b7082dad63a9c5 31-May-2007 Andrew Morton <akpm@linux-foundation.org> sh: support older gcc's

Make my version of gcc happy.

Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
6865f0ea6ad91fec3ae7831c49d48b5a7db4b428 01-May-2007 Ryusuke Sakato <sakato.ryusuke@renesas.com> sh: Solution Engine 7722 board support.

This adds more full-featured support for the SH7722 Solution Engine.
Previously this was using the generic board, and lacked most of the
peripheral support.

Signed-off-by: Ryusuke Sakato <sakato.ryusuke@renesas.com>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
b75762302e144b73f12b72c59b99401d036680aa 28-Mar-2007 Nobuhiro Iwamatsu <nobuhiro.iwamatsu.zh@hitachi.com> sh: SH7780 Solution Engine board support.

This adds support for the SH7780-based Solution Engine reference board.

Signed-off-by: Nobuhiro Iwamatsu <nobuhiro.iwamatsu.zh@hitachi.com>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
c86c5a910451dd5a30e62a9e36d8e9b3c7a0c1d1 26-Mar-2007 Nobuhiro Iwamatsu <iwamatsu@nigauri.org> sh: L-BOX RE2 support.

This adds support for the L-BOX RE2 router.

http://www.nttcom.co.jp/l-box/

L-BOX RE2 is a SH7751R-based router. It has CF, Cardbus, serial,
and LAN x2. This is one of the very few SH boards that a general
person can obtain now.

The L-BOX shipped with a 2.4.28 kernel, this is a rewritten patch
adding it to current git.

Signed-off-by: Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
32351a28a7e1f2c68afbe559dd35e1ad0301be6d 12-Mar-2007 Paul Mundt <lethal@linux-sh.org> sh: Add SH7785 Highlander board support (R7785RP).

This adds preliminary support for the SH7785-based Highlander board.
Some of the Highlander support code is reordered so that most of it
can be reused directly.

This also plugs in missing SH7785 checks in the places that need it,
as this is the first board to support the CPU.

Signed-off-by: Paul Mundt <lethal@linux-sh.org>
fa5da2f7bdcf885efe65a37df13907c7d72296f6 08-Mar-2007 Paul Mundt <lethal@linux-sh.org> sh: Bring kgdb back from the dead.

This code has suffered quite a bit of bitrot, do some basic
tidying to get it to a reasonably functional state again.
This gets the basic support and the console working again.

Signed-off-by: Paul Mundt <lethal@linux-sh.org>
e65fa9f59e9230b72ac298d445b4a18a4eefeb34 14-Feb-2007 Paul Mundt <lethal@linux-sh.org> sh: Kill off dead bigsur and ec3104 boards.

Neither of these have had any maintenance in years, and there's
no interest in keeping them straggling along. These have already
been slated for removal some time, so finally just get rid of them.

Signed-off-by: Paul Mundt <lethal@linux-sh.org>
702dd80375046d36f892a0f86c83f8549c623b35 18-Dec-2006 Paul Mundt <lethal@linux-sh.org> sh: Use proper SH-2A CFLAGS on newer compilers.

-m2 doesn't end up working particularly well when we've got a constrained
toolchain target. Switch to the same semantics used by SH-4A to attempt
to get it right. Spotted by Alex Song <songqf9@yahoo.ca>.

Signed-off-by: Paul Mundt <lethal@linux-sh.org>
cf00e20444fc39fe37691ca32919061bf65527b0 07-Dec-2006 Paul Mundt <lethal@linux-sh.org> sh: Add uImage and S-rec generation support.

Add a couple of new targets, both for uImage and S-rec generation.

Signed-off-by: Paul Mundt <lethal@linux-sh.org>
f36af73304555849985b1fb5c0821c1bfab3a5a0 06-Dec-2006 Paul Mundt <lethal@linux-sh.org> sh: set KBUILD_IMAGE to something sensible.

This was missing for sh too, wire it up..

Signed-off-by: Paul Mundt <lethal@linux-sh.org>
f0bc814cfbc212683c882e58b3d1afec6b3e3aa3 21-Nov-2006 Stuart Menefy <stuart.menefy@st.com> sh: gcc4 support.

This fixes up the kernel for gcc4. The existing exception handlers
needed some wrapping for pt_regs access, acessing the registers
via a RELOC_HIDE() pointer.

The strcpy() issues popped up here too, so add -ffreestanding and
kill off the symbol export.

Signed-off-by: Stuart Menefy <stuart.menefy@st.com>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
53644087a607040a56d883df612b588814a56f11 21-Nov-2006 Paul Mundt <lethal@linux-sh.org> sh: Explicit endian selection support.

Previously big endian was simply assumed if little endian was
not set, which led to some cflags ordering issues. There's not
much point to not having a big endian option, so shove one in
a choice and wire it up in the Makefile.

This lets us clean up some of the cflags ordering while we're
at it.

Signed-off-by: Paul Mundt <lethal@linux-sh.org>
9d4436a6fbc8c5eccdfcb8f5884e0a7b4a57f6d2 05-Nov-2006 Yoshinori Sato <ysato@users.sourceforge.jp> sh: Add support for SH7206 and SH7619 CPU subtypes.

This implements initial support for the SH7206 (SH-2A) and SH7619
(SH-2) MMU-less CPUs.

Signed-off-by: Yoshinori Sato <ysato@users.sourceforge.jp>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
bc8fb5d0471473f775378d09db712dcb8eeece75 27-Sep-2006 Paul Mundt <lethal@linux-sh.org> sh: Solution Engine SH7343 board support.

This adds support for the SE7343 board.

Signed-off-by: Paul Mundt <lethal@linux-sh.org>
91b91d01416afba8d3f230a62b5d2784bd7af94a 27-Sep-2006 Paul Mundt <lethal@linux-sh.org> sh: SH7710VoIPGW board support.

This adds support for the SH7710 VoIP Gateway board.

Signed-off-by: Paul Mundt <lethal@linux-sh.org>
5a4053b23262afefa748e1e4c439931d4c27693b 27-Sep-2006 Paul Mundt <lethal@linux-sh.org> sh: Kill off dead boards.

None of these have been maintained in years, and no one seems to
be interested in doing so, so just get rid of them.

Signed-off-by: Paul Mundt <lethal@linux-sh.org>
51e22e7a05c1c6f2e38ac7459d3404e32e543b75 27-Sep-2006 Takashi YOSHII <takasi-y@ops.dti.ne.jp> sh: SHMIN board support.

This adds support for the SHMIN SH7706 board.

Signed-off-by: Takashi YOSHII <takasi-y@ops.dti.ne.jp>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
e5723e0eeb2dc16629e86d66785024ead9169000 27-Sep-2006 Paul Mundt <lethal@linux-sh.org> sh: Add support for SH7706/SH7710/SH7343 CPUs.

This adds support for the aforementioned CPU subtypes, and cleans
up some build issues encountered as a result.

Signed-off-by: Paul Mundt <lethal@linux-sh.org>
4b565680d16300acab0ff167e24f0ea289a6bd5d 27-Sep-2006 Takashi YOSHII <takasi-y@ops.dti.ne.jp> sh: math-emu support

This implements initial math-emu support, aimed primarily at SH-3.

Signed-off-by: Takashi YOSHII <takasi-y@ops.dti.ne.jp>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
ae31825e63e11188d96ad9c4d2d5d4e0fc798a75 27-Sep-2006 Paul Mundt <lethal@linux-sh.org> sh: Make O= builds work again.

Some of the paths were a bit broken, fix it up.

Signed-off-by: Paul Mundt <lethal@linux-sh.org>
bc8bff63bacea47561de34e04a17c79846ecfe91 27-Sep-2006 Paul Mundt <lethal@linux-sh.org> sh: Drop incdir rule for SE7751.

No longer needed..

Signed-off-by: Paul Mundt <lethal@linux-sh.org>
5283ecb5ccbdb90d49fce6488d3944bba63a591c 27-Sep-2006 Paul Mundt <lethal@linux-sh.org> sh: Add support for R7780RP and R7780MP boards.

This adds support for the Renesas SH7780 development boards,
R7780RP and R7780MP.

Signed-off-by: Paul Mundt <lethal@linux-sh.org>
373e68b5472d421cbd2703e7a77caf053f78c005 27-Sep-2006 Paul Mundt <lethal@linux-sh.org> sh: Board updates for I/O routine rework.

This updates the various boards for some of the recent I/O routine
updates.

Signed-off-by: Paul Mundt <lethal@linux-sh.org>
a09749dd86e9e93de10f12ab4ce4e90815b5650a 27-Sep-2006 Jamie Lenehan <lenehan@twibble.org> sh: Titan board support.

Add support for the titan board.

Signed-off-by: Jamie Lenehan <lenehan@twibble.org>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
94c0fa520cc169ccf661e9c03b5b95f74d1520b8 27-Sep-2006 kogiidena <kogiidena@eggplant.ddo.jp> sh: landisk board support.

This adds support for the I-O DATA Landisk.

Signed-off-by: kogiidena <kogiidena@eggplant.ddo.jp>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
4bcac20a7a01d49dffb5e88a8140efa34927c383 27-Sep-2006 Andriy Skulysh <askulysh@gmail.com> sh: hp6xx mach-type cleanups.

Some minor cleanups for the updated consolidated hp6xx
mach-type.

Signed-off-by: Andriy Skulysh <askulysh@gmail.com>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
2e3646e51b2d6415549b310655df63e7e0d7a080 09-Jun-2006 Roman Zippel <zippel@linux-m68k.org> kconfig: integrate split config into silentoldconfig

Now that kconfig can load multiple configurations, it becomes simple to
integrate the split config step, by simply comparing the new .config file with
the old auto.conf (and then saving the new auto.conf). A nice side effect is
that this saves a bit of disk space and cache, as no data needs to be read
from or saved into the splitted config files anymore (e.g. include/config is
now 648KB instead of 5.2MB).

Signed-off-by: Roman Zippel <zippel@linux-m68k.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
4f1933620f57145212cdbb1ac6ce099eeeb21c5a 05-Mar-2006 Paul Smith <psmith@gnu.org> kbuild: change kbuild to not rely on incorrect GNU make behavior

The kbuild system takes advantage of an incorrect behavior in GNU make.
Once this behavior is fixed, all files in the kernel rebuild every time,
even if nothing has changed. This patch ensures kbuild works with both
the incorrect and correct behaviors of GNU make.

For more details on the incorrect behavior, see:

http://lists.gnu.org/archive/html/bug-make/2006-03/msg00003.html

Changes in this patch:
- Keep all targets that are to be marked .PHONY in a variable, PHONY.
- Add .PHONY: $(PHONY) to mark them properly.
- Remove any $(PHONY) files from the $? list when determining whether
targets are up-to-date or not.

Signed-off-by: Paul Smith <psmith@gnu.org>
Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
cad8244840d1a148f638925758afd1cdf81fc839 17-Jan-2006 Paul Mundt <lethal@linux-sh.org> [PATCH] sh: Move CPU subtype configuration to its own Kconfig

Currently the CPU subtype options are cluttering up arch/sh/Kconfig somewhat.

Given that, this moves all of that in to its own arch/sh/mm/Kconfig. Things
like cache configuration are also moved to this new location.

This also adds support for strict CPU tuning on newer cores, which requires
the addition of as-option.

Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
72777373b3a09c9132a787d5e1e03eaf64f30a64 07-Nov-2005 Paul Mundt <lethal@linux-sh.org> [PATCH] sh: Drop deprecated support for custom ramdisk embedding

sh had its own support for embedding ramdisk images in to the kernel binary,
but people are using initramfs for this now, so we drop the ramdisk embedding.

Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
5bb78269000cf326bfdfa19f79449c02a9158020 11-Sep-2005 Sam Ravnborg <sam@mars.ravnborg.org> kbuild: rename prepare to archprepare to fix dependency chain

When introducing the generic asm-offsets.h support the dependency
chain for the prepare targets was changed. All build scripts expecting
include/asm/asm-offsets.h to be made when using the prepare target would broke.
With the limited number of prepare targets left in arch Makefiles
the trivial solution was to introduce a new arch specific target: archprepare

The dependency chain looks like this now:

prepare
|
+--> prepare0
|
+--> archprepare
|
+--> scripts_basic
+--> prepare1
|
+---> prepare2
|
+--> prepare3

So prepare 3 is processed before prepare2 etc.
This guaantees that the asm symlink, version.h, scripts_basic
are all updated before archprepare is processed.

prepare0 which build the asm-offsets.h file will need the
actions performed by archprepare.

The head target is now named prepare, because users scripts will most
likely use that target, but prepare-all has been kept for compatibility.
Updated Documentation/kbuild/makefiles.txt.

Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
cca6e6f5f473ec63e85c87dfc77279ce1ca114e6 09-Sep-2005 Sam Ravnborg <sam@mars.(none)> kbuild: h8300,m68knommu,sh,sh64 use generic asm-offsets.h support

h8300, m68knommu, sh and sh64 all used the name asm-offsets.h so minimal
changes required.

Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 17-Apr-2005 Linus Torvalds <torvalds@ppc970.osdl.org> Linux-2.6.12-rc2

Initial git repository build. I'm not bothering with the full history,
even though we have it. We can create a separate "historical" git
archive of that later if we want to, and in the meantime it's about
3.2GB when imported into git - space that would just make the early
git days unnecessarily complicated, when we don't have a lot of good
infrastructure for it.

Let it rip!