Changeset 136edca in mainline for boot/arch/arm32/loader/Makefile


Ignore:
Timestamp:
2008-05-29T16:04:09Z (17 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
960f8476
Parents:
e19d667
Message:

use unified pack script by arm32

File:
1 edited

Legend:

Unmodified
Added
Removed
  • boot/arch/arm32/loader/Makefile

    re19d667 r136edca  
    2828
    2929include ../../../../version
    30 include ../../../../Makefile.config
     30include ../../../Makefile.config
    3131
    3232## Toolchain configuration
    3333#
    3434
     35BFD = elf32-littlearm
     36BFD_NAME = elf32-littlearm
     37BFD_ARCH = arm
    3538TARGET = arm-linux-gnu
    3639TOOLCHAIN_DIR = /usr/local/arm/bin
    3740
    38 ifeq ($(COMPILER),native)
     41ifeq ($(COMPILER),gcc_native)
    3942        CC = gcc
    4043        AS = as
     
    4245        OBJCOPY = objcopy
    4346        OBJDUMP = objdump
    44 else
     47endif
     48
     49ifeq ($(COMPILER),gcc_cross)
    4550        CC = $(TOOLCHAIN_DIR)/$(TARGET)-gcc
    4651        AS = $(TOOLCHAIN_DIR)/$(TARGET)-as
     
    6974        asm.S \
    7075        mm.c \
     76        print/gxemul.c \
     77        _components.c \
    7178        ../../../generic/printf.c \
    7279        ../../../genarch/division.c
    73 
    74 ifeq ($(MACHINE), gxemul_testarm)
    75         SOURCES += print/gxemul.c
    76 endif
    77 
    7880
    7981COMPONENTS = \
    8082        $(KERNELDIR)/kernel.bin \
    8183        $(USPACEDIR)/srv/ns/ns \
     84        $(USPACEDIR)/srv/fb/fb \
    8285        $(USPACEDIR)/srv/kbd/kbd \
    8386        $(USPACEDIR)/srv/console/console \
    84         $(USPACEDIR)/srv/fb/fb \
    8587        $(USPACEDIR)/srv/vfs/vfs \
    8688        $(USPACEDIR)/srv/fs/tmpfs/tmpfs \
     
    8890        $(USPACEDIR)/srv/devmap/devmap \
    8991        $(USPACEDIR)/app/init/init \
     92        $(USPACEDIR)/app/tetris/tetris \
    9093        $(USPACEDIR)/app/tester/tester \
    91         $(USPACEDIR)/app/klog/klog \
    92         $(USPACEDIR)/app/tetris/tetris
     94        $(USPACEDIR)/app/klog/klog
    9395
    9496OBJECTS := $(addsuffix .o,$(basename $(SOURCES)))
     
    101103-include Makefile.depend
    102104
    103 image.boot: depend _components.h _link.ld $(OBJECTS) $(COMPONENT_OBJECTS)
    104         $(LD) -no-check-sections -N -T _link.ld $(COMPONENT_OBJECTS) $(OBJECTS) -o $@ 
     105image.boot: depend _components.h _link.ld $(COMPONENT_OBJECTS) $(OBJECTS)
     106        $(LD) -no-check-sections -N -T _link.ld $(COMPONENT_OBJECTS) $(OBJECTS) -o $@
    105107
    106108depend:
     
    108110
    109111clean:
    110         -rm -f _components.h _link.ld $(COMPONENT_OBJECTS) $(OBJECTS) image.boot Makefile.depend
     112        -rm -f _components.h _components.c _link.ld $(COMPONENT_OBJECTS) $(OBJECTS) image.boot Makefile.depend
    111113
    112 _components.h _link.ld $(COMPONENT_OBJECTS): $(COMPONENTS)
    113         ./pack $(IMAGE) $(OBJCOPY) $(COMPONENTS)
     114_components.h _components.c _link.ld $(COMPONENT_OBJECTS): $(COMPONENTS)
     115        ../../../tools/pack.py $(OBJCOPY) $(BFD_NAME) $(BFD) $(BFD_ARCH) 4096 $(COMPONENTS)
    114116
    115117%.o: %.S
Note: See TracChangeset for help on using the changeset viewer.