Closed larsbrinkhoff closed 7 years ago
Most of it looks fine to me, but I think the replacement of $(.TARGETS) in a makefile with an explicit list of targets might be undesirable. However, I haven't studied the makefiles enough to be sure. Maybe it's worth asking Rich why he changed that.
Note that old/src/Mk-fbppc.mk also has an explicit list. Are the files in "old" used at all?
I have no idea whether the files in "old" are used, but if they're not, there's no point in merging changes to them.
No, the files in "old" are not used any more. I kept them only for reference, mainly for the different options there are for building the different models.
Removing the dvlites.o module from the KS models can be done now as well, without further changes. Back when these patches were made, the #ifdef
s checking KLH10_DEV_LITES
had to be moved a bit to exclude code related to that more thoroughly. You will see for example that the patch to klh10.c
now supplies fc_lights(struct cmd_s *cm)
with a double set of #ifdef
s.
In kn10pag.c
there is an exclusion of some header files and a call (to that doubly-guarded function). The dvlites.h
header file has its internal guard so it can always be included. The other two header files are needed in any case, because clang complains about implicit function declarations.
In osdsup.c
, there is the constant IPC_PRIVATE
which I looked at before, and concluded that it was used incorrectly at that location.
I can either simply remove the lites object file from the makefile and consider the changes merged. Or you could remove the duplicated KLH10_DEV_LITES
guard, choosing the "outer" or "more thorough" exclusion, and restore the include files, and make that into a new pull request.
ETA: I meant "remove all duplicated guards, there may be more that I didn't notice".
@Rhialto Can you post line-by-line comments indicating what changes you want?
Ok, that should be it, I think.
I merged the changes from Rich and resolved the conflicts. This is the result.
I have not considered what, if anything, is useful. I can revise this pull request based on feed back.