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

Subversion Repositories or1k

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

Compare with Previous | Blame | View Log

# BK Id: %F% %I% %G% %U% %#%
#
#
# Makefile for the linux kernel.
#
# Note! Dependencies are done automagically by 'make dep', which also
# removes any old dependencies. DON'T put your own dependencies here
# unless it's something special (ie not a .c file).
#

USE_STANDARD_AS_RULE    := true

# Code in these files is used before the kernel is moved to its final position
CFLAGS_prom_init.o      += -mrelocatable-lib
CFLAGS_btext.o          += -mrelocatable-lib

# Start off with 'head.o', change as needed.
HEAD-y                          := head.o

all: $(HEAD-y) kernel.o

O_TARGET := kernel.o

export-objs                     := or32_ksyms.o

obj-y                           := setup.o dbgport.o misc.o idle.o or32_ksyms.o semaphore.o process.o traps.o time.o irq.o entry.o ptrace.o signal.o sys_or32.o


include $(TOPDIR)/Rules.make

entry.o: entry.S or32_funcs.S or32_defs.h
misc.o: misc.S or32_funcs.S or32_defs.h
head.o: head.S or32_funcs.S or32_defs.h

or32_defs.h: or32_defs.c or32_defs.head \
                $(TOPDIR)/include/asm/mmu.h \
                $(TOPDIR)/include/asm/processor.h \
                $(TOPDIR)/include/asm/pgtable.h \
                $(TOPDIR)/include/asm/ptrace.h
        $(CC) $(CFLAGS) -S or32_defs.c
        cp or32_defs.head or32_defs.h
# for bk, this way we can write to the file even if it's not checked out
        chmod u+w or32_defs.h
        grep '^#define' or32_defs.s >> or32_defs.h
        rm or32_defs.s

find_name : find_name.c
        $(HOSTCC) $(HOSTCFLAGS) -o find_name find_name.c

checks: checks.c
        $(HOSTCC) -I$(HPATH) $(HOSTCFLAGS) -D__KERNEL__ -fno-builtin -o checks checks.c
        ./checks

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.