[2.5 patch] fix kbuild breakage in drivers/atm

From: Adrian Bunk (bunk@fs.tum.de)
Date: Tue Oct 08 2002 - 11:02:41 EST

The kbuild changes in 2.5.41 caused the following compile error in

<-- snip -->

make[2]: *** No rule to make target `pca200e_ecd.bin2', needed by
`drivers/atm/fore200e_pca_fw.c'. Stop.
make[1]: *** [drivers/atm] Error 2

<-- snip -->

The following patch fixes it:

--- linux-2.5.41-notac-full/drivers/atm/Makefile.old 2002-10-08 17:48:26.000000000 +0200
+++ linux-2.5.41-notac-full/drivers/atm/Makefile 2002-10-08 17:50:45.000000000 +0200
@@ -37,7 +37,7 @@
 # guess the target endianess to choose the right PCA-200E firmware image
- CONFIG_ATM_FORE200E_PCA_FW := $(shell if test -n "`$(CC) -E -dM ../../include/asm/byteorder.h | grep ' __LITTLE_ENDIAN '`"; then echo pca200e.bin; else echo pca200e_ecd.bin2; fi)
+ CONFIG_ATM_FORE200E_PCA_FW := $(shell if test -n "`$(CC) -E -dM include/asm/byteorder.h | grep ' __LITTLE_ENDIAN '`"; then echo drivers/atm/pca200e.bin; else echo drivers/atm/pca200e_ecd.bin2; fi)
 ifeq ($(CONFIG_ATM_FORE200E_SBA),y)


There might be places in the kernel that are now broken without a compile
error, consider the second part of this line would output a compiler flag
instead of a file name.

To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

This archive was generated by hypermail 2b29 : Tue Oct 15 2002 - 22:00:25 EST