3 # This file is subject to the terms and conditions of the GNU General Public
4 # License. See the file "COPYING" in the main directory of this archive
7 # This file is included by the global makefile so that you can add your own
8 # architecture-specific flags and dependencies. Remember to do have actions
9 # for "archclean" and "archdep" for cleaning up and making dependencies for
14 # Select the object file format to substitute into the linker script.
16 tool-prefix
= sh-gniibe-
19 ifdef CONFIG_CROSSCOMPILE
20 CROSS_COMPILE
= $(tool-prefix
)
23 LINKFLAGS
= # -EL # -static #-N
37 # Choosing incompatible machines durings configuration will result in
38 # error messages during linking. Select a default linkscript if
39 # none has been choosen above.
41 LINKSCRIPT
= arch
/sh
/vmlinux.lds
42 LINKFLAGS
+= -T
$(word 1,$(LINKSCRIPT
)) -e __stext
45 LINKFLAGS
+= -Ttext
$(word 1,$(LOADADDR
))
51 HEAD
:= arch
/sh
/kernel
/head.o arch
/sh
/kernel
/init_task.o
53 SUBDIRS
:= $(SUBDIRS
) $(addprefix arch
/sh
/, kernel mm lib
)
54 CORE_FILES
:= arch
/sh
/kernel
/kernel.o arch
/sh
/mm
/mm.o
$(CORE_FILES
)
55 LIBS
:= $(TOPDIR
)/arch
/sh
/lib
/lib.a
$(LIBS
) $(TOPDIR
)/arch
/sh
/lib
/lib.a
/home
/niibe
/lib
/gcc-lib
/sh-gniibe-elf
/egcs-2.91
.66/libgcc.a
57 MAKEBOOT
= $(MAKE
) -C arch
/$(ARCH
)/boot
59 vmlinux
: arch
/sh
/vmlinux.lds
61 arch
/sh
/vmlinux.lds
: arch
/sh
/vmlinux.lds.S FORCE
62 gcc
-E
-C
-P
-I
$(HPATH
) -imacros
$(HPATH
)/linux
/config.h
-Ush arch
/sh
/vmlinux.lds.S
>arch
/sh
/vmlinux.lds
76 $(MAKE
) -C arch
/$(ARCH
)/kernel
clean
77 # $(MAKE) -C arch/$(ARCH)/tools clean