Changeset 25734


Ignore:
Timestamp:
2011-02-26T19:48:28+01:00 (7 years ago)
Author:
jow
Message:

[backfire] backport host build hook support

Location:
branches/backfire
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • branches/backfire/include/host-build.mk

    r19995 r25734  
    2323include $(INCLUDE_DIR)/download.mk 
    2424include $(INCLUDE_DIR)/quilt.mk 
     25include $(INCLUDE_DIR)/autotools.mk 
    2526 
    2627Host/Patch:=$(Host/Patch/Default) 
     
    122123        @-rm -rf $(HOST_BUILD_DIR) 
    123124        @mkdir -p $(HOST_BUILD_DIR) 
     125        $(foreach hook,$(Hooks/HostPrepare/Pre),$(call $(hook))$(sep)) 
    124126        $(call Host/Prepare) 
     127        $(foreach hook,$(Hooks/HostPrepare/Post),$(call $(hook))$(sep)) 
    125128        touch $$@ 
    126129 
    127130  $(call Host/Exports,$(HOST_STAMP_CONFIGURED)) 
    128131  $(HOST_STAMP_CONFIGURED): $(HOST_STAMP_PREPARED) 
     132        $(foreach hook,$(Hooks/HostConfigure/Pre),$(call $(hook))$(sep)) 
    129133        $(call Host/Configure) 
     134        $(foreach hook,$(Hooks/HostConfigure/Post),$(call $(hook))$(sep)) 
    130135        touch $$@ 
    131136 
     
    143148 
    144149    $(HOST_STAMP_BUILT): $(HOST_STAMP_CONFIGURED) 
     150                $(foreach hook,$(Hooks/HostCompile/Pre),$(call $(hook))$(sep)) 
    145151                $(call Host/Compile) 
     152                $(foreach hook,$(Hooks/HostCompile/Post),$(call $(hook))$(sep)) 
    146153                touch $$@ 
    147154 
    148155    $(HOST_STAMP_INSTALLED): $(HOST_STAMP_BUILT) 
    149156                $(call Host/Install) 
     157                $(foreach hook,$(Hooks/HostInstall/Post),$(call $(hook))$(sep)) 
    150158                mkdir -p $$(shell dirname $$@) 
    151159                touch $$@ 
    152160  else 
    153161    $(HOST_STAMP_BUILT): $(HOST_STAMP_CONFIGURED) 
     162                $(foreach hook,$(Hooks/HostCompile/Pre),$(call $(hook))$(sep)) 
    154163                $(call Host/Compile) 
     164                $(foreach hook,$(Hooks/HostCompile/Post),$(call $(hook))$(sep)) 
    155165                $(call Host/Install) 
     166                $(foreach hook,$(Hooks/HostInstall/Post),$(call $(hook))$(sep)) 
    156167                touch $$@ 
    157168  endif 
  • branches/backfire/include/package.mk

    r23966 r25734  
    6969  VERSION:=$(PKG_SOURCE_VERSION) 
    7070  MD5SUM:=$(PKG_MD5SUM) 
    71 endef 
    72  
    73 define sep 
    74  
    7571endef 
    7672 
  • branches/backfire/rules.mk

    r24148 r25734  
    2727confvar=$(call merge,$(foreach v,$(1),$(if $($(v)),y,n))) 
    2828strip_last=$(patsubst %.$(lastword $(subst .,$(space),$(1))),%,$(1)) 
     29 
     30define sep 
     31 
     32endef 
    2933 
    3034_SINGLE=export MAKEFLAGS=$(space); 
Note: See TracChangeset for help on using the changeset viewer.