make smc91111_eeprom managment simpler by depending on the board configuration file...
authorMike Frysinger <vapier@gentoo.org>
Tue, 5 Feb 2008 00:26:54 +0000 (19:26 -0500)
committerMike Frysinger <vapier@gentoo.org>
Tue, 5 Feb 2008 00:26:54 +0000 (19:26 -0500)
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
examples/.gitignore
examples/Makefile
examples/smc91111_eeprom.c

index f5470247848b38496a3602a8b9d68e4225dd777b..059b09641a7bb4999be8241fb4198c6f199b69c2 100644 (file)
@@ -1,5 +1,6 @@
 /hello_world
 /interrupt
 /sched
+/smc91111_eeprom
 *.bin
 *.srec
index 71a8c7f3ab9e7dda5cb91d801fd96ee62ee0c11e..79af4b07cd3d71dc176b704ec205344ff2348ac0 100644 (file)
@@ -91,13 +91,9 @@ BIN  += sched.bin
 endif
 
 ifeq ($(ARCH),blackfin)
-ifneq ($(BOARD),bf537-stamp)
-ifneq ($(BOARD),bf537-pnav)
 ELF    += smc91111_eeprom
 SREC   += smc91111_eeprom.srec
-BIN    += smc91111_eeprom.bin
-endif
-endif
+BIN    += smc91111_eeprom.bin
 endif
 
 # The following example is pretty 8xx specific...
index b8a3594e9e546f901af9449849d239834dcc9cf1..1e1129a334d2f220f95294e97442f17a0167a053 100644 (file)
@@ -31,6 +31,8 @@
 #include <exports.h>
 #include "../drivers/net/smc91111.h"
 
+#ifdef CONFIG_DRIVER_SMC91111
+
 #define SMC_BASE_ADDRESS CONFIG_SMC91111_BASE
 #define EEPROM         0x1;
 #define MAC            0x2;
@@ -387,3 +389,13 @@ void dump_reg (void)
                printf ("\n");
        }
 }
+
+#else
+
+int smc91111_eeprom (int argc, char *argv[])
+{
+       printf("Not supported for this board\n");
+       return 1;
+}
+
+#endif