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