drivers/net/npe: descend only when CONFIG_IXP4XX_NPE=y
authorMasahiro Yamada <yamada.m@jp.panasonic.com>
Mon, 11 Nov 2013 05:35:59 +0000 (14:35 +0900)
committerTom Rini <trini@ti.com>
Sun, 17 Nov 2013 19:11:32 +0000 (14:11 -0500)
CONFIG_IXP4XX_NPE is defined only for CPU ixp.
It is not necessary to filter by CPU ixp.

Signed-off-by: Masahiro Yamada <yamada.m@jp.panasonic.com>
Makefile
drivers/net/npe/Makefile

index 5cdfc6dfea23663e631884bde53da9352805bcdc..4724f4171c2dc0f7d583cca25e490cc974275c61 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -242,9 +242,7 @@ LIBS-y += $(CPUDIR)/lib$(CPU).o
 ifdef SOC
 LIBS-y += $(CPUDIR)/$(SOC)/lib$(SOC).o
 endif
-ifeq ($(CPU),ixp)
-LIBS-y += drivers/net/npe/libnpe.o
-endif
+LIBS-$(CONFIG_IXP4XX_NPE) += drivers/net/npe/libnpe.o
 LIBS-$(CONFIG_OF_EMBED) += dts/libdts.o
 LIBS-y += arch/$(ARCH)/lib/lib$(ARCH).o
 LIBS-y += fs/libfs.o \
index 7fa5ea635f02b3ca23c68d9c0473083b9afa46c9..e36c0bbd695124bc9c97a71fdb735ad52bac6275 100644 (file)
@@ -10,7 +10,7 @@ CFLAGS  += $(LOCAL_CFLAGS)
 CPPFLAGS  += $(LOCAL_CFLAGS) # needed for depend
 HOSTCFLAGS  += $(LOCAL_CFLAGS)
 
-obj-$(CONFIG_IXP4XX_NPE) := npe.o \
+obj-y := npe.o \
        miiphy.o \
        IxOsalBufferMgt.o \
        IxOsalIoMem.o \