<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Verdana
}
--></style>
</head>
<body class='hmmessage'>
For the mainboard with AMD Family 10, if we make clean and make again,<BR>it will fail. why?<BR>
After make clean, .c files created by iasl are still left in the build<BR>folder, it will match the rule of<BR> $(obj)/%.o: $(obj)/%.c $(obj)/config.h<BR>  @printf "    CC         $(subst $(obj)/,,$(@))\n"<BR>  $(CC) -MMD $(CFLAGS) -c -o $@ $<<BR>it will miss the rule which should be applied.<BR> define objs_asl_template<BR>        ....<BR>
So we move the .c file back to .hex (or other suffix? or delete?).<BR>This patch will work after make distclean, otherwise nobody will rename<BR>the .c.<BR>
Signed-off-by: Zheng Bao <<A href="mailto:zheng.bao@amd.com">zheng.bao@amd.com</A>><BR>
<BR>Index: Makefile<BR>===================================================================<BR>--- Makefile (revision 5489)<BR>+++ Makefile (working copy)<BR>@@ -226,6 +226,7 @@<BR>  iasl -p $$(basename $$@) -tc $$(basename <A href="mailto:$$@).asl">$$@).asl</A><BR>  mv $$(basename <A href="mailto:$$@).hex">$$@).hex</A> $$(basename <A href="mailto:$$@).c">$$@).c</A><BR>  $(CC) $$(CFLAGS) $$(if $$(subst dsdt,,$$(basename $$(notdir $$@))), -DAmlCode=AmlCode_$$(basename $$(notdir $$@))) -c -o $$@ $$(basename <A href="mailto:$$@).c">$$@).c</A><BR>+ mv $$(basename <A href="mailto:$$@).c">$$@).c</A> $$(basename <A href="mailto:$$@).hex">$$@).hex</A><BR> endef<BR> <BR> # macro to define template macros that are used by use_template macro<BR><BR>                                           <br /><hr />Your E-mail and More On-the-Go. Get Windows Live Hotmail Free. <a href='https://signup.live.com/signup.aspx?id=60969' target='_new'>Sign up now.</a></body>
</html>