-
iximeow
are the makefiles and typical variables i'd see in illumos documented anywhere?
-
iximeow
i think i was just looking at the same thing as jmc in
code.illumos.org/c/illumos-gate/+/3…0a7c67f36ab9e4d5509a96f6bfd46da2282 but i had the much more rudimentary question "what does SMOFF mean here"
-
fenix
→ CODE REVIEW 3862: 16963 i86pc/unix: potential null dereference 'ht'. (NEW) |
illumos.org/issues/16963
-
iximeow
i've gotten to, controls which passes defined in smatch are off in building the object, somehow by adjusting CERRWARN maybe, which is consumed somewhere else
-
iximeow
which is at least a mushy understanding of the words here, but feels like i've maybe missed something along the way
-
iximeow
if this is also just me not having looked at enough C projects and makefiles, that's also quite fair :)
-
andyf
I don't think it's documented anywhere
-
andyf
You found "CERRWARN += $(SMOFF:%=-_smatch=--disable=%)" by the sound of it, which converts each <word> in SMOFF to -_smatch=--disable=<word>
-
andyf
Those are passed as parameters to "cw", the compiler wrapper, and the -_smatch means that this is a parameter for the compiler of flavour "smatch"
-
iximeow
indeed, and the various <word>.c in smatch that looks like we parse gcc warnings for whichever purposes
-
andyf
which ends up with smatch being invoked with --disable=<word> --disable=<word> etc.
-
iximeow
ah that was one i wasn't sure about, if cw is invoked before or after smatch
-
andyf
smatch is just defined as one of the shadow compilers, and cw takes care of running the primary and shadow compilers with the right options.
-
rmustacc
The dev-guide has a number of bits in the specific Makefile examples:
illumos.org/books/dev.
-
rmustacc
uts/README has a bit there, but needs some improvements.
-
iximeow
oh of course
-
rmustacc
That said, most of the dev-guide work I did wasn't refreshed post-SMATCH.
-
rmustacc
And in general, this can definitely be improved.
-
rmustacc
illumos.org/books/dev/anatomy.html is probably the page that has the most.
-
iximeow
yeah, that's informative
-
iximeow
either way the dev guide seems like the right place to look for and add more info. just hadn't looked there for a minute
-
rmustacc
If there's specific content, feel free to file bugs against it. Or if you have suggestions, even better.
-
iximeow
yup, i'll do that
-
rmustacc
Thanks.
-
bydus
New to the illumos world and learning all the awesome possibilities these distros have to offer! Just installed OmniOs and learning the ins and outs. Nice to meet you all :D
-
tsoome_
welcome:)
-
bydus
Thank you thank you :D Excited to go down the rabbit hole
-
dangergrrl
-
dangergrrl
eek that's long
-
dangergrrl
sorry
-
dangergrrl
anyone coming? I should be there, it's across town
-
richlowe
rmustacc, iximeow: If we're pointing people at uts/README, do you perhaps want to read mine and see if you'd find it better?
-
richlowe
(I missed a lot of context)
-
richlowe
but I'm eager for new victims to pass judgement on
code.illumos.org/c/illumos-gate/+/3479 and friends
-
fenix
→ CODE REVIEW 3479: Introduce Makefile.kmod (NEW)
-
richlowe
by "new victims", I especially mean people who would need the documentation we don't otherwise have
-
rmustacc
Yeah, I was thinking more so of your improved version actually.
-
sommerfeld
was going to say "I don't see a change to uts/README in there" and then I noticed the "SHOW 200 MORE / SHOW ALL 587 FILES" at the bottom of the file list
-
iximeow
richlowe: ooooh, yes, that seems quite relevant and informative
-
iximeow
i'll take a closer look later
-
gitomat
[illumos-gate] 16995 remove sun4v ldom static direct i/o (sdio) hooks -- Richard Lowe <richlowe⊙rn>