MPC83xx: Fix makefile to generate config.h file in the build directory
MPC83xx: Fix the Makefile config sections to generate the include/config.h file in the build directory instead of the source directory. Signed-off-by: David Saada <david.saada@ecitele.com> Signed-off-by: Kim Phillips <kim.phillips@freescale.com>
This commit is contained in:
parent
1ded0242e4
commit
5d497e6bf0
16
Makefile
16
Makefile
@ -1666,11 +1666,11 @@ MPC8313ERDB_66_config: unconfig
|
|||||||
@mkdir -p $(obj)include
|
@mkdir -p $(obj)include
|
||||||
@echo "" >$(obj)include/config.h ; \
|
@echo "" >$(obj)include/config.h ; \
|
||||||
if [ "$(findstring _33_,$@)" ] ; then \
|
if [ "$(findstring _33_,$@)" ] ; then \
|
||||||
echo "...33M ..." ; \
|
echo -n "...33M ..." ; \
|
||||||
echo "#define CFG_33MHZ" >>$(obj)include/config.h ; \
|
echo "#define CFG_33MHZ" >>$(obj)include/config.h ; \
|
||||||
fi ; \
|
fi ; \
|
||||||
if [ "$(findstring _66_,$@)" ] ; then \
|
if [ "$(findstring _66_,$@)" ] ; then \
|
||||||
echo "...66M..." ; \
|
echo -n "...66M..." ; \
|
||||||
echo "#define CFG_66MHZ" >>$(obj)include/config.h ; \
|
echo "#define CFG_66MHZ" >>$(obj)include/config.h ; \
|
||||||
fi ;
|
fi ;
|
||||||
@$(MKCONFIG) -a MPC8313ERDB ppc mpc83xx mpc8313erdb
|
@$(MKCONFIG) -a MPC8313ERDB ppc mpc83xx mpc8313erdb
|
||||||
@ -1682,7 +1682,7 @@ MPC832XEMDS_SLAVE_config: unconfig
|
|||||||
@mkdir -p $(obj)include
|
@mkdir -p $(obj)include
|
||||||
@echo "" >$(obj)include/config.h ; \
|
@echo "" >$(obj)include/config.h ; \
|
||||||
if [ "$(findstring _HOST_,$@)" ] ; then \
|
if [ "$(findstring _HOST_,$@)" ] ; then \
|
||||||
echo "... PCI HOST " ; \
|
echo -n "... PCI HOST " ; \
|
||||||
echo "#define CONFIG_PCI" >>$(obj)include/config.h ; \
|
echo "#define CONFIG_PCI" >>$(obj)include/config.h ; \
|
||||||
fi ; \
|
fi ; \
|
||||||
if [ "$(findstring _SLAVE_,$@)" ] ; then \
|
if [ "$(findstring _SLAVE_,$@)" ] ; then \
|
||||||
@ -1691,11 +1691,11 @@ MPC832XEMDS_SLAVE_config: unconfig
|
|||||||
echo "#define CONFIG_PCISLAVE" >>$(obj)include/config.h ; \
|
echo "#define CONFIG_PCISLAVE" >>$(obj)include/config.h ; \
|
||||||
fi ; \
|
fi ; \
|
||||||
if [ "$(findstring _33_,$@)" ] ; then \
|
if [ "$(findstring _33_,$@)" ] ; then \
|
||||||
echo "...33M ..." ; \
|
echo -n "...33M ..." ; \
|
||||||
echo "#define PCI_33M" >>$(obj)include/config.h ; \
|
echo "#define PCI_33M" >>$(obj)include/config.h ; \
|
||||||
fi ; \
|
fi ; \
|
||||||
if [ "$(findstring _66_,$@)" ] ; then \
|
if [ "$(findstring _66_,$@)" ] ; then \
|
||||||
echo "...66M..." ; \
|
echo -n "...66M..." ; \
|
||||||
echo "#define PCI_66M" >>$(obj)include/config.h ; \
|
echo "#define PCI_66M" >>$(obj)include/config.h ; \
|
||||||
fi ;
|
fi ;
|
||||||
@$(MKCONFIG) -a MPC832XEMDS ppc mpc83xx mpc832xemds
|
@$(MKCONFIG) -a MPC832XEMDS ppc mpc83xx mpc832xemds
|
||||||
@ -1724,7 +1724,7 @@ MPC8360EMDS_SLAVE_config: unconfig
|
|||||||
@mkdir -p $(obj)include
|
@mkdir -p $(obj)include
|
||||||
@echo "" >$(obj)include/config.h ; \
|
@echo "" >$(obj)include/config.h ; \
|
||||||
if [ "$(findstring _HOST_,$@)" ] ; then \
|
if [ "$(findstring _HOST_,$@)" ] ; then \
|
||||||
echo "... PCI HOST " ; \
|
echo -n "... PCI HOST " ; \
|
||||||
echo "#define CONFIG_PCI" >>$(obj)include/config.h ; \
|
echo "#define CONFIG_PCI" >>$(obj)include/config.h ; \
|
||||||
fi ; \
|
fi ; \
|
||||||
if [ "$(findstring _SLAVE_,$@)" ] ; then \
|
if [ "$(findstring _SLAVE_,$@)" ] ; then \
|
||||||
@ -1733,11 +1733,11 @@ MPC8360EMDS_SLAVE_config: unconfig
|
|||||||
echo "#define CONFIG_PCISLAVE" >>$(obj)include/config.h ; \
|
echo "#define CONFIG_PCISLAVE" >>$(obj)include/config.h ; \
|
||||||
fi ; \
|
fi ; \
|
||||||
if [ "$(findstring _33_,$@)" ] ; then \
|
if [ "$(findstring _33_,$@)" ] ; then \
|
||||||
echo "...33M ..." ; \
|
echo -n "...33M ..." ; \
|
||||||
echo "#define PCI_33M" >>$(obj)include/config.h ; \
|
echo "#define PCI_33M" >>$(obj)include/config.h ; \
|
||||||
fi ; \
|
fi ; \
|
||||||
if [ "$(findstring _66_,$@)" ] ; then \
|
if [ "$(findstring _66_,$@)" ] ; then \
|
||||||
echo "...66M..." ; \
|
echo -n "...66M..." ; \
|
||||||
echo "#define PCI_66M" >>$(obj)include/config.h ; \
|
echo "#define PCI_66M" >>$(obj)include/config.h ; \
|
||||||
fi ;
|
fi ;
|
||||||
@$(MKCONFIG) -a MPC8360EMDS ppc mpc83xx mpc8360emds
|
@$(MKCONFIG) -a MPC8360EMDS ppc mpc83xx mpc8360emds
|
||||||
|
Loading…
Reference in New Issue
Block a user