Date: Wed, 1 Jun 2011 08:40:55 +0200 From: Nick Hibma <nick@van-laarhoven.org> To: lev@FreeBSD.org Cc: n_hibma@FreeBSD.org, freebsd-usb@freebsd.org Subject: Re: Changes to usb/serial: how to distinguish between old and new interfaces in 8-STABLE and 9-CURRENT branches? Message-ID: <10256681-CB7D-4330-8533-9D64949A4C47@van-laarhoven.org> In-Reply-To: <1618757683.20110601001251@serebryakov.spb.ru> References: <1618757683.20110601001251@serebryakov.spb.ru>
next in thread | previous in thread | raw e-mail | index | archive | help
Lev, ABI's change. You need to use __FreeBSD_version. See = /usr/include/osreldate.h. But could we include the driver in the kernel? That way it would be = updated when needed. Nick Hibma nick@van-laarhoven.org Want to feel like going on a holiday tomorrow? Try GTD. On 31 May 2011, at 22:12, Lev Serebryakov wrote: > Hello, Freebsd-usb. >=20 > I'm author of `comms/umcs7840' port, which is module for usbcom, > like `uftdi' and `uplcom' in base system. >=20 > Last changes, committed to 8-STABLE (and, earlier to HEAD), breaks > some API/ABI for such modules. >=20 > I have tow questions: >=20 > (1) How could I detect which version have user at compile time? I > don't use any autoconf/automake framework, my build framework is baed > on FreeBSD-native bsd.*.mk framework, so I need some define or > something like this to distinguish these versions. I could not find > anything suitable in revision 221612 commit. >=20 > (2) WHY, OR WHY old module was loaded without problems?! ABI is > broken (ucom_detach()? size of struct ucom_softc) and old module > should complain on load, IMHO! Users will be very surprised when > computer will reboot after system update! >=20 > --=20 > // Black Lion AKA Lev Serebryakov <lev@FreeBSD.org> >=20
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?10256681-CB7D-4330-8533-9D64949A4C47>