BUILD_DATE. yay.

origin
solomon 2002-11-15 20:23:58 +00:00
parent 24bdc241d7
commit fc52c1ab4a
4 changed files with 25 additions and 2 deletions

View File

@ -41,6 +41,7 @@
* Intersil Corporation as part of PRISM(R) chipset product development.
*
* --------------------------------------------------------------------
- Minor improvements to the build system.
- Moved RX processing to a bottom half instead of hard irq context.
- Further script improvements: signal strength filtering, and some
space handling stuff. The latter is not complete yet.

View File

@ -203,7 +203,25 @@ cat > $versionh <<END
*
* --------------------------------------------------------------------
*/
#ifndef _WLAN_VERSION_H
#define _WLAN_VERSION_H
#ifndef KERNEL_VERSION
#define KERNEL_VERSION(a,b,c) (((a) << 16) + ((b) << 8) + (c))
#endif
/* WLAN_HOSTIF (generally set on the command line, not detected) */
#define WLAN_PCMCIA 1
#define WLAN_ISA 2
#define WLAN_PCI 3
#define WLAN_USB 4
#define WLAN_PLX 5
#define WLAN_SLAVE 6
END
DATE=`date`
printf '#define WLAN_RELEASE\t"%d.%d.%d%s"\n' \
${WLAN_VERSION} \
${WLAN_PATCHLEVEL} \
@ -213,8 +231,11 @@ printf '#define WLAN_RELEASE_CODE 0x%02x%02x%02x\n' \
${WLAN_VERSION} \
${WLAN_PATCHLEVEL} \
${WLAN_SUBLEVEL} >> $versionh
echo '#define WLAN_BUILD_DATE "'"$DATE"'"' >> $versionh
printf '\n' >> $versionh
printf '#endif\n' >> $versionh
}
#=======================================================================

View File

@ -141,7 +141,7 @@ int init_module(void)
DBFENTER;
#if 0
printk(KERN_NOTICE "%s Loaded\n", version);
printk(KERN_NOTICE "%s (%s) Loaded\n", version, WLAN_BUILD_DATE);
#endif
p80211netdev_startup();

View File

@ -1118,7 +1118,8 @@ p80211netdev_proc_read(
goto exit;
}
p += sprintf(p, "p80211 version: %s\n\n", WLAN_RELEASE);
p += sprintf(p, "p80211 version: %s (%s)\n\n",
WLAN_RELEASE, WLAN_BUILD_DATE);
p += sprintf(p, "name : %s\n", wlandev->name);
p += sprintf(p, "bus : %s\n", wlandev->slotname);
p += sprintf(p, "address : %02x:%02x:%02x:%02x:%02x:%02x\n",