os/kernelhwsrv/kerneltest/f32test/loader/ldrtst.flm
author sl
Tue, 10 Jun 2014 14:32:02 +0200
changeset 1 260cb5ec6c19
permissions -rw-r--r--
Update contrib.
     1 #
     2 # Copyright (c) 2009 Nokia Ltd.  All rights reserved.
     3 #
     4 
     5 GDIR:=gen
     6 
     7 SRC:=dllt.h dllt.cpp dllt.cia dlltifc.h exet.cpp exetifc.h \
     8 	exetifc.cpp t_ldrtst.h t_ldrtst.cpp t_ldrtst2.cpp t_ldrtst.mmp t_sfhash.cpp t_hash.h
     9 
    10 SOURCE_FILES:=$(addprefix $(TO_BLDINF)/,$(SRC))
    11 DEST_FILES:=$(addprefix $(TO_BLDINF)/$(GDIR)/,$(SRC))
    12 
    13 
    14 define ldrtest_buildcode
    15 # Use guard to ensure only generate and build the source once
    16 ifeq ($(f32test_loader_dlltree_$(call sanitise,$(PROJECT_META))),)
    17 f32test_loader_dlltree_$(call sanitise,$(PROJECT_META)):=1
    18 
    19 $(DEST_FILES): $(TO_BLDINF)/$(GDIR)/% : $(TO_BLDINF)/% $(TO_BLDINF)/$(GDIR)/generated
    20 	cp -u $$(filter-out %generated,$$^) $$@
    21 
    22 $(TO_BLDINF)/$(GDIR)/generated: $(TO_BLDINF)/dlltree.pl $(TO_BLDINF)/dlltree.txt
    23 	perl $(TO_BLDINF)/dlltree.pl $(TO_BLDINF)/dlltree.txt $(TO_BLDINF)/$(GDIR)
    24 	touch $$@
    25 endif
    26 
    27 ALL :: $(DEST_FILES) $(TO_BLDINF)/$(GDIR)/generated
    28 	$(SBS_HOME)/bin/sbs -b $(TO_BLDINF)/$(GDIR)/dlltree.inf -m $(EPOCBLD)/f32test_loader_dlltree.mk -f $(EPOCBLD)/f32test_loader_dlltree.log -c $(SBS_CONFIGURATION)
    29 
    30 endef
    31 
    32 $(eval $(ldrtest_buildcode))
    33