Changeset 600 for soft/giet_vm/Makefile


Ignore:
Timestamp:
Jul 9, 2015, 2:11:18 PM (9 years ago)
Author:
guerin
Message:

Makefile: generate PYTHONPATH and .py deps

File:
1 edited

Legend:

Unmodified
Added
Removed
  • soft/giet_vm/Makefile

    r599 r600  
    2323GENMAP_APPLIS := $(addprefix --,$(APPLIS))
    2424
    25 # TODO delete or improve
    26 # build the list of applications used as dependancies by genmap
     25# build the list of applications used as dependencies by genmap
     26APPLIS_PY     := $(addsuffix /$(APPLIS).py,$(addprefix applications/,$(APPLIS)))
    2727
    2828# build the list of applications to be executed (used in the all rule)
    2929APPLIS_ELF    := $(addsuffix /appli.elf,$(addprefix applications/,$(APPLIS)))
     30
     31# Build PYTHONPATH
     32PYTHONPATH := $(shell find -name *.py -printf '%h\n' | sort -u | tr '\n' :)
    3033
    3134# check hardware platform definition
     
    3336$(error please define in ARCH parameter the path to the platform)
    3437endif
    35 
    36 # Build the convenient PYTHONPATH
    37 PYTHONPATH := giet_python
    38 PYTHONPATH := applications/classif:$(PYTHONPATH)
    39 PYTHONPATH := applications/convol:$(PYTHONPATH)
    40 PYTHONPATH := applications/coproc:$(PYTHONPATH)
    41 PYTHONPATH := applications/display:$(PYTHONPATH)
    42 PYTHONPATH := applications/dhrystone:$(PYTHONPATH)
    43 PYTHONPATH := applications/gameoflife:$(PYTHONPATH)
    44 PYTHONPATH := applications/ocean:$(PYTHONPATH)
    45 PYTHONPATH := applications/router:$(PYTHONPATH)
    46 PYTHONPATH := applications/sort:$(PYTHONPATH)
    47 PYTHONPATH := applications/shell:$(PYTHONPATH)
    48 PYTHONPATH := applications/transpose:$(PYTHONPATH)
    4938
    5039.PHONY: clean map.bin
     
    206195### mapping generation: map.bin / map.xml / hard_config.h / giet_vsegs.ld
    207196### TODO add dépendancies on appli.py files : $(APPLIS_DEPS)
    208 map.bin hard_config.h giet_vsegs.ld: $(ARCH)/arch.py
     197map.bin hard_config.h giet_vsegs.ld: $(ARCH)/arch.py $(APPLIS_PY)
    209198        giet_python/genmap --arch=$(ARCH)     \
    210199                       --x=$(X_SIZE)      \
Note: See TracChangeset for help on using the changeset viewer.