toolsandutils/buildsystem/extension/base/omap3_genbootinc.mk
changeset 0 83f4b4db085c
child 1 d4b442d23379
equal deleted inserted replaced
-1:000000000000 0:83f4b4db085c
       
     1 # Copyright (c) 2006-2009 Nokia Corporation and/or its subsidiary(-ies).
       
     2 # All rights reserved.
       
     3 # This component and the accompanying materials are made available
       
     4 # under the terms of "Eclipse Public License v1.0"
       
     5 # which accompanies this distribution, and is available
       
     6 # at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     7 #
       
     8 # Initial Contributors:
       
     9 # Nokia Corporation - initial contribution.
       
    10 #
       
    11 # Contributors:
       
    12 #
       
    13 # Description:
       
    14 # Generate assembler inc files from header files
       
    15 # 
       
    16 #
       
    17 
       
    18 # To guarantee there is a slash at the end of EPOCROOT in case there is not.
       
    19 # This is needed to ensure compatibility with SBSv1. 
       
    20 TMPROOT:=$(subst \,/,$(EPOCROOT))
       
    21 EPOCROOT:=$(patsubst %/,%,$(TMPROOT))/
       
    22 
       
    23 include $(EPOCROOT)epoc32/tools/shell/$(notdir $(basename $(SHELL))).mk
       
    24 
       
    25 # This will need to change when the directory gets renamed
       
    26 XINCDIR := $(INC_PATH)/tiomap3/variant/common
       
    27 XINCDIR2 := $(INC_PATH)/tiomap3/assp/common
       
    28 
       
    29 
       
    30 MAKMAKE : all
       
    31 
       
    32 FREEZE :
       
    33 
       
    34 LIB : all
       
    35 
       
    36 CLEANLIB :
       
    37 
       
    38 RESOURCE :
       
    39 
       
    40 FINAL :
       
    41 
       
    42 BLD SAVESPACE : all
       
    43 
       
    44 RELEASABLES :
       
    45 	@echo $(XINCDIR)/nand_fbr_offset.inc
       
    46 	@echo $(XINCDIR2)/customrestartreasons.inc
       
    47 
       
    48 CLEAN :
       
    49 	-$(ERASE) $(call slash2generic,$(XINCDIR)/nand_fbr_offset.inc) 
       
    50 #	-$(ERASE) $(XINCDIR)/nand_fbr_offset.inc
       
    51 	@echo $(XINCDIR2)/customrestartreasons.inc
       
    52 
       
    53 all: $(XINCDIR2)/customrestartreasons.inc $(XINCDIR)/nand_fbr_offset.inc 
       
    54 
       
    55 $(XINCDIR)/nand_fbr_offset.inc : $(XINCDIR)/nand_fbr_offset.h
       
    56 	perl $(EPOCROOT)epoc32/tools/h2inc.pl $(XINCDIR)/nand_fbr_offset.h $(XINCDIR)/nand_fbr_offset.inc ARMASM
       
    57 
       
    58 $(XINCDIR2)/customrestartreasons.inc : $(XINCDIR2)/customrestartreasons.h
       
    59 	perl $(EPOCROOT)epoc32/tools/h2inc.pl $(XINCDIR2)/customrestartreasons.h $(XINCDIR2)/customrestartreasons.inc ARMASM