# For each kver release, start extra with an empty string, then count
# from 1 if changes are needed that require rebuilding the tarball.
-kver=2.6.32 extra=
+kver=2.6.32 extra=++
case $1 in
--force)
clean_blob drivers/staging/rt2860/rt_linux.h
clean_sed '
/^NDIS_STATUS NICLoadFirmware(/,/^}$/{
- s/^\( *\)pFirmwareImage = .*FirmwareImage.*;/\1printk("%s: missing Free firmware\\n", __func__);\n\1return NDIS_STATUS_FAILURE;\n&/
+ s/^\( *\)pFirmwareImage = .*FirmwareImage.*;/\1return printk("%s: missing Free firmware\\n", __func__),\n\1 NDIS_STATUS_FAILURE;\n&/
}' drivers/staging/rt2860/common/rtmp_init.c 'report missing Free firmware'
clean_blob drivers/staging/rt2860/common/rtmp_init.c
clean_sed '
/^INT[ ]set_eFuseLoadFromBin_Proc(/,/^}$/{
/src = kmalloc/i\
printk("%s: missing Free firmware\\n", __func__);\
- return FALSE;
+ return FALSE;
}' drivers/staging/rt2860/common/eeprom.c 'report missing Free firmware'
clean_blob drivers/staging/rt2860/common/eeprom.c
clean_kconfig drivers/staging/rt2860/Kconfig RT2860
clean_blob drivers/staging/rt3090/rt_ate.c
clean_sed '
/^NDIS_STATUS RtmpAsicLoadFirmware(/,/^}$/{
- s/^\( *\)pFirmwareImage = .*FirmwareImage.*;/\1printk("%s: missing Free firmware\\n", __func__);\n\1return NDIS_STATUS_FAILURE;\n&/
+ s/^\( *\)pFirmwareImage = .*FirmwareImage.*;/\1return printk("%s: missing Free firmware\\n", __func__),\n\1 NDIS_STATUS_FAILURE;\n&/
}' drivers/staging/rt3090/common/rtmp_mcu.c 'report missing Free firmware'
clean_blob drivers/staging/rt3090/common/rtmp_mcu.c
clean_kconfig drivers/staging/rt3090/Kconfig RT3090
clean_sed '
/^FIRMWAREbDownload($/,/^}$/ {
/PBYTE.*pBuffer/ i\
- PBYTE abyFirmware[1] = 0;
+ PBYTE abyFirmware[1] = { 0 };
/-->Download firmware/ i\
- printk("vt6656: missing Free firmware\\n");\
- return (FALSE);
+ printk("vt6656: missing Free firmware\\n");\
+ return (FALSE);
}' drivers/staging/vt6656/firmware.c 'report missing Free firmware'
clean_blob drivers/staging/vt6656/firmware.c
clean_kconfig drivers/staging/vt6656/Kconfig 'VT6656'