AA: bcm63xx: properly prevent known unusable images from being built
authorJonas Gorski <jogo@openwrt.org>
Sun, 25 Nov 2012 13:42:43 +0000 (13:42 +0000)
committerJonas Gorski <jogo@openwrt.org>
Sun, 25 Nov 2012 13:42:43 +0000 (13:42 +0000)
Commenting out does not work, so guard the calls with a check for BROKEN.

Signed-off-by: Jonas Gorski <jogo@openwrt.org>
SVN-Revision: 34328

target/linux/brcm63xx/image/Makefile

index 87ace17d676ffefcf419e462ad4a2ade86c571db..bdbda32ccb1e89fd0fe45f3619ebf807fd7b222d 100644 (file)
@@ -145,15 +145,17 @@ endef
 define Image/Build
        dd if=$(KDIR)/root.$(1) of=$(BIN_DIR)/$(IMG_PREFIX)-root.$(1) bs=128k conv=sync
        # Various routers
-       # $(call Image/Build/CFE,$(1),96328avng,6328,96328avng-4M-flash-generic,,--pad 2)
-       # $(call Image/Build/CFE,$(1),96328avng,6328,96328avng-8M-flash-generic,,--pad 4)
-       # $(call Image/Build/CFE,$(1),96328avng,6328,96328avng-16M-flash-generic,,--pad 8)
-       # $(call Image/Build/CFE,$(1),963281TAN,6328,963281TAN-4M-flash-generic,,--pad 2)
-       # $(call Image/Build/CFE,$(1),963281TAN,6328,963281TAN-8M-flash-generic,,--pad 4)
-       # $(call Image/Build/CFE,$(1),963281TAN,6328,963281TAN-16M-flash-generic,,--pad 8)
-       # $(call Image/Build/CFE,$(1),96345GW2,6345,96345GW2-generic)
-       # $(call Image/Build/CFE,$(1),96345GW2,6345,96348GW2-bc221,,--layoutver 5)
-       # $(call Image/Build/CFE,$(1),96345GW2,6345,92345GW2-rev,OpenWRT-$(REVISION))
+ifneq ($(CONFIG_BROKEN),)
+       $(call Image/Build/CFE,$(1),96328avng,6328,96328avng-4M-flash-generic,,--pad 2)
+       $(call Image/Build/CFE,$(1),96328avng,6328,96328avng-8M-flash-generic,,--pad 4)
+       $(call Image/Build/CFE,$(1),96328avng,6328,96328avng-16M-flash-generic,,--pad 8)
+       $(call Image/Build/CFE,$(1),963281TAN,6328,963281TAN-4M-flash-generic,,--pad 2)
+       $(call Image/Build/CFE,$(1),963281TAN,6328,963281TAN-8M-flash-generic,,--pad 4)
+       $(call Image/Build/CFE,$(1),963281TAN,6328,963281TAN-16M-flash-generic,,--pad 8)
+       $(call Image/Build/CFE,$(1),96345GW2,6345,96345GW2-generic)
+       $(call Image/Build/CFE,$(1),96345GW2,6345,96348GW2-bc221,,--layoutver 5)
+       $(call Image/Build/CFE,$(1),96345GW2,6345,92345GW2-rev,OpenWRT-$(REVISION))
+endif
        $(call Image/Build/CFE,$(1),96348GW,6348,96348GW-generic,,)
        $(call Image/Build/CFE,$(1),96348R,6348,96348R-generic,,)
        $(call Image/Build/CFE,$(1),96348GW,6348,96348GW-bc221,,--layoutver 5)
@@ -164,8 +166,10 @@ define Image/Build
        $(call Image/Build/CFE,$(1),96348A-122,6348,96348A-122-generic)
        $(call Image/Build/CFE,$(1),96358VW,6358,96358VW-generic)
        $(call Image/Build/CFE,$(1),96358VW2,6358,96358VW2-generic)
+ifneq ($(CONFIG_BROKEN),)
        # $(call Image/Build/CFE,$(1),96368MVNgr,6368,96368MVNgr-generic)
        # $(call Image/Build/CFE,$(1),96368MVWG,6368,96368MVWG-generic)
+endif
 
        # BT Voyager V210_BTR
        $(call Image/Build/CFE,$(1),V210_BB,6348,BTV210_BTR,,--layoutver 5)
@@ -192,7 +196,9 @@ define Image/Build
        # Neufbox4
        $(call Image/Build/CFE,$(1),96358VW,6358,NEUFBOX4,OpenWRT-$(REVISION))
        # Neufbox6
-       # $(call Image/Build/CFE,$(1),NB6-SER-r0,6362,NEUFBOX6,OpenWRT-$(REVISION))
+ifneq ($(CONFIG_BROKEN),)
+       $(call Image/Build/CFE,$(1),NB6-SER-r0,6362,NEUFBOX6,OpenWRT-$(REVISION))
+endif
        # Comtrend 6373
        $(call Image/Build/CFE,$(1),CT6373-1,6358,CT6373)
        # Comtrend 536, 5621