]> rtime.felk.cvut.cz Git - omk.git/commitdiff
Added support for exporting IDL-genrated headers
authorMichal Sojka <sojkam1@fel.cvut.cz>
Mon, 25 Aug 2008 09:32:00 +0000 (09:32 +0000)
committerMichal Sojka <sojkam1@fel.cvut.cz>
Mon, 25 Aug 2008 09:32:00 +0000 (09:32 +0000)
For this to work, IDL compilation must be triggered before include-pass.
Therefore, we cannot optimize include pass by not defining
USER_RULE_TEMPLATES.

This solution is a little hack. Bigger reorganization of OMK rules is
needed for proper solution.

darcs-hash:20080825093249-f2ef6-affb094c31d09de265b78e7fca20bdfe9a10228d.gz

snippets/linux

index ded656023d46d9746a290b63e88c290a4e14649d..f79f7582d883114ac0238093b2cf25cecb960935 100644 (file)
@@ -654,7 +654,7 @@ $(eval $(call omk_pass_template, binary-pass, $(USER_OBJS_DIR),USER_RULE_TEMPLAT
 
 $(eval $(call omk_pass_template,clean,$(USER_OBJS_DIR),,always))
 $(eval $(call omk_pass_template,install,$(USER_OBJS_DIR),,always))
-$(eval $(call omk_pass_template,include-pass,$(USER_OBJS_DIR),,always))
+$(eval $(call omk_pass_template,include-pass,$(USER_OBJS_DIR),USER_RULE_TEMPLATES=y,always))
 
 check-dir:
        @$(call mkdir_def,$(USER_BUILD_DIR))
@@ -671,7 +671,7 @@ check-dir:
 
 install-local:                 # TODO
 
-include-pass-local:
+include-pass-local: $(include_GEN_HEADERS)
        $(call include-pass-template,$(USER_INCLUDE_DIR),include)
        $(call include-pass-template,$(KERN_INCLUDE_DIR),kernel)
 ifeq ($(CONFIG_RTLINUX),y)