On Thu, 29 Nov 2001 12:54:03 +0100, 
Giacomo Catenazzi <[EMAIL PROTECTED]> wrote:
>The main point is: Could we find easily all
>'orphaned file' with the new kbuild-2.5?

make -f $KBUILD_SRCTREE_000/Makefile-2.5 allyes $KBUILD_OBJTREE/.tmp_global_makefile
grep '\.[coS] ' $KBUILD_OBJTREE/.tmp_database_debug | \
  egrep -v '\.tmp|Documentation|arch/|scripts/| - |\.c?d ' | \
  awk 'src != "" {if (obj != $1) {print src}; src="";}
       $1 ~ /.*\.[cS]$/ {src=$1; obj=src; sub(/.$/, "o", obj); }'

It has some false positives:

  .[cS] files that are only included by other files, like nicstarmac.c.
  No way to find them without doing a full compile and even that is not
  guaranteed.

  Objects that are indirectly selected via make variables _and_ the
  select() statement is not true.  drivers/acorn/char/keyb_arc.c is
  indirectly selected via make variable obj-arc but obj_$(MACHINE) is
  not true on my build.  make allyes picks up most, but not all,
  indirect selections.

This is my list from 2.4.16.  A lot are false positives, but some are
definitely orphaned.  If you spot any errors in the Makefile.in rules
compared to Makefile, let me know.

drivers/acorn/char/keyb_arc.c
drivers/acorn/char/keyb_ps2.c
drivers/acorn/char/mouse_ps2.c
drivers/acorn/char/serial-card.c
drivers/atm/fore200e_sba_fw.c
drivers/atm/nicstarmac.c
drivers/block/paride/ppc6lnx.c
drivers/char/amikeyb.c
drivers/char/decserial.c
drivers/char/dn_keyb.c
drivers/char/ec3104_keyb.c
drivers/char/hp600_keyb.c
drivers/char/hp_keyb.c
drivers/char/hp_psaux.c
drivers/char/ite_gpio.c
drivers/char/q40_keyb.c
drivers/char/qtronix.c
drivers/char/qtronixmap.c
drivers/char/scan_keyb.c
drivers/char/w83877f_wdt.c
drivers/char/ip2/i2cmd.c
drivers/char/ip2/i2ellis.c
drivers/char/ip2/i2lib.c
drivers/char/ip2/ip2mkdev.c
drivers/char/ip2/ip2stat.c
drivers/char/ip2/ip2trace.c
drivers/ieee1394/ieee1394_syms.c
drivers/isdn/hisax/amd7930.c
drivers/isdn/hisax/elsa_ser.c
drivers/isdn/hisax/hscx_irq.c
drivers/isdn/hisax/jade_irq.c
drivers/isdn/hisax/rawhdlc.c
drivers/isdn/hysdn/hysdn_procfs.c
drivers/media/video/zoran_procfs.c
drivers/message/fusion/ascq_tbl.c
drivers/message/fusion/scsiops.c
drivers/net/aironet4500_rid.c
drivers/net/dgrs_firmware.c
drivers/net/isa-skeleton.c
drivers/net/pci-skeleton.c
drivers/net/ptifddi.c
drivers/net/sonic.c
drivers/net/zlib.c
drivers/net/fc/iph5526_novram.c
drivers/net/pcmcia/ibmtr_cs_inc.c
drivers/net/skfp/can.c
drivers/net/wan/hd6457x.c
drivers/parport/parport_arc.c
drivers/pcmcia/sa1100_adsbitsy.c
drivers/pcmcia/sa1100_assabet.c
drivers/pcmcia/sa1100_cerf.c
drivers/pcmcia/sa1100_flexanet.c
drivers/pcmcia/sa1100_freebird.c
drivers/pcmcia/sa1100_graphicsclient.c
drivers/pcmcia/sa1100_graphicsmaster.c
drivers/pcmcia/sa1100_h3600.c
drivers/pcmcia/sa1100_jornada720.c
drivers/pcmcia/sa1100_neponset.c
drivers/pcmcia/sa1100_pangolin.c
drivers/pcmcia/sa1100_pfs168.c
drivers/pcmcia/sa1100_simpad.c
drivers/pcmcia/sa1100_stork.c
drivers/pcmcia/sa1100_xp860.c
drivers/pcmcia/sa1100_yopy.c
drivers/s390/ebcdic.c
drivers/s390/char/tape3590.c
drivers/sbus/char/sunkeymap.c
drivers/scsi/FlashPoint.c
drivers/scsi/NCR5380.c
drivers/scsi/atari_NCR5380.c
drivers/scsi/atari_dma_emul.c
drivers/scsi/cpqioctl.c
drivers/scsi/eata_dma_proc.c
drivers/scsi/eata_pio_proc.c
drivers/scsi/gdth_proc.c
drivers/scsi/mac_NCR5380.c
drivers/scsi/qlogicfc_asm.c
drivers/scsi/qlogicisp_asm.c
drivers/scsi/qlogicpti_asm.c
drivers/scsi/scsi_module.c
drivers/scsi/scsiiom.c
drivers/scsi/sun3_NCR5380.c
drivers/scsi/aic7xxx_old/aic7xxx_proc.c
drivers/scsi/aic7xxx_old/aic7xxx_seq.c
drivers/scsi/pcmcia/nsp_debug.c
drivers/scsi/pcmcia/nsp_message.c
drivers/sound/ite8172.c
drivers/sound/msndinit.c
drivers/sound/msndperm.c
drivers/sound/pndsperm.c
drivers/sound/pndspini.c
drivers/sound/skeleton.c
drivers/sound/cs4281/cs4281_wrapper-24.c
drivers/sound/cs4281/cs4281pm-24.c
drivers/usb/usb-skeleton.c
drivers/usb/serial/keyspan_pda.S
drivers/usb/serial/xircom_pgs.S
drivers/video/dn_cfb4.c
drivers/video/dn_cfb8.c
drivers/video/skeletonfb.c
fs/intermezzo/ext_attr.c
fs/intermezzo/kml.c
fs/intermezzo/kml_decode.c
fs/intermezzo/kml_reint.c
fs/intermezzo/kml_setup.c
fs/intermezzo/kml_utils.c
fs/jffs2/comprtest.c
fs/minix/itree_common.c
lib/inflate.c
net/ipv4/netfilter/ipt_ttl.c
net/ipv6/ip6_fw.c
net/sunrpc/svcauth_des.c
net/wanrouter/af_wanpipe.c


_______________________________________________
kbuild-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/kbuild-devel

Reply via email to