Hi Ralf,
On Tue, Mar 29, 2011 at 07:25:14PM +0200, Ralf Friedl wrote:
> Denys Vlasenko wrote:
> >>>The UBI attach/detach functionality is not available in kernels older than
> >>>2.6.25. Enabling this applet on such an old kernel doesn't make sense.
> >>Ok, that's a valid argument :-)
> >>
> >>Maybe #error'ing out with "your kernel headers are probably too old..."
> >>would be an option. I'll try to cook something up.
> >
> >This will only clutter code up. Think how useless such check
> >becomes in a year or two...
> >
> The embedded world can be quite stable. I use busybox on a device
> where the vendor is still at 2.6.13. At least it's no longer 2.4 ...
You can still compile Busybox using a toolchain with recent kernel header
files, and the resulting binary should still run on an old kernel just fine
(otherwise, it's probably a bug). Obviously, if you try to use an unsupported
feature (like UBI attach/detach) you'll just get a run-time error.
baruch
--
~. .~ Tk Open Systems
=}------------------------------------------------ooO--U--Ooo------------{=
- [email protected] - tel: +972.2.679.5364, http://www.tkos.co.il -
_______________________________________________
busybox mailing list
[email protected]
http://lists.busybox.net/mailman/listinfo/busybox