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

Subversion Repositories or1k

[/] [or1k/] [trunk/] [uclinux/] [uClinux-2.0.x/] [arch/] [m68knommu/] [platform/] [68332/] [Rules.make] - Blame information for rev 1775

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 199 simons
#
2
# 68EZ328/Makefile
3
#
4
# This file is included by the global makefile so that you can add your own
5
# platform-specific flags and dependencies.
6
#
7
# This file is subject to the terms and conditions of the GNU General Public
8
# License.  See the file "COPYING" in the main directory of this archive
9
# for more details.
10
#
11
# Copyright (C) 1998,1999  D. Jeff Dionne 
12
# Copyright (C) 1998       Kenneth Albanowski 
13
# Copyright (C) 1994 by Hamish Macdonald
14
#
15
 
16
CROSS_COMPILE = m68k-coff-
17
 
18
LIBGCC = `$(CC) -v 2>&1 | grep specs | sed -e "s/Reading specs from //" | sed -e s/specs/m68000\\\/libgcc.a/`
19
 
20
CFLAGS := $(CFLAGS) -pipe -DNO_MM -DNO_FPU -m68000 -D__COFF__ -DMAGIC_ROM_PTR -DNO_FORGET -DUTS_SYSNAME='"uClinux"'
21
AFLAGS := $(AFLAGS) -pipe -DNO_MM -DNO_FPU -m68000 -D__COFF__ -DMAGIC_ROM_PTR -DUTS_SYSNAME='"uClinux"'
22
 
23
LINKFLAGS = -T arch/$(ARCH)/platform/$(PLATFORM)/$(BOARD).ld
24
 
25
HEAD := arch/$(ARCH)/platform/$(PLATFORM)/$(BOARD)-head.o
26
 
27
SUBDIRS := arch/$(ARCH)/kernel arch/$(ARCH)/mm arch/$(ARCH)/lib \
28
           arch/$(ARCH)/platform/$(PLATFORM) $(SUBDIRS)
29
ARCHIVES := arch/$(ARCH)/kernel/kernel.o arch/$(ARCH)/mm/mm.o \
30
            arch/$(ARCH)/platform/$(PLATFORM)/platform.o $(ARCHIVES)
31
LIBS += arch/$(ARCH)/lib/lib.a $(LIBGCC)
32
 
33
ifdef CONFIG_FRAMEBUFFER
34
SUBDIRS := $(SUBDIRS) arch/$(ARCH)/console
35
ARCHIVES := $(ARCHIVES) arch/$(ARCH)/console/console.a
36
endif
37
 
38
MAKEBOOT = $(MAKE) -C arch/$(ARCH)/boot
39
 
40
romfs.s19: romfs.img arch/$(ARCH)/empty.o
41
        $(CROSS_COMPILE)objcopy -v -R .text -R .data -R .bss --add-section=.fs=romfs.img --adjust-section-vma=.fs=0xa0000 arch/$(ARCH)/empty.o romfs.s19
42
        $(CROSS_COMPILE)objcopy -O srec romfs.s19
43
 
44
linux.data: linux
45
        $(CROSS_COMPILE)objcopy -O binary --remove-section=.romvec --remove-section=.text --remove-section=.ramvec --remove-section=.bss --remove-section=.eram linux linux.data
46
 
47
linux.text: linux
48
        $(CROSS_COMPILE)objcopy -O binary --remove-section=.ramvec --remove-section=.bss --remove-section=.data --remove-section=.eram --set-section-flags=.romvec=CONTENTS,ALLOC,LOAD,READONLY,CODE linux linux.text
49
 
50
romfs.img:
51
        echo creating a vmlinux rom image without root filesystem!
52
 
53
linux.bin: linux.text linux.data romfs.img
54
        if [ -f romfs.img ]; then\
55
                cat linux.text linux.data romfs.img > linux.bin;\
56
        else\
57
                cat linux.text linux.data > linux.bin;\
58
        fi
59
 
60
linux.trg linux.rom: linux.bin
61
        perl arch/$(ARCH)/platform/$(PLATFORM)/fixup.pl
62
 
63
archclean:
64
        @$(MAKEBOOT) clean
65
        rm -f linux.text linux.data linux.bin linux.rom linux.trg
66
        rm -f linux.s19 romfs.s19
67
        rm -f linux.img romdisk.img

powered by: WebSVN 2.1.0

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