Changeset 43019


Ignore:
Timestamp:
2014-10-22T10:57:25+02:00 (3 years ago)
Author:
nbd
Message:

build: optimize target metadata dump

Signed-off-by: Felix Fietkau <nbd@…>

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/target.mk

    r42596 r43019  
    6464  $(eval $(call Profile/Default)) 
    6565  $(eval $(call Profile/$(1))) 
    66   $(eval $(call shexport,Profile/$(1)/Config)) 
    67   $(eval $(call shexport,Profile/$(1)/Description)) 
     66  dumpinfo : $(call shexport,Profile/$(1)/Config) 
     67  dumpinfo : $(call shexport,Profile/$(1)/Description) 
    6868  DUMPINFO += \ 
    6969        echo "Target-Profile: $(1)"; \ 
     
    7474        fi; \ 
    7575        echo "Target-Profile-Config: "; \ 
    76         $(SH_FUNC) getvar "$(call shvar,Profile/$(1)/Config)"; \ 
     76        echo "$$$$$$$$$(call shvar,Profile/$(1)/Config)"; \ 
    7777        echo "@@"; \ 
    7878        echo "Target-Profile-Description:"; \ 
    79         $(SH_FUNC) getvar "$(call shvar,Profile/$(1)/Description)"; \ 
     79        echo "$$$$$$$$$(call shvar,Profile/$(1)/Description)"; \ 
    8080        echo "@@"; \ 
    8181        echo; 
     
    104104  endif 
    105105endif 
    106  
    107 $(eval $(call shexport,Target/Description)) 
    108106 
    109107ifneq ($(TARGET_BUILD)$(if $(DUMP),,1),) 
     
    260258define BuildTargets/DumpCurrent 
    261259  .PHONY: dumpinfo 
     260  dumpinfo : export DESCRIPTION=$$(Target/Description) 
    262261  dumpinfo: 
    263262        @echo 'Target: $(TARGETID)'; \ 
     
    274273         echo 'Linux-Release: $(LINUX_RELEASE)'; \ 
    275274         echo 'Linux-Kernel-Arch: $(LINUX_KARCH)'; \ 
    276         $(if $(SUBTARGET),,$(if $(DEFAULT_SUBTARGET), echo 'Default-Subtarget: $(DEFAULT_SUBTARGET)'; )) 
     275        $(if $(SUBTARGET),,$(if $(DEFAULT_SUBTARGET), echo 'Default-Subtarget: $(DEFAULT_SUBTARGET)'; )) \ 
    277276         echo 'Target-Description:'; \ 
    278          $(SH_FUNC) getvar $(call shvar,Target/Description); \ 
     277         echo "$$$$DESCRIPTION"; \ 
    279278         echo '@@'; \ 
    280279         echo 'Default-Packages: $(DEFAULT_PACKAGES) $(call extra_packages,$(DEFAULT_PACKAGES))'; \ 
Note: See TracChangeset for help on using the changeset viewer.