how to identify what can be removed?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



  i just want to clarify how to identify how much can be deleted when
looking at a combination of source files, header files, a Makefile and
a Kconfig file.

  consider sound/oss/dmasound/Makefile:

==========
dmasound_pmac-y                 += dmasound_awacs.o \
                                   trans_16.o dac3550a.o tas_common.o \
                                   tas3001c.o tas3001c_tables.o \
                                   tas3004.o tas3004_tables.o

obj-$(CONFIG_DMASOUND_ATARI)    += dmasound_core.o dmasound_atari.o
obj-$(CONFIG_DMASOUND_PMAC)     += dmasound_core.o dmasound_pmac.o
obj-$(CONFIG_DMASOUND_PAULA)    += dmasound_core.o dmasound_paula.o
obj-$(CONFIG_DMASOUND_Q40)      += dmasound_core.o dmasound_q40.o
==========

  now, there is no longer any CONFIG_DMASOUND_PMAC Kconfig variable,
so i'm assuming that i can remove that one line from the Makefile, as
well as the source file dmasound_pmac.c.  so far, easy.

  in addition, i'm not *entirely* familiar with how a variable of the
form "dmasound_pmac-y" is processed, but i'm assuming that, since
dmasound_pmac.c no longer exists, any corresponding source files in
that list that aren't also referenced elsewhere can also be deleted.
(in this case, it appears to be the entire list.)

  does that make sense?  this would remove the vast majority of that
entire directory, but that looks like the logical conclusion based on
what i see.

  thoughts?

rday
-- 
========================================================================
Robert P. J. Day
Linux Consulting, Training and Annoying Kernel Pedantry
Waterloo, Ontario, CANADA

http://fsdev.net/wiki/index.php?title=Main_Page
========================================================================

--
To unsubscribe from this list: send an email with
"unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx
Please read the FAQ at http://kernelnewbies.org/FAQ


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux