Page MenuHomeFreeBSD

Stub is_tftp when LOADER_NET_SUPPORT is not enabled
ClosedPublic

Authored by sjg on Thu, Aug 21, 6:40 AM.
Tags
None
Referenced Files
Unknown Object (File)
Wed, Aug 27, 11:12 AM
Unknown Object (File)
Wed, Aug 27, 10:13 AM
Unknown Object (File)
Wed, Aug 27, 9:10 AM
Unknown Object (File)
Wed, Aug 27, 7:25 AM
Unknown Object (File)
Wed, Aug 27, 5:08 AM
Unknown Object (File)
Tue, Aug 26, 4:51 PM
Unknown Object (File)
Tue, Aug 26, 12:04 PM
Unknown Object (File)
Tue, Aug 26, 4:35 AM
Subscribers

Details

Summary

common/misc.c is a non-optional part of loader.
If LOADER_NET_SUPPORT is not defined provide a stub that always returns
false.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

sjg requested review of this revision.Thu, Aug 21, 6:40 AM

In case it isn't obvious, we can't stub or #ifdef this in libsa since that is presumably shared by all loaders for a given arch, thus a non-optional src from loader.mk would seem to make sense - misc.c seemed as good as any?

des added a subscriber: des.
des added inline comments.
stand/common/misc.c
224

maybe add an explanatory comment here

This revision is now accepted and ready to land.Thu, Aug 21, 7:07 AM
In D52060#1189324, @sjg wrote:

In case it isn't obvious, we can't stub or #ifdef this in libsa since that is presumably shared by all loaders for a given arch, thus a non-optional src from loader.mk would seem to make sense - misc.c seemed as good as any?

Let's just get this in and we can debate it later, but I note that this could have been a __weak_symbol in libsa.

let's not gild this too much. I plan on removing this stupid hack when I have a reasonable alternative. It's only here for 15.0. The real fix is to remove the need for it completely.