From Bugzilla Helper: User-Agent: Mozilla/4.76 [en] (X11; U; Linux 2.4.2-2smp i686) Description of problem: As earlier reports state using 'make mrproper' will allow 'make modules' to work properly. However, it rewrites version.h to be quite different from the version shipped. Specifically, extensions like smp and enterprise are missing in the UTS_RELEASE #define. Maybe not a good way to check for things like SMP but the module I am trying to port does and thought I'd report it anyhow. How reproducible: Always Steps to Reproduce: 1. Install klean kernel source 2. Check out version.h 3. make mrproper oldconfig dep bzImage modules 4. Now look at version.h Actual Results: version.h is now much simplier than it was :-) #define UTS_RELEASE "2.4.2-2" #define LINUX_VERSION_CODE 132098 #define KERNEL_VERSION(a,b,c) (((a) << 16) + ((b) << 8) + (c)) Expected Results: should be the same as it was? no? #include <linux/rhconfig.h> #if defined(__module__smp) #define UTS_RELEASE "2.4.2-2smp" #elif defined(__module__BOOT) #define UTS_RELEASE "2.4.2-2BOOT" #elif defined(__module__enterprise) #define UTS_RELEASE "2.4.2-2enterprise" #else #define UTS_RELEASE "2.4.2-2" #endif #define LINUX_VERSION_CODE 132098 #define KERNEL_VERSION(a,b,c) (((a) << 16) + ((b) << 8) + (c)) Additional info:
For checking SMP, try #ifdef CONFIG_SMP ... #endif the mrproper thing is hard. The whole POINT of having to do make mrproper is to remove the files we added. Of course this bugs me enough that I'm looking for an alternative but getting every situation right is nearly impossible. I'm closing this as "Deferred" as the real solution is still not quite clear.