Changeset fa024ce in mainline for boot/arch/mips32


Ignore:
Timestamp:
2009-02-12T20:12:08Z (17 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
98a4e76
Parents:
fcd7053
Message:

simplify configuration

Location:
boot/arch/mips32
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • boot/arch/mips32/Makefile.inc

    rfcd7053 rfa024ce  
    2929build: $(BASE)/image.boot
    3030
    31 $(BASE)/image.boot: depend arch/$(ARCH)/loader/image.boot
    32         cp arch/$(ARCH)/loader/image.boot $(BASE)/image.boot
     31$(BASE)/image.boot: depend arch/$(BARCH)/loader/image.boot
     32        cp arch/$(BARCH)/loader/image.boot $(BASE)/image.boot
    3333
    3434depend:
    35         -rm arch/$(ARCH)/loader/image.boot
     35        -rm arch/$(BARCH)/loader/image.boot
    3636
    37 arch/$(ARCH)/loader/image.boot:
    38         make -C arch/$(ARCH)/loader COMPILER=$(COMPILER) KERNELDIR=../../../$(KERNELDIR) USPACEDIR=../../../$(USPACEDIR) IMAGE=$(IMAGE)
     37arch/$(BARCH)/loader/image.boot:
     38        make -C arch/$(BARCH)/loader COMPILER=$(COMPILER) KERNELDIR=../../../$(KERNELDIR) USPACEDIR=../../../$(USPACEDIR)
    3939
    4040clean:
    41         make -C arch/$(ARCH)/loader clean COMPILER=$(COMPILER) KERNELDIR=../../../$(KERNELDIR) USPACEDIR=../../../$(USPACEDIR) IMAGE=$(IMAGE)
     41        make -C arch/$(BARCH)/loader clean COMPILER=$(COMPILER) KERNELDIR=../../../$(KERNELDIR) USPACEDIR=../../../$(USPACEDIR)
    4242        -rm -f $(BASE)/image.boot
  • boot/arch/mips32/loader/Makefile

    rfcd7053 rfa024ce  
    2828
    2929include ../../../../version
    30 include ../../../../Makefile.config
     30-include ../../../../Makefile.config
    3131
    3232## Toolchain configuration
     
    4040        LD_IN = binary
    4141endif
     42
    4243ifeq ($(IMAGE),ecoff)
    4344        LD_IN = ecoff
    4445endif
     46
    4547BFD_NAME = elf32-tradlittlemips
    4648BFD_ARCH = mips
     
    6466endif
    6567
    66 CFLAGS = -DRELEASE=\"$(RELEASE)\" -I. -I../../../generic -nostdinc -nostdlib -fno-builtin -Werror-implicit-function-declaration -Wmissing-prototypes -Werror -O3 -mno-abicalls -G 0 -fno-zero-initialized-in-bss -mhard-float -mips3 -pipe
    67 
    68 ifdef REVISION
    69         CFLAGS += "-DREVISION=\"$(REVISION)\""
    70 endif
    71 
    72 ifdef TIMESTAMP
    73         CFLAGS += "-DTIMESTAMP=\"$(TIMESTAMP)\""
    74 endif
     68CFLAGS = -DRELEASE=$(RELEASE) -I. -I../../../generic -imacros ../../../../config.h -nostdinc -nostdlib -fno-builtin -Werror-implicit-function-declaration -Wmissing-prototypes -Werror -O3 -mno-abicalls -G 0 -fno-zero-initialized-in-bss -mhard-float -mips3 -pipe
    7569
    7670SOURCES = \
  • boot/arch/mips32/loader/main.c

    rfcd7053 rfa024ce  
    2929#include "main.h"
    3030#include <printf.h>
     31#include <macros.h>
    3132#include "msim.h"
    3233#include "asm.h"
     
    3536#define KERNEL_VIRTUAL_ADDRESS 0x80100000
    3637
    37 char *release = RELEASE;
     38char *release = STRING(RELEASE);
    3839
    3940#ifdef REVISION
    40         char *revision = ", revision " REVISION;
     41        char *revision = ", revision " STRING(REVISION);
    4142#else
    4243        char *revision = "";
     
    4445
    4546#ifdef TIMESTAMP
    46         char *timestamp = "\nBuilt on " TIMESTAMP;
     47        char *timestamp = "\nBuilt on " STRING(TIMESTAMP);
    4748#else
    4849        char *timestamp = "";
Note: See TracChangeset for help on using the changeset viewer.