Home | History | Annotate | Line # | Download | only in templates
Makefile revision 1.1.1.1.62.1
      1  1.1.1.1.62.1  martin # Before running this file, we assume we have generated all tables by running
      2  1.1.1.1.62.1  martin # the command `$(ASL) -T ALL`
      3  1.1.1.1.62.1  martin #
      4  1.1.1.1.62.1  martin # Note: the NAME flag is required when running the test
      5  1.1.1.1.62.1  martin 
      6  1.1.1.1.62.1  martin aml_obj=$(NAME).aml
      7  1.1.1.1.62.1  martin dsl_obj=$(NAME).dsl
      8  1.1.1.1.62.1  martin aml_obj2=$(NAME)_recomp.aml
      9  1.1.1.1.62.1  martin 
     10  1.1.1.1.62.1  martin 
     11  1.1.1.1.62.1  martin all: $(aml_obj2)
     12  1.1.1.1.62.1  martin 
     13  1.1.1.1.62.1  martin # recompile and binary compare
     14  1.1.1.1.62.1  martin $(aml_obj2): %_recomp.aml: %.dsl
     15  1.1.1.1.62.1  martin 	$(ASL) -p `basename $@` $< > /dev/null 2> /dev/null
     16  1.1.1.1.62.1  martin 	$(acpibin) -c $@ $(patsubst %_recomp.aml,%.aml,$@) > /dev/null 2> /dev/null
     17  1.1.1.1.62.1  martin 	printf "Data table %s PASS\n" $(basename $< .dsl)
     18  1.1.1.1.62.1  martin 
     19  1.1.1.1.62.1  martin # disassemble
     20  1.1.1.1.62.1  martin $(dsl_obj): %.dsl:  %.aml
     21  1.1.1.1.62.1  martin 	$(ASL) -d $< > /dev/null 2> /dev/null
     22  1.1.1.1.62.1  martin 
     23  1.1.1.1.62.1  martin # initial compile
     24  1.1.1.1.62.1  martin $(aml_obj): %.aml:  %.asl
     25  1.1.1.1.62.1  martin 	$(ASL) $< > /dev/null 2> /dev/null
     26           1.1  jruoho 
     27           1.1  jruoho 
     28           1.1  jruoho templates :
     29           1.1  jruoho 	sh templates.sh
     30           1.1  jruoho 
     31  1.1.1.1.62.1  martin .PHONY: clean
     32  1.1.1.1.62.1  martin clean:
     33           1.1  jruoho 	rm -f *.asl *.aml *.dsl *.hex diff.log
     34           1.1  jruoho 
     35