Changeset 45670


Ignore:
Timestamp:
2015-05-11T11:07:21+02:00 (3 years ago)
Author:
nbd
Message:

build: add support for adding a per-device compile step in the new image building code

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/image.mk

    r45660 r45670  
    360360define Device/Check 
    361361  _TARGET = $$(if $$(filter $(PROFILE),$$(PROFILES)),install,install-disabled) 
     362  _COMPILE_TARGET = $$(if $(CONFIG_IB)$$(filter $(PROFILE),$$(PROFILES)),compile,compile-disabled) 
    362363endef 
    363364 
     
    378379                rm -f $@; \ 
    379380        } 
     381endef 
     382 
     383define Device/Build/compile 
     384  $$(_COMPILE_TARGET): $(KDIR)/$(1) 
     385  $(eval $(call Device/Export,$(KDIR)/$(1))) 
     386  $(KDIR)/$(1): 
     387        $$(call concat_cmd,$(COMPILE/$(1))) 
     388 
    380389endef 
    381390 
     
    412421  $(call Device/Build/kernel,$(1)) 
    413422 
     423  $$(eval $$(foreach compile,$$(COMPILE), \ 
     424    $$(call Device/Build/compile,$$(compile),$(1)))) 
     425 
    414426  $$(eval $$(foreach image,$$(IMAGES), \ 
    415427    $$(foreach fs,$$(filter $(TARGET_FILESYSTEMS),$$(FILESYSTEMS)), \ 
Note: See TracChangeset for help on using the changeset viewer.