OpenCores
URL https://opencores.org/ocsvn/or1k/or1k/trunk

Subversion Repositories or1k

[/] [or1k/] [trunk/] [linux/] [linux-2.4/] [arch/] [or32/] [Makefile] - Rev 1765

Compare with Previous | Blame | View Log

# BK Id: %F% %I% %G% %U% %#%
#
# This file is included by the global makefile so that you can add your own
# architecture-specific flags and dependencies. Remember to do have actions
# for "archclean" and "archdep" for cleaning up and making dependencies for
# this architecture
#
# This file is subject to the terms and conditions of the GNU General Public
# License.  See the file "COPYING" in the main directory of this archive
# for more details.
#
# Copyright (C) 1994 by Linus Torvalds
# Changes for or32 by Simon Srot
# Based on:
# arch/ppc/Makefile
#

# Be sure to change PAGE_OFFSET in include/asm-or32/page.h to match
KERNELLOAD      =0xc0000000

ifeq ($(shell uname -m),or32)
CHECKS          = checks
endif

LINKFLAGS       = -T arch/or32/vmlinux.lds -Bstatic 
# -Ttext $(KERNELLOAD) -Bstatic
CPPFLAGS        := $(CPPFLAGS) -I$(TOPDIR)/arch/$(ARCH)
AFLAGS          := $(AFLAGS) -I$(TOPDIR)/arch/$(ARCH)
CFLAGS          := $(CFLAGS) -I$(TOPDIR)/arch/$(ARCH) -fsigned-char \
                -msoft-float -pipe -ffixed-r2 -Wno-uninitialized
LIBGCC          := $(shell $(CC) $(CFLAGS) -print-libgcc-file-name)
LIBS            := arch/or32/lib/lib.a $(LIBS) $(LIBGCC)
        
HOSTCFLAGS      += -I$(TOPDIR)/arch/$(ARCH)
CPP             = $(CC) -E $(CFLAGS)

HEAD := arch/or32/kernel/head.o

ARCH_SUBDIRS = arch/or32/kernel arch/or32/mm arch/or32/lib arch/or32/board arch/or32/drivers arch/or32/support
SUBDIRS      := $(SUBDIRS) $(ARCH_SUBDIRS)
CORE_FILES   := arch/or32/kernel/kernel.o arch/or32/mm/mm.o \
                arch/or32/board/board.o arch/or32/support/support.o \
                arch/or32/drivers/drivers.o $(CORE_FILES)

#MAKEBOOT = $(MAKE) -C arch/$(ARCH)/boot
MAKEBOOT = $(MAKE)

checks:
        @$(MAKE) -C arch/$(ARCH)/kernel checks

BOOT_TARGETS = zImage zImage.initrd znetboot znetboot.initrd

# All the instructions talk about "make bzImage".
bzImage: zImage

$(BOOT_TARGETS): $(CHECKS) vmlinux
        @$(MAKEBOOT) $@

%_config: arch/or32/configs/%_defconfig
        rm -f .config arch/or32/defconfig
        cp -f arch/or32/configs/$(@:config=defconfig) arch/or32/defconfig

archclean:
        rm -f arch/or32/kernel/{mk_defs,or32_defs.h}
#       @$(MAKEBOOT) clean

archmrproper:

archdep: scripts/mkdep
        $(MAKEBOOT) fastdep

Compare with Previous | Blame | View Log

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.