Skip to contentSkip to conversation

POST: fix Makefiles for mpc8xx, lwmon, and netta POSTs.

PATCH New Wolfgang Denk 1 participant 1 message Apr 29, 2008

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 POST: fix Makefiles for mpc8xx, lwmon, and netta POSTs.

From: Yuri Tikhonov <[email protected]>

---
 post/board/lwmon/Makefile |    4 ++--
 post/board/netta/Makefile |    4 ++--
 post/cpu/mpc8xx/Makefile  |    5 +++--
 3 files changed, 7 insertions(+), 6 deletions(-)
post/board/lwmon/Makefile +2 -2
index 899b0dc..d2932be 100644
@@ -20,10 +20,10 @@
 # Foundation, Inc., 59 Temple Place, Suite 330, Boston,
 # MA 02111-1307 USA
 #
-
+include $(OBJTREE)/include/autoconf.mk
 
 LIB	= libpostlwmon.a
 
-COBJS	= sysmon.o
+COBJS-$(CONFIG_HAS_POST)	+= sysmon.o
 
 include $(TOPDIR)/post/rules.mk
post/board/netta/Makefile +2 -2
index 60c7790..8a8578f 100644
@@ -20,10 +20,10 @@
 # Foundation, Inc., 59 Temple Place, Suite 330, Boston,
 # MA 02111-1307 USA
 #
-
+include $(OBJTREE)/include/autoconf.mk
 
 LIB	= libpostnetta.a
 
-COBJS	= codec.o dsp.o
+COBJS-$(CONFIG_HAS_POST)	+= codec.o dsp.o
 
 include $(TOPDIR)/post/rules.mk
post/cpu/mpc8xx/Makefile +3 -2
index f871cba..162924f 100644
@@ -20,10 +20,11 @@
 # Foundation, Inc., 59 Temple Place, Suite 330, Boston,
 # MA 02111-1307 USA
 #
+include $(OBJTREE)/include/autoconf.mk
 
 LIB	= libpostmpc8xx.a
 
-AOBJS	= cache_8xx.o
-COBJS	= cache.o ether.o spr.o uart.o usb.o watchdog.o
+AOBJS-$(CONFIG_HAS_POST)	+= cache_8xx.o
+COBJS-$(CONFIG_HAS_POST)	+= cache.o ether.o spr.o uart.o usb.o watchdog.o
 
 include $(TOPDIR)/post/rules.mk
Signature · 1 line
1.5.4.2