[U-Boot-Users] Question on examples compiling

Yuli Barcohen yuli at arabellasw.com
Tue Apr 11 13:46:00 CEST 2006


>>>>> Wolfgang Denk writes:

    Rodolfo>    I'm using this version (default Debian unstable):
    Wolfgang> -----------------------------------------^^^^^^^^^

    Wolfgang> Do I need to say more?

I won't exaggerate. Debian `unstable' is stable enough even for
production use. For really unstable version, you have to use
`experimental.'

    Rodolfo> giometti at zaigor:~$ make --version GNU Make 3.81rc2
    
    Rodolfo> Is this version broken?

    Wolfgang> Just try a stable version, and you will not need to ask.

    Wolfgang> Yes, it is broken. See previous reports on this
    Wolfgang> list. Anything up to and including 3.80 seems to be
    Wolfgang> fine. 3.81 and later seems to be broken.

There are many discussions about what's really broken - make or
Makefiles. The 3.81 caused entire Linux kernel to compile each time any
single file was changed. Make developers claim it's a kernel Makefiles
problem. Fortunately, for the specific problem which is discussed here
the future outcome of this argument does not matter because there is a
simple fix. I changed the order of dependencies in the examples/Makefile
and the problem disappeared. I have no time to investigate if it's make
or Makefile problem (though I personally think it's the latter). I
attached the diff just in case you'd like to use it.

-- 
========================================================================
 Yuli Barcohen       | Phone +972-9-765-1788 |  Software Project Leader
 yuli at arabellasw.com | Fax   +972-9-765-7494 | Arabella Software, Israel
========================================================================
-------------- next part --------------
Index: examples/Makefile
===================================================================
RCS file: /home/CVS/u-boot/u-boot/examples/Makefile,v
retrieving revision 1.1.1.12.2.3
diff -p -u -r1.1.1.12.2.3 Makefile
--- examples/Makefile	29 May 2005 19:40:40 -0000	1.1.1.12.2.3
+++ examples/Makefile	11 Apr 2006 11:37:37 -0000
@@ -56,39 +56,39 @@ endif
 include $(TOPDIR)/config.mk
 
 SREC	= hello_world.srec
-BIN	= hello_world.bin hello_world
+BIN	= hello_world hello_world.bin
 
 ifeq ($(CPU),mpc8xx)
 SREC	= test_burst.srec
-BIN	= test_burst.bin test_burst
+BIN	= test_burst test_burst.bin
 endif
 
 ifeq ($(ARCH),i386)
 SREC   += 82559_eeprom.srec
-BIN    += 82559_eeprom.bin 82559_eeprom
+BIN    += 82559_eeprom 82559_eeprom.bin
 endif
 
 ifeq ($(ARCH),ppc)
 SREC   += sched.srec
-BIN    += sched.bin sched
+BIN    += sched sched.bin
 endif
 
 # The following example is pretty 8xx specific...
 ifeq ($(CPU),mpc8xx)
 SREC   += timer.srec
-BIN    += timer.bin timer
+BIN    += timer timer.bin
 endif
 
 # The following example is 8260 specific...
 ifeq ($(CPU),mpc8260)
 SREC   += mem_to_mem_idma2intr.srec
-BIN    += mem_to_mem_idma2intr.bin mem_to_mem_idma2intr
+BIN    += mem_to_mem_idma2intr mem_to_mem_idma2intr.bin
 endif
 
 # Utility for resetting i82559 EEPROM
 ifeq ($(BOARD),oxc)
 SREC   += eepro100_eeprom.srec
-BIN    += eepro100_eeprom.bin eepro100_eeprom
+BIN    += eepro100_eeprom eepro100_eeprom.bin
 endif
 
 ifeq ($(BIG_ENDIAN),y)
@@ -113,7 +113,7 @@ clibdir := $(shell dirname `$(CC) $(CFLA
 
 CPPFLAGS += -I..
 
-all:	.depend $(OBJS) $(LIB) $(SREC) $(BIN)
+all:	.depend $(OBJS) $(LIB) $(BIN) $(SREC)
 
 #########################################################################
 $(LIB): .depend $(LIBOBJS)


More information about the U-Boot mailing list