www.usr.com/support/gpl/USR9113_release1.0.tar.gz
[bcm963xx.git] / hostTools / scripts / gendefconfig
index af931de..8bb5016 100755 (executable)
@@ -77,12 +77,15 @@ if [ "$BRCM_DRIVER_WIRELESS" != "" ]; then
    SEDCMD="$SEDCMD -e 's/# CONFIG_NET_RADIO is not set/CONFIG_NET_RADIO=y/'"
    SEDCMD="$SEDCMD -e 's/# CONFIG_HOTPLUG is not set/CONFIG_HOTPLUG=y/'"
    SEDCMD="$SEDCMD -e 's/# CONFIG_SYSFS is not set/CONFIG_SYSFS=y/'"   
-if [ "$BRCM_CHIP" = "6348" ]; then
+if [ "$BRCM_CHIP" = "6348" -o "$BRCM_CHIP" = "6358" ]; then
    SEDCMD="$SEDCMD -e 's/# CONFIG_PCI is not set/CONFIG_PCI=y/'"
 fi
+if [ "$BUILD_MIMO" != "" ]; then
+   SEDCMD="$SEDCMD -e 's/# CONFIG_BCM_MIMO is not set/CONFIG_BCM_MIMO=y/'"
+fi
 fi
 
-if [ "$BRCM_CHIP" = "6348" ]; then
+if [ "$BRCM_CHIP" = "6348" -o "$BRCM_CHIP" = "6358" ]; then
 driver_setup "PCI" "PCI"
 if [ "$BRCM_DRIVER_PCI" != "" ]; then
    SEDCMD="$SEDCMD -e 's/# CONFIG_PCI is not set/CONFIG_PCI=y/'"
@@ -92,6 +95,9 @@ fi
 if [ "$LINUX_DRIVER_USB_HOST" != "" ]; then
    SEDCMD="$SEDCMD -e 's/# CONFIG_USB is not set/CONFIG_USB=y/'"
    SEDCMD="$SEDCMD -e 's/# CONFIG_USB_OHCI_HCD is not set/CONFIG_USB_OHCI_HCD=y/'"
+if [ "$BRCM_CHIP" != "6348" ]; then
+   SEDCMD="$SEDCMD -e 's/# CONFIG_USB_EHCI_HCD is not set/CONFIG_USB_EHCI_HCD=y/'"
+fi
    SEDCMD="$SEDCMD -e 's/# CONFIG_PCI is not set/CONFIG_PCI=y/'"
    SEDCMD="$SEDCMD -e 's/# CONFIG_USB_PRINTER is not set/CONFIG_USB_PRINTER=y/'"
 if [ "$LINUX_DRIVER_CDCETHER" != "" ]; then
@@ -100,7 +106,9 @@ if [ "$LINUX_DRIVER_CDCETHER" != "" ]; then
 fi
 fi
 
-driver_setup "VDSL" "VDSL"
+if [ "$BUILD_VDSL" != "" ]; then
+   SEDCMD="$SEDCMD -e 's/# CONFIG_BCM_VDSL is not set/CONFIG_BCM_VDSL=y/'"
+fi
 
 driver_setup "PHONE" "ENDPOINT"
 
@@ -339,6 +347,12 @@ SEDCMD="$SEDCMD -e 's/# CONFIG_BRIDGE_EBT_VLAN is not set/CONFIG_BRIDGE_EBT_VLAN
 SEDCMD="$SEDCMD -e 's/# CONFIG_BRIDGE_EBT_TIME is not set/CONFIG_BRIDGE_EBT_TIME=y/'"
 SEDCMD="$SEDCMD -e 's/# CONFIG_BRIDGE_EBT_MARK_T is not set/CONFIG_BRIDGE_EBT_MARK_T=y/'"
 SEDCMD="$SEDCMD -e 's/# CONFIG_BRIDGE_EBT_FTOS_T is not set/CONFIG_BRIDGE_EBT_FTOS_T=y/'"
+
+if [ "$BRCM_DRIVER_WIRELESS" != "" ]; then
+SEDCMD="$SEDCMD -e 's/# CONFIG_BRIDGE_EBT_T_NAT is not set/CONFIG_BRIDGE_EBT_T_NAT=y/'"
+SEDCMD="$SEDCMD -e 's/# CONFIG_BRIDGE_EBT_WMM_MARK is not set/CONFIG_BRIDGE_EBT_WMM_MARK=y/'"
+fi
+
 fi
 
 ############################################################