diff mbox

[U-Boot] punt unused clean/distclean targets

Message ID 1316323020-4027-1-git-send-email-vapier@gentoo.org
State Accepted
Delegated to: Wolfgang Denk
Headers show

Commit Message

Mike Frysinger Sept. 18, 2011, 5:17 a.m. UTC
The top level Makefile does not do any recursion into subdirs when
cleaning, so these clean/distclean targets in random arch/board dirs
never get used.  Punt them all.

MAKEALL didn't report any errors related to this that I could see.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
---
 arch/arm/cpu/arm926ejs/spear/Makefile    |    6 ------
 arch/sh/cpu/sh2/Makefile                 |    6 ------
 arch/sh/cpu/sh3/Makefile                 |    6 ------
 arch/sh/cpu/sh4/Makefile                 |    6 ------
 board/BuS/eb_cpux9k2/Makefile            |    6 ------
 board/LaCie/edminiv2/Makefile            |    6 ------
 board/LaCie/netspace_v2/Makefile         |    6 ------
 board/Marvell/aspenite/Makefile          |    6 ------
 board/Marvell/dkb/Makefile               |    6 ------
 board/Marvell/gplugd/Makefile            |    6 ------
 board/Marvell/guruplug/Makefile          |    6 ------
 board/Marvell/mv88f6281gtw_ge/Makefile   |    6 ------
 board/Marvell/openrd/Makefile            |    6 ------
 board/Marvell/rd6281a/Makefile           |    6 ------
 board/Marvell/sheevaplug/Makefile        |    6 ------
 board/Seagate/dockstar/Makefile          |    6 ------
 board/a4m072/Makefile                    |    6 ------
 board/actux1/Makefile                    |    6 ------
 board/actux2/Makefile                    |    6 ------
 board/actux3/Makefile                    |    6 ------
 board/actux4/Makefile                    |    6 ------
 board/adder/Makefile                     |    6 ------
 board/afeb9260/Makefile                  |    6 ------
 board/alaska/Makefile                    |    6 ------
 board/altera/nios2-generic/Makefile      |    6 ------
 board/amcc/acadia/Makefile               |    6 ------
 board/amcc/bamboo/Makefile               |    6 ------
 board/amcc/bluestone/Makefile            |    6 ------
 board/amcc/bubinga/Makefile              |    6 ------
 board/amcc/canyonlands/Makefile          |    6 ------
 board/amcc/ebony/Makefile                |    6 ------
 board/amcc/katmai/Makefile               |    6 ------
 board/amcc/kilauea/Makefile              |    6 ------
 board/amcc/luan/Makefile                 |    6 ------
 board/amcc/makalu/Makefile               |    6 ------
 board/amcc/ocotea/Makefile               |    6 ------
 board/amcc/redwood/Makefile              |    6 ------
 board/amcc/sequoia/Makefile              |    6 ------
 board/amcc/taihu/Makefile                |    6 ------
 board/amcc/taishan/Makefile              |    6 ------
 board/amcc/walnut/Makefile               |    6 ------
 board/amcc/yosemite/Makefile             |    6 ------
 board/amcc/yucca/Makefile                |    6 ------
 board/amirix/ap1000/Makefile             |    6 ------
 board/apollon/Makefile                   |    6 ------
 board/armltd/integrator/Makefile         |    6 ------
 board/armltd/versatile/Makefile          |    6 ------
 board/armltd/vexpress/Makefile           |    6 ------
 board/atmel/at91rm9200ek/Makefile        |    6 ------
 board/atmel/at91sam9260ek/Makefile       |    6 ------
 board/atmel/at91sam9261ek/Makefile       |    6 ------
 board/atmel/at91sam9263ek/Makefile       |    6 ------
 board/atmel/at91sam9m10g45ek/Makefile    |    6 ------
 board/atmel/at91sam9rlek/Makefile        |    6 ------
 board/balloon3/Makefile                  |    6 ------
 board/bc3450/Makefile                    |    6 ------
 board/bct-brettl2/Makefile               |    6 ------
 board/bf506f-ezkit/Makefile              |    6 ------
 board/bf518f-ezbrd/Makefile              |    6 ------
 board/bf525-ucr2/Makefile                |    6 ------
 board/bf526-ezbrd/Makefile               |    6 ------
 board/bf527-ad7160-eval/Makefile         |    6 ------
 board/bf527-ezkit/Makefile               |    6 ------
 board/bf527-sdp/Makefile                 |    6 ------
 board/bf533-ezkit/Makefile               |    6 ------
 board/bf533-stamp/Makefile               |    6 ------
 board/bf537-minotaur/Makefile            |    6 ------
 board/bf537-pnav/Makefile                |    6 ------
 board/bf537-srv1/Makefile                |    6 ------
 board/bf537-stamp/Makefile               |    6 ------
 board/bf538f-ezkit/Makefile              |    6 ------
 board/bf548-ezkit/Makefile               |    6 ------
 board/bf561-acvilon/Makefile             |    6 ------
 board/bf561-ezkit/Makefile               |    6 ------
 board/blackstamp/Makefile                |    6 ------
 board/blackvme/Makefile                  |    6 ------
 board/bluewater/snapper9260/Makefile     |    6 ------
 board/calao/sbc35_a9g20/Makefile         |    6 ------
 board/calao/tny_a9260/Makefile           |    6 ------
 board/canmb/Makefile                     |    6 ------
 board/cerf250/Makefile                   |    6 ------
 board/cm-bf527/Makefile                  |    6 ------
 board/cm-bf533/Makefile                  |    6 ------
 board/cm-bf537e/Makefile                 |    6 ------
 board/cm-bf537u/Makefile                 |    6 ------
 board/cm-bf548/Makefile                  |    6 ------
 board/cm-bf561/Makefile                  |    6 ------
 board/cm4008/Makefile                    |    6 ------
 board/cm41xx/Makefile                    |    6 ------
 board/cm5200/Makefile                    |    6 ------
 board/cm_t35/Makefile                    |    6 ------
 board/cmi/Makefile                       |    6 ------
 board/cogent/Makefile                    |    6 ------
 board/colibri_pxa270/Makefile            |    6 ------
 board/comelit/dig297/Makefile            |    6 ------
 board/cradle/Makefile                    |    6 ------
 board/cray/L1/Makefile                   |    7 -------
 board/csb226/Makefile                    |    6 ------
 board/csb272/Makefile                    |    6 ------
 board/csb472/Makefile                    |    6 ------
 board/dave/PPChameleonEVB/Makefile       |    6 ------
 board/davedenx/aria/Makefile             |    6 ------
 board/davedenx/qong/Makefile             |    6 ------
 board/davinci/common/Makefile            |    6 ------
 board/davinci/da8xxevm/Makefile          |    6 ------
 board/davinci/dm355evm/Makefile          |    6 ------
 board/davinci/dm355leopard/Makefile      |    6 ------
 board/davinci/dm365evm/Makefile          |    6 ------
 board/davinci/dm6467evm/Makefile         |    6 ------
 board/davinci/dvevm/Makefile             |    6 ------
 board/davinci/ea20/Makefile              |    6 ------
 board/davinci/schmoogie/Makefile         |    6 ------
 board/davinci/sffsdr/Makefile            |    6 ------
 board/davinci/sonata/Makefile            |    6 ------
 board/dnp5370/Makefile                   |    6 ------
 board/dvlhost/Makefile                   |    6 ------
 board/eNET/Makefile                      |    6 ------
 board/efikamx/Makefile                   |    6 ------
 board/eltec/bab7xx/Makefile              |    6 ------
 board/eltec/elppc/Makefile               |    6 ------
 board/emk/top5200/Makefile               |    6 ------
 board/emk/top9000/Makefile               |    6 ------
 board/ep8248/Makefile                    |    6 ------
 board/ep8260/Makefile                    |    6 ------
 board/ep82xxm/Makefile                   |    6 ------
 board/ep88x/Makefile                     |    6 ------
 board/esd/adciop/Makefile                |    6 ------
 board/esd/apc405/Makefile                |    6 ------
 board/esd/ar405/Makefile                 |    6 ------
 board/esd/ash405/Makefile                |    6 ------
 board/esd/canbt/Makefile                 |    6 ------
 board/esd/cms700/Makefile                |    6 ------
 board/esd/cpci2dp/Makefile               |    6 ------
 board/esd/cpci405/Makefile               |    6 ------
 board/esd/cpci5200/Makefile              |    6 ------
 board/esd/cpciiser4/Makefile             |    6 ------
 board/esd/dasa_sim/Makefile              |    6 ------
 board/esd/dp405/Makefile                 |    6 ------
 board/esd/du405/Makefile                 |    6 ------
 board/esd/du440/Makefile                 |    6 ------
 board/esd/hh405/Makefile                 |    6 ------
 board/esd/hub405/Makefile                |    6 ------
 board/esd/mecp5123/Makefile              |    6 ------
 board/esd/mecp5200/Makefile              |    6 ------
 board/esd/meesc/Makefile                 |    6 ------
 board/esd/ocrtc/Makefile                 |    6 ------
 board/esd/otc570/Makefile                |    6 ------
 board/esd/pci405/Makefile                |    6 ------
 board/esd/pf5200/Makefile                |    6 ------
 board/esd/plu405/Makefile                |    6 ------
 board/esd/pmc405/Makefile                |    6 ------
 board/esd/pmc405de/Makefile              |    6 ------
 board/esd/pmc440/Makefile                |    6 ------
 board/esd/vme8349/Makefile               |    6 ------
 board/esd/voh405/Makefile                |    6 ------
 board/esd/vom405/Makefile                |    6 ------
 board/esd/wuh405/Makefile                |    6 ------
 board/espt/Makefile                      |    6 ------
 board/eukrea/cpu9260/Makefile            |    6 ------
 board/eukrea/cpuat91/Makefile            |    6 ------
 board/faraday/a320evb/Makefile           |    6 ------
 board/freescale/common/Makefile          |    6 ------
 board/freescale/corenet_ds/Makefile      |    6 ------
 board/freescale/mpc5121ads/Makefile      |    6 ------
 board/freescale/mpc7448hpc2/Makefile     |    7 -------
 board/freescale/mpc8260ads/Makefile      |    6 ------
 board/freescale/mpc8266ads/Makefile      |    6 ------
 board/freescale/mpc8308rdb/Makefile      |    6 ------
 board/freescale/mpc8313erdb/Makefile     |    6 ------
 board/freescale/mpc8315erdb/Makefile     |    6 ------
 board/freescale/mpc8323erdb/Makefile     |    6 ------
 board/freescale/mpc832xemds/Makefile     |    6 ------
 board/freescale/mpc8349emds/Makefile     |    6 ------
 board/freescale/mpc8349itx/Makefile      |    6 ------
 board/freescale/mpc8360emds/Makefile     |    6 ------
 board/freescale/mpc8360erdk/Makefile     |    6 ------
 board/freescale/mpc837xemds/Makefile     |    6 ------
 board/freescale/mpc837xerdb/Makefile     |    6 ------
 board/freescale/mpc8536ds/Makefile       |    6 ------
 board/freescale/mpc8540ads/Makefile      |    6 ------
 board/freescale/mpc8541cds/Makefile      |    6 ------
 board/freescale/mpc8544ds/Makefile       |    6 ------
 board/freescale/mpc8548cds/Makefile      |    6 ------
 board/freescale/mpc8555cds/Makefile      |    6 ------
 board/freescale/mpc8560ads/Makefile      |    6 ------
 board/freescale/mpc8568mds/Makefile      |    6 ------
 board/freescale/mpc8569mds/Makefile      |    6 ------
 board/freescale/mpc8572ds/Makefile       |    6 ------
 board/freescale/mpc8610hpcd/Makefile     |    7 -------
 board/freescale/mpc8641hpcn/Makefile     |    7 -------
 board/freescale/mx31ads/Makefile         |    6 ------
 board/freescale/mx31pdk/Makefile         |    6 ------
 board/freescale/mx35pdk/Makefile         |    6 ------
 board/freescale/mx51evk/Makefile         |    6 ------
 board/freescale/mx53ard/Makefile         |    6 ------
 board/freescale/mx53evk/Makefile         |    6 ------
 board/freescale/mx53loco/Makefile        |    6 ------
 board/freescale/mx53smd/Makefile         |    6 ------
 board/freescale/p1022ds/Makefile         |    6 ------
 board/freescale/p1023rds/Makefile        |    6 ------
 board/freescale/p1_p2_rdb/Makefile       |    6 ------
 board/freescale/p2020ds/Makefile         |    6 ------
 board/freescale/p2041rdb/Makefile        |    6 ------
 board/funkwerk/vovpn-gw/Makefile         |    6 ------
 board/g2000/Makefile                     |    6 ------
 board/gaisler/gr_cpci_ax2000/Makefile    |    6 ------
 board/gaisler/gr_ep2s60/Makefile         |    6 ------
 board/gaisler/gr_xc3s_1500/Makefile      |    6 ------
 board/gaisler/grsim/Makefile             |    6 ------
 board/gaisler/grsim_leon2/Makefile       |    6 ------
 board/galaxy5200/Makefile                |    6 ------
 board/gdsys/405ep/Makefile               |    6 ------
 board/gdsys/common/Makefile              |    6 ------
 board/gdsys/dlvision/Makefile            |    6 ------
 board/gdsys/gdppc440etx/Makefile         |    6 ------
 board/gdsys/intip/Makefile               |    6 ------
 board/gdsys/neo/Makefile                 |    6 ------
 board/gw8260/Makefile                    |    6 ------
 board/ibf-dsp561/Makefile                |    6 ------
 board/icecube/Makefile                   |    6 ------
 board/imx31_phycore/Makefile             |    6 ------
 board/inka4x0/Makefile                   |    6 ------
 board/innokom/Makefile                   |    6 ------
 board/intercontrol/digsy_mtc/Makefile    |    6 ------
 board/ip04/Makefile                      |    6 ------
 board/ipek01/Makefile                    |    6 ------
 board/iphase4539/Makefile                |    6 ------
 board/isee/igep0020/Makefile             |    6 ------
 board/isee/igep0030/Makefile             |    6 ------
 board/ispan/Makefile                     |    6 ------
 board/ixdp425/Makefile                   |    6 ------
 board/jornada/Makefile                   |    6 ------
 board/jse/Makefile                       |    6 ------
 board/jupiter/Makefile                   |    6 ------
 board/karo/tx25/Makefile                 |    6 ------
 board/keymile/km82xx/Makefile            |    6 ------
 board/keymile/km83xx/Makefile            |    6 ------
 board/keymile/km_arm/Makefile            |    6 ------
 board/korat/Makefile                     |    6 ------
 board/logicpd/am3517evm/Makefile         |    6 ------
 board/logicpd/imx27lite/Makefile         |    6 ------
 board/logicpd/imx31_litekit/Makefile     |    6 ------
 board/logicpd/zoom1/Makefile             |    6 ------
 board/logicpd/zoom2/Makefile             |    6 ------
 board/lubbock/Makefile                   |    6 ------
 board/lwmon5/Makefile                    |    6 ------
 board/manroland/hmi1001/Makefile         |    6 ------
 board/manroland/mucmc52/Makefile         |    6 ------
 board/manroland/uc101/Makefile           |    6 ------
 board/matrix_vision/common/Makefile      |    6 ------
 board/matrix_vision/mergerbox/Makefile   |    6 ------
 board/matrix_vision/mvbc_p/Makefile      |    6 ------
 board/matrix_vision/mvblm7/Makefile      |    6 ------
 board/matrix_vision/mvsmr/Makefile       |    6 ------
 board/mcc200/Makefile                    |    6 ------
 board/mercury/mpq101/Makefile            |    6 ------
 board/micronas/vct/Makefile              |    6 ------
 board/ml2/Makefile                       |    6 ------
 board/mosaixtech/icon/Makefile           |    6 ------
 board/motionpro/Makefile                 |    6 ------
 board/mpc8308_p1m/Makefile               |    6 ------
 board/mpl/mip405/Makefile                |    6 ------
 board/mpl/pati/Makefile                  |    6 ------
 board/mpl/pip405/Makefile                |    6 ------
 board/mpl/vcma9/Makefile                 |    6 ------
 board/mpr2/Makefile                      |    6 ------
 board/ms7720se/Makefile                  |    6 ------
 board/ms7722se/Makefile                  |    6 ------
 board/ms7750se/Makefile                  |    6 ------
 board/muas3001/Makefile                  |    6 ------
 board/munices/Makefile                   |    6 ------
 board/mx1ads/Makefile                    |    6 ------
 board/ns9750dev/Makefile                 |    6 ------
 board/nvidia/harmony/Makefile            |    6 ------
 board/nvidia/seaboard/Makefile           |    6 ------
 board/o2dnt/Makefile                     |    6 ------
 board/overo/Makefile                     |    6 ------
 board/palmld/Makefile                    |    6 ------
 board/palmtc/Makefile                    |    6 ------
 board/pandora/Makefile                   |    6 ------
 board/pcs440ep/Makefile                  |    6 ------
 board/pdm360ng/Makefile                  |    6 ------
 board/phytec/pcm030/Makefile             |    6 ------
 board/pleb2/Makefile                     |    6 ------
 board/pm520/Makefile                     |    6 ------
 board/ppmc7xx/Makefile                   |    6 ------
 board/ppmc8260/Makefile                  |    6 ------
 board/prodrive/alpr/Makefile             |    6 ------
 board/prodrive/p3mx/Makefile             |    6 ------
 board/prodrive/p3p440/Makefile           |    6 ------
 board/prodrive/pdnb3/Makefile            |    6 ------
 board/psyent/pci5441/Makefile            |    6 ------
 board/psyent/pk1c20/Makefile             |    6 ------
 board/pxa255_idp/Makefile                |    6 ------
 board/quad100hd/Makefile                 |    6 ------
 board/rattler/Makefile                   |    6 ------
 board/renesas/MigoR/Makefile             |    6 ------
 board/renesas/ap325rxa/Makefile          |    6 ------
 board/renesas/r2dplus/Makefile           |    6 ------
 board/renesas/r7780mp/Makefile           |    6 ------
 board/renesas/rsk7203/Makefile           |    6 ------
 board/renesas/rsk7264/Makefile           |    6 ------
 board/renesas/sh7757lcr/Makefile         |    6 ------
 board/renesas/sh7763rdp/Makefile         |    6 ------
 board/renesas/sh7785lcr/Makefile         |    6 ------
 board/ronetix/pm9261/Makefile            |    6 ------
 board/ronetix/pm9263/Makefile            |    6 ------
 board/ronetix/pm9g45/Makefile            |    6 ------
 board/rpxsuper/Makefile                  |    6 ------
 board/rsdproto/Makefile                  |    6 ------
 board/sacsng/Makefile                    |    6 ------
 board/samsung/goni/Makefile              |    6 ------
 board/samsung/smdk2410/Makefile          |    6 ------
 board/samsung/smdk6400/Makefile          |    6 ------
 board/samsung/smdkc100/Makefile          |    6 ------
 board/samsung/universal_c210/Makefile    |    6 ------
 board/sandburst/karef/Makefile           |    6 ------
 board/sandburst/metrobox/Makefile        |    6 ------
 board/sbc405/Makefile                    |    6 ------
 board/sbc8260/Makefile                   |    6 ------
 board/sbc8349/Makefile                   |    6 ------
 board/sbc8548/Makefile                   |    6 ------
 board/sbc8560/Makefile                   |    6 ------
 board/sbc8641d/Makefile                  |    7 -------
 board/sc3/Makefile                       |    6 ------
 board/scb9328/Makefile                   |    6 ------
 board/sheldon/simpc8313/Makefile         |    6 ------
 board/shmin/Makefile                     |    6 ------
 board/siemens/SCM/Makefile               |    6 ------
 board/socrates/Makefile                  |    6 ------
 board/sorcery/Makefile                   |    6 ------
 board/spear/common/Makefile              |    6 ------
 board/spear/spear300/Makefile            |    6 ------
 board/spear/spear310/Makefile            |    6 ------
 board/spear/spear320/Makefile            |    6 ------
 board/spear/spear600/Makefile            |    6 ------
 board/st-ericsson/u8500/Makefile         |    6 ------
 board/st/nhk8815/Makefile                |    6 ------
 board/stx/stxgp3/Makefile                |    6 ------
 board/stx/stxssa/Makefile                |    6 ------
 board/sx1/Makefile                       |    6 ------
 board/syteco/jadecpu/Makefile            |    6 ------
 board/syteco/zmx25/Makefile              |    6 ------
 board/t3corp/Makefile                    |    6 ------
 board/tcm-bf518/Makefile                 |    6 ------
 board/tcm-bf537/Makefile                 |    6 ------
 board/ti/am3517crane/Makefile            |    6 ------
 board/ti/beagle/Makefile                 |    6 ------
 board/ti/evm/Makefile                    |    6 ------
 board/ti/omap1510inn/Makefile            |    6 ------
 board/ti/omap1610inn/Makefile            |    6 ------
 board/ti/omap2420h4/Makefile             |    6 ------
 board/ti/omap5912osk/Makefile            |    6 ------
 board/ti/omap730p2/Makefile              |    6 ------
 board/ti/panda/Makefile                  |    6 ------
 board/ti/sdp3430/Makefile                |    6 ------
 board/ti/sdp4430/Makefile                |    6 ------
 board/ti/tnetv107xevm/Makefile           |    6 ------
 board/timll/devkit8000/Makefile          |    6 ------
 board/total5200/Makefile                 |    6 ------
 board/tqc/tqm5200/Makefile               |    6 ------
 board/tqc/tqm834x/Makefile               |    6 ------
 board/tqc/tqm85xx/Makefile               |    6 ------
 board/trizepsiv/Makefile                 |    6 ------
 board/ttcontrol/vision2/Makefile         |    6 ------
 board/v38b/Makefile                      |    6 ------
 board/ve8313/Makefile                    |    6 ------
 board/vpac270/Makefile                   |    6 ------
 board/w7o/Makefile                       |    6 ------
 board/xaeniax/Makefile                   |    6 ------
 board/xes/common/Makefile                |    6 ------
 board/xes/xpedite1000/Makefile           |    6 ------
 board/xes/xpedite517x/Makefile           |    6 ------
 board/xes/xpedite520x/Makefile           |    6 ------
 board/xes/xpedite537x/Makefile           |    6 ------
 board/xes/xpedite550x/Makefile           |    6 ------
 board/xilinx/microblaze-generic/Makefile |    6 ------
 board/xilinx/ppc405-generic/Makefile     |    6 ------
 board/xilinx/ppc440-generic/Makefile     |    6 ------
 board/xm250/Makefile                     |    6 ------
 board/zeus/Makefile                      |    6 ------
 board/zipitz2/Makefile                   |    6 ------
 board/zpc1900/Makefile                   |    6 ------
 383 files changed, 0 insertions(+), 2303 deletions(-)

Comments

Wolfgang Denk Sept. 18, 2011, 7:26 a.m. UTC | #1
Dear Mike Frysinger,

In message <1316323020-4027-1-git-send-email-vapier@gentoo.org> you wrote:
> The top level Makefile does not do any recursion into subdirs when
> cleaning, so these clean/distclean targets in random arch/board dirs
> never get used.  Punt them all.

I think this is the wrong approach.  Would it not be better to get rid
of the 60 lines of clean/clobber target in the top level Makefile,
including it's brute force methods of "find ... | xargs rm -f" and
actually remove the files from the Makefiles in the respective
directories instead?

This would for example allow that a board maintainer can fix the clean
/ clobber rules for his code without having to edit the top level
Makefile.

Best regards,

Wolfgang Denk
Mike Frysinger Sept. 18, 2011, 8:22 a.m. UTC | #2
On Sunday, September 18, 2011 03:26:38 Wolfgang Denk wrote:
> Mike Frysinger wrote:
> > The top level Makefile does not do any recursion into subdirs when
> > cleaning, so these clean/distclean targets in random arch/board dirs
> > never get used.  Punt them all.
> 
> I think this is the wrong approach.  Would it not be better to get rid
> of the 60 lines of clean/clobber target in the top level Makefile,
> including it's brute force methods of "find ... | xargs rm -f" and
> actually remove the files from the Makefiles in the respective
> directories instead?
> 
> This would for example allow that a board maintainer can fix the clean
> / clobber rules for his code without having to edit the top level
> Makefile.

yes & no.  i think we should have 1 clean/distclean target, but also have a 
way for board maintainers to inject their own custom clean files.  preferably 
via a .mk file in their board subdir.  this is moving in the direction of non-
recursive make like the kernel does -- the top level would source all the 
subfiles to figure out the master clean list.

however, the current build system has one advantage which i think we should 
retain in the short term: `make distclean` always cleans out the targets 
regardless of the current config.  for example, if you do `make bf537-stamp` 
followed by `make harmony` followed by `make distclean`, Blackfin-specific 
objects will still get cleaned out.
-mike
Graeme Russ Sept. 18, 2011, 1:08 p.m. UTC | #3
On 18/09/11 18:22, Mike Frysinger wrote:
> On Sunday, September 18, 2011 03:26:38 Wolfgang Denk wrote:
>> Mike Frysinger wrote:
>>> The top level Makefile does not do any recursion into subdirs when
>>> cleaning, so these clean/distclean targets in random arch/board dirs
>>> never get used.  Punt them all.
>>
>> I think this is the wrong approach.  Would it not be better to get rid
>> of the 60 lines of clean/clobber target in the top level Makefile,
>> including it's brute force methods of "find ... | xargs rm -f" and
>> actually remove the files from the Makefiles in the respective
>> directories instead?
>>
>> This would for example allow that a board maintainer can fix the clean
>> / clobber rules for his code without having to edit the top level
>> Makefile.
> 
> yes & no.  i think we should have 1 clean/distclean target, but also have a 
> way for board maintainers to inject their own custom clean files.  preferably 
> via a .mk file in their board subdir.  this is moving in the direction of non-
> recursive make like the kernel does -- the top level would source all the 
> subfiles to figure out the master clean list.
> 
> however, the current build system has one advantage which i think we should 
> retain in the short term: `make distclean` always cleans out the targets 
> regardless of the current config.  for example, if you do `make bf537-stamp` 
> followed by `make harmony` followed by `make distclean`, Blackfin-specific 
> objects will still get cleaned out.

Can we not have make distclean/mrproper traverse ALL arch/SoC/board
directories and call their distclean/mrproper? Or have distclean/mrproper
read the .mk file for all arch/SoC/board directories?

Sure, it would be a little slower, but IMHO one would expect a speed
penalty from distclean/mrproper

I think that over the course of the next few releases, we will see more and
more granulation of the code - more distinct boundaries put in place around
'arches', 'SoCs', 'boards', etc - making each less dependent on each other.
My nirvana is for the ability to create an entirely new
arch/SoC/board/driver/lib/whatever and have bare minimal (ideally zero)
impact on anyone else.

I mean, it irks me to no end that /common/serial.c, /drivers/serial.c and
/include/serial.h are such an ugly mess of #ifdef's - I'm working on a new
SoC at the moment, and it just plain weird that I have to touch these :(

Regards,

Graeme
Mike Frysinger Sept. 19, 2011, 4:59 a.m. UTC | #4
On Sunday, September 18, 2011 09:08:35 Graeme Russ wrote:
> On 18/09/11 18:22, Mike Frysinger wrote:
> > On Sunday, September 18, 2011 03:26:38 Wolfgang Denk wrote:
> >> Mike Frysinger wrote:
> >>> The top level Makefile does not do any recursion into subdirs when
> >>> cleaning, so these clean/distclean targets in random arch/board dirs
> >>> never get used.  Punt them all.
> >> 
> >> I think this is the wrong approach.  Would it not be better to get rid
> >> of the 60 lines of clean/clobber target in the top level Makefile,
> >> including it's brute force methods of "find ... | xargs rm -f" and
> >> actually remove the files from the Makefiles in the respective
> >> directories instead?
> >> 
> >> This would for example allow that a board maintainer can fix the clean
> >> / clobber rules for his code without having to edit the top level
> >> Makefile.
> > 
> > yes & no.  i think we should have 1 clean/distclean target, but also have
> > a way for board maintainers to inject their own custom clean files. 
> > preferably via a .mk file in their board subdir.  this is moving in the
> > direction of non- recursive make like the kernel does -- the top level
> > would source all the subfiles to figure out the master clean list.
> > 
> > however, the current build system has one advantage which i think we
> > should retain in the short term: `make distclean` always cleans out the
> > targets regardless of the current config.  for example, if you do `make
> > bf537-stamp` followed by `make harmony` followed by `make distclean`,
> > Blackfin-specific objects will still get cleaned out.
> 
> Can we not have make distclean/mrproper traverse ALL arch/SoC/board
> directories and call their distclean/mrproper? Or have distclean/mrproper
> read the .mk file for all arch/SoC/board directories?

if it wasn't clear in my last e-mail, i want to move in the direction of .mk 
files that the top level would include them and thus all the specific cruft 
would be kept there

after all, the list of things to clean should be obvious once we have more 
kbuild style system: if it's listed as a file to build, then it should get 
cleaned.
-mike
Marek Vasut Sept. 19, 2011, 5:10 a.m. UTC | #5
On Monday, September 19, 2011 06:59:52 AM Mike Frysinger wrote:
> On Sunday, September 18, 2011 09:08:35 Graeme Russ wrote:
> > On 18/09/11 18:22, Mike Frysinger wrote:
> > > On Sunday, September 18, 2011 03:26:38 Wolfgang Denk wrote:
> > >> Mike Frysinger wrote:
> > >>> The top level Makefile does not do any recursion into subdirs when
> > >>> cleaning, so these clean/distclean targets in random arch/board dirs
> > >>> never get used.  Punt them all.
> > >> 
> > >> I think this is the wrong approach.  Would it not be better to get rid
> > >> of the 60 lines of clean/clobber target in the top level Makefile,
> > >> including it's brute force methods of "find ... | xargs rm -f" and
> > >> actually remove the files from the Makefiles in the respective
> > >> directories instead?
> > >> 
> > >> This would for example allow that a board maintainer can fix the clean
> > >> / clobber rules for his code without having to edit the top level
> > >> Makefile.
> > > 
> > > yes & no.  i think we should have 1 clean/distclean target, but also
> > > have a way for board maintainers to inject their own custom clean
> > > files. preferably via a .mk file in their board subdir.  this is
> > > moving in the direction of non- recursive make like the kernel does --
> > > the top level would source all the subfiles to figure out the master
> > > clean list.
> > > 
> > > however, the current build system has one advantage which i think we
> > > should retain in the short term: `make distclean` always cleans out the
> > > targets regardless of the current config.  for example, if you do `make
> > > bf537-stamp` followed by `make harmony` followed by `make distclean`,
> > > Blackfin-specific objects will still get cleaned out.
> > 
> > Can we not have make distclean/mrproper traverse ALL arch/SoC/board
> > directories and call their distclean/mrproper? Or have distclean/mrproper
> > read the .mk file for all arch/SoC/board directories?
> 
> if it wasn't clear in my last e-mail, i want to move in the direction of
> .mk files that the top level would include them and thus all the specific
> cruft would be kept there
> 
> after all, the list of things to clean should be obvious once we have more
> kbuild style system: if it's listed as a file to build, then it should get
> cleaned.

And who's porting the kbuild style system to uboot, is there something like that 
going on already ?

Cheers
> -mike
Graeme Russ Sept. 19, 2011, 5:11 a.m. UTC | #6
Hi Mike

On Mon, Sep 19, 2011 at 2:59 PM, Mike Frysinger <vapier@gentoo.org> wrote:
> On Sunday, September 18, 2011 09:08:35 Graeme Russ wrote:
>> On 18/09/11 18:22, Mike Frysinger wrote:
>> > On Sunday, September 18, 2011 03:26:38 Wolfgang Denk wrote:
>> >> Mike Frysinger wrote:
>> >>> The top level Makefile does not do any recursion into subdirs when
>> >>> cleaning, so these clean/distclean targets in random arch/board dirs
>> >>> never get used.  Punt them all.

[snip]

>> Can we not have make distclean/mrproper traverse ALL arch/SoC/board
>> directories and call their distclean/mrproper? Or have distclean/mrproper
>> read the .mk file for all arch/SoC/board directories?
>
> if it wasn't clear in my last e-mail, i want to move in the direction of .mk
> files that the top level would include them and thus all the specific cruft
> would be kept there
>
> after all, the list of things to clean should be obvious once we have more
> kbuild style system: if it's listed as a file to build, then it should get
> cleaned.

'make distclean' and 'make mrproper' should delete ALL intermediate build
files and basically return the local git repository to the same state that
it would be in if you did a fresh git-clone regardless of what config
options git set. So if one does:

make board_x-config
make all
cp u-boot.bin <somewhere>
make board_y-config
make all
cp u-boot.bin <somewhere else>
make mrproper

nothing should be left over from the build of 'board_x', even if it is a
completely different arch that 'board_y'

The list of files to delete should be in the board_x and board_y config.mk
files. Similiarly for arches and SoCs

Regards,

Graeme
Mike Frysinger Sept. 19, 2011, 5:30 a.m. UTC | #7
On Monday, September 19, 2011 01:10:57 Marek Vasut wrote:
> On Monday, September 19, 2011 06:59:52 AM Mike Frysinger wrote:
> > after all, the list of things to clean should be obvious once we have
> > more kbuild style system: if it's listed as a file to build, then it
> > should get cleaned.
> 
> And who's porting the kbuild style system to uboot, is there something like
> that going on already ?

it's already being done in small steps.  witness include/autoconf.mk and the 
proliferation of COBJS-$(FOO) in Makefiles.

but there isnt anyone driving it strongly ... just as someone hits a piece 
that'd be helpful, they implement it.

i think the next itch i'll scratch is unifying board/*/Makefile into like 
board/board.mk ... then it'll be a lot easier to migrate these further.
-mike
Mike Frysinger Sept. 19, 2011, 5:32 a.m. UTC | #8
On Monday, September 19, 2011 01:11:17 Graeme Russ wrote:
> Hi Mike
> 
> On Mon, Sep 19, 2011 at 2:59 PM, Mike Frysinger <vapier@gentoo.org> wrote:
> > On Sunday, September 18, 2011 09:08:35 Graeme Russ wrote:
> >> On 18/09/11 18:22, Mike Frysinger wrote:
> >> > On Sunday, September 18, 2011 03:26:38 Wolfgang Denk wrote:
> >> >> Mike Frysinger wrote:
> >> >>> The top level Makefile does not do any recursion into subdirs when
> >> >>> cleaning, so these clean/distclean targets in random arch/board dirs
> >> >>> never get used.  Punt them all.
> 
> [snip]
> 
> >> Can we not have make distclean/mrproper traverse ALL arch/SoC/board
> >> directories and call their distclean/mrproper? Or have
> >> distclean/mrproper read the .mk file for all arch/SoC/board
> >> directories?
> > 
> > if it wasn't clear in my last e-mail, i want to move in the direction of
> > .mk files that the top level would include them and thus all the
> > specific cruft would be kept there
> > 
> > after all, the list of things to clean should be obvious once we have
> > more kbuild style system: if it's listed as a file to build, then it
> > should get cleaned.
> 
> 'make distclean' and 'make mrproper' should delete ALL intermediate build
> files and basically return the local git repository to the same state that
> it would be in if you did a fresh git-clone regardless of what config
> options git set.

yes.  i dont believe i said anything differently.

remember that just because you have COBJS-$(FOO) doesnt mean you need FOO to 
be defined to have access to that item.  you can just as easily do `rm -f 
$(COBJS-) $(COBJS-y)`.
-mike
Wolfgang Denk Sept. 19, 2011, 6:54 a.m. UTC | #9
Dear Mike Frysinger,

In message <201109190059.55664.vapier@gentoo.org> you wrote:
>
> if it wasn't clear in my last e-mail, i want to move in the direction of .mk 
> files that the top level would include them and thus all the specific cruft 
> would be kept there

Why should we do that?

Having all build rules in a single, huge Makefile does not sound like
something that is desirable (and in this context it does not make any
difference if the file is actually a concatenation of all these build
rules, or if it's hidden in a set of [probably even nested] includes).

I'm still a big friend of organizing complex stuff in small,
hierarchical structured pieces, so I have to u nderstand it only a
small bit at a time.

Yes, running a number of nested makes may have some performance
penalty.  But frankly: I care a ship about that when I can have the
sofware design simpler and easier to maintain.

> after all, the list of things to clean should be obvious once we have more
> kbuild style system: if it's listed as a file to build, then it should get 
> cleaned.

Keep in mind that you said yourslef we always want to remove _all_
build results - this includes evne those not "listed as a file to
buil" for a specific configuration setting.

Best regards,

Wolfgang Denk
Wolfgang Denk Sept. 19, 2011, 6:57 a.m. UTC | #10
Dear Mike Frysinger,

In message <201109190130.51611.vapier@gentoo.org> you wrote:
>
> i think the next itch i'll scratch is unifying board/*/Makefile into like 
> board/board.mk ... then it'll be a lot easier to migrate these further.

This needs discussion.  As mentioned before, I feat this will make the
build system even more complex.

Best regards,

Wolfgang Denk
Mike Frysinger Sept. 19, 2011, 2:28 p.m. UTC | #11
On Monday, September 19, 2011 02:54:35 Wolfgang Denk wrote:
> Mike Frysinger wrote:
> > if it wasn't clear in my last e-mail, i want to move in the direction of
> > .mk files that the top level would include them and thus all the
> > specific cruft would be kept there
> 
> Why should we do that?
> 
> Having all build rules in a single, huge Makefile does not sound like
> something that is desirable (and in this context it does not make any
> difference if the file is actually a concatenation of all these build
> rules, or if it's hidden in a set of [probably even nested] includes).
> 
> I'm still a big friend of organizing complex stuff in small,
> hierarchical structured pieces, so I have to u nderstand it only a
> small bit at a time.
> 
> Yes, running a number of nested makes may have some performance
> penalty.  But frankly: I care a ship about that when I can have the
> sofware design simpler and easier to maintain.

i dont think my proposal will be more complex.  however, i do think copying & 
pasting almost the same exact lines over and over across literally hundreds of 
Makefile's is a broken design.

> > after all, the list of things to clean should be obvious once we have
> > more kbuild style system: if it's listed as a file to build, then it
> > should get cleaned.
> 
> Keep in mind that you said yourslef we always want to remove _all_
> build results - this includes evne those not "listed as a file to
> buil" for a specific configuration setting.

as i mentioned in another e-mail, you do get access to the complete list 
regardless of config.  COBJS-$(FOO) evaluates to one of two lists: $(COBJS-y) 
or $(COBJS-).
-mike
Scott Wood Sept. 19, 2011, 6:29 p.m. UTC | #12
On 09/19/2011 01:54 AM, Wolfgang Denk wrote:
> Dear Mike Frysinger,
> 
> In message <201109190059.55664.vapier@gentoo.org> you wrote:
>>
>> if it wasn't clear in my last e-mail, i want to move in the direction of .mk 
>> files that the top level would include them and thus all the specific cruft 
>> would be kept there
> 
> Why should we do that?
> 
> Having all build rules in a single, huge Makefile does not sound like
> something that is desirable (and in this context it does not make any
> difference if the file is actually a concatenation of all these build
> rules, or if it's hidden in a set of [probably even nested] includes).
> 
> I'm still a big friend of organizing complex stuff in small,
> hierarchical structured pieces, so I have to u nderstand it only a
> small bit at a time.
> 
> Yes, running a number of nested makes may have some performance
> penalty.  But frankly: I care a ship about that when I can have the
> sofware design simpler and easier to maintain.

It's not just about build time.  Recursive make adds complexity -- you
not only need to know what you want to build, but which directory holds
the makefile.

See http://lists.denx.de/pipermail/u-boot/2011-September/101551.html

You also get to play the game of which variables are passed on as
variables, which are passed on as overrides, etc.

While dealing with make is never pleasant, I've found dealing with
non-recursive setups to be in general less unpleasant than dealing with
recursive make.

-Scott
Mike Frysinger Sept. 19, 2011, 8:57 p.m. UTC | #13
On Sunday, September 18, 2011 09:08:35 Graeme Russ wrote:
> I mean, it irks me to no end that /common/serial.c, /drivers/serial.c and
> /include/serial.h are such an ugly mess of #ifdef's - I'm working on a new
> SoC at the moment, and it just plain weird that I have to touch these :(

well, there's two things there.  the init mess which could get fixed in two 
diff ways: part of your larger init cleanup, or turn it into board callbacks 
like most of the other frameworks we have atm.

the second thing is the CONFIG_SERIAL_MULTI hell.  that mess i'd like to gut 
with a dull blade at some point.
-mike
Graeme Russ Sept. 20, 2011, 12:41 a.m. UTC | #14
Hi Mike,

On Tue, Sep 20, 2011 at 6:57 AM, Mike Frysinger <vapier@gentoo.org> wrote:
> On Sunday, September 18, 2011 09:08:35 Graeme Russ wrote:
>> I mean, it irks me to no end that /common/serial.c, /drivers/serial.c and
>> /include/serial.h are such an ugly mess of #ifdef's - I'm working on a new
>> SoC at the moment, and it just plain weird that I have to touch these :(
>
> well, there's two things there.  the init mess which could get fixed in two
> diff ways: part of your larger init cleanup, or turn it into board callbacks
> like most of the other frameworks we have atm.

I don't think the serial mess is related to the init sequence at all (but
I could be wrong)

>
> the second thing is the CONFIG_SERIAL_MULTI hell.  that mess i'd like to gut
> with a dull blade at some point.

Or a sledgehammer!

The big question I suppose is where we are at with the _MULTI interfaces.
From what I can gather, these should now be the only ones in use and we
should start to apply pressure on board maintainers (i.e. break their
boards) to fix any depricated usage. I think the same philosophy should
be applied to the various boards with 'flash.c' which should all be
using CFI by now.

I've got way to much on my plate to deal with it right now, otherwise I
would give it a crack myself - Everyone should know by know that I'm not
affraid to stir the pot with some pretty radical code changes ;)

Regards,

Graeme
Mike Frysinger Sept. 20, 2011, 12:52 a.m. UTC | #15
On Monday, September 19, 2011 20:41:20 Graeme Russ wrote:
> Hi Mike,
> 
> On Tue, Sep 20, 2011 at 6:57 AM, Mike Frysinger <vapier@gentoo.org> wrote:
> > On Sunday, September 18, 2011 09:08:35 Graeme Russ wrote:
> >> I mean, it irks me to no end that /common/serial.c, /drivers/serial.c
> >> and /include/serial.h are such an ugly mess of #ifdef's - I'm working
> >> on a new SoC at the moment, and it just plain weird that I have to
> >> touch these :(
> > 
> > well, there's two things there.  the init mess which could get fixed in
> > two diff ways: part of your larger init cleanup, or turn it into board
> > callbacks like most of the other frameworks we have atm.
> 
> I don't think the serial mess is related to the init sequence at all (but
> I could be wrong)

the only way to register a new serial device is to add a call to it in 
common/serial.c:serial_initialize().  and the only thing that func does is 
call all the various register funcs which are simply init calls.

> > the second thing is the CONFIG_SERIAL_MULTI hell.  that mess i'd like to
> > gut with a dull blade at some point.
> 
> Or a sledgehammer!
> 
> The big question I suppose is where we are at with the _MULTI interfaces.
> From what I can gather, these should now be the only ones in use and we
> should start to apply pressure on board maintainers (i.e. break their
> boards) to fix any depricated usage. I think the same philosophy should
> be applied to the various boards with 'flash.c' which should all be
> using CFI by now.

i dont have a problem with non-multi instances since it produces thinner code

i dont think there is anyone driving the serial core atm though ... i dont 
recall seeing any patches there other than new device drivers since ive been 
watching the list ...
-mike
Graeme Russ Sept. 20, 2011, 1:07 a.m. UTC | #16
Hi Mike,

On Tue, Sep 20, 2011 at 10:52 AM, Mike Frysinger <vapier@gentoo.org> wrote:
> On Monday, September 19, 2011 20:41:20 Graeme Russ wrote:
>> Hi Mike,
>>
>> On Tue, Sep 20, 2011 at 6:57 AM, Mike Frysinger <vapier@gentoo.org> wrote:
>> > On Sunday, September 18, 2011 09:08:35 Graeme Russ wrote:
>> >> I mean, it irks me to no end that /common/serial.c, /drivers/serial.c
>> >> and /include/serial.h are such an ugly mess of #ifdef's - I'm working
>> >> on a new SoC at the moment, and it just plain weird that I have to
>> >> touch these :(
>> >
>> > well, there's two things there.  the init mess which could get fixed in
>> > two diff ways: part of your larger init cleanup, or turn it into board
>> > callbacks like most of the other frameworks we have atm.
>>
>> I don't think the serial mess is related to the init sequence at all (but
>> I could be wrong)
>
> the only way to register a new serial device is to add a call to it in
> common/serial.c:serial_initialize().  and the only thing that func does is
> call all the various register funcs which are simply init calls.

Ah, I see - I think I see an architectural thunk! about to happen ;)

>> > the second thing is the CONFIG_SERIAL_MULTI hell.  that mess i'd like to
>> > gut with a dull blade at some point.
>>
>> Or a sledgehammer!
>>
>> The big question I suppose is where we are at with the _MULTI interfaces.
>> From what I can gather, these should now be the only ones in use and we
>> should start to apply pressure on board maintainers (i.e. break their
>> boards) to fix any depricated usage. I think the same philosophy should
>> be applied to the various boards with 'flash.c' which should all be
>> using CFI by now.
>
> i dont have a problem with non-multi instances since it produces thinner code
>
> i dont think there is anyone driving the serial core atm though ... i dont
> recall seeing any patches there other than new device drivers since ive been
> watching the list ...

Hmmm, so let me ponder (keep in mind I am not familiar with the serial code
and do not have it in front of me)...

I can see two implementations that a board could decide to use

a) Use a particular serial driver directly - perfect if you have only one
   serial port (or don't care about the others)
b) Use the SERIAL_MULTI 'management layer' and 'register' each relavent
   serial port on the board. The board will need to define a (probably
   hard-coded) a default to handle I/O until the environment can be read
   and the hardware initialised to actually make the serial ports
   operational.

So in theory, we should be able to register an arbitrary number of serial
ports, each with potentially different hardware and therefore different
drivers. The board (or SoC) init function should be able to simply call
serial_register() for each serial port with a name and info into how to
talk to the hardware (hardware type, base address etc). The SERIAL_MULTI
framework should then simply manage the list of serial devices and
redirect I/O based on environment settings

Regards,

Graeme
Simon Glass Sept. 20, 2011, 4:28 a.m. UTC | #17
Hi Graeme & Mike,

On Mon, Sep 19, 2011 at 6:07 PM, Graeme Russ <graeme.russ@gmail.com> wrote:
> Hi Mike,
>
> On Tue, Sep 20, 2011 at 10:52 AM, Mike Frysinger <vapier@gentoo.org> wrote:
>> On Monday, September 19, 2011 20:41:20 Graeme Russ wrote:
>>> Hi Mike,
>>>
>>> On Tue, Sep 20, 2011 at 6:57 AM, Mike Frysinger <vapier@gentoo.org> wrote:
>>> > On Sunday, September 18, 2011 09:08:35 Graeme Russ wrote:
>>> >> I mean, it irks me to no end that /common/serial.c, /drivers/serial.c
>>> >> and /include/serial.h are such an ugly mess of #ifdef's - I'm working
>>> >> on a new SoC at the moment, and it just plain weird that I have to
>>> >> touch these :(
>>> >
>>> > well, there's two things there.  the init mess which could get fixed in
>>> > two diff ways: part of your larger init cleanup, or turn it into board
>>> > callbacks like most of the other frameworks we have atm.
>>>
>>> I don't think the serial mess is related to the init sequence at all (but
>>> I could be wrong)
>>
>> the only way to register a new serial device is to add a call to it in
>> common/serial.c:serial_initialize().  and the only thing that func does is
>> call all the various register funcs which are simply init calls.
>
> Ah, I see - I think I see an architectural thunk! about to happen ;)
>
>>> > the second thing is the CONFIG_SERIAL_MULTI hell.  that mess i'd like to
>>> > gut with a dull blade at some point.
>>>
>>> Or a sledgehammer!
>>>
>>> The big question I suppose is where we are at with the _MULTI interfaces.
>>> From what I can gather, these should now be the only ones in use and we
>>> should start to apply pressure on board maintainers (i.e. break their
>>> boards) to fix any depricated usage. I think the same philosophy should
>>> be applied to the various boards with 'flash.c' which should all be
>>> using CFI by now.
>>
>> i dont have a problem with non-multi instances since it produces thinner code
>>
>> i dont think there is anyone driving the serial core atm though ... i dont
>> recall seeing any patches there other than new device drivers since ive been
>> watching the list ...
>
> Hmmm, so let me ponder (keep in mind I am not familiar with the serial code
> and do not have it in front of me)...
>
> I can see two implementations that a board could decide to use
>
> a) Use a particular serial driver directly - perfect if you have only one
>   serial port (or don't care about the others)

Do we really want this? Is the code overhead of SERIAL_MULTI so bad
that people insist on not defining it? If so, can we reduce that code
overhead? It doesn't seem like it should be large. Perhaps non-MULTI
could be implemented by macros and inline functions in the header
file?

> b) Use the SERIAL_MULTI 'management layer' and 'register' each relavent
>   serial port on the board. The board will need to define a (probably
>   hard-coded) a default to handle I/O until the environment can be read
>   and the hardware initialised to actually make the serial ports
>   operational.

Prior to relocation there is a single console UART. I wonder whether
it would be acceptable to buffer all output until after relocation?
Serial init is the one peripheral still needed prior to reloc. At
least this could be the default option, with something like
CONFIG_EARLY_UART defined to revert to current behavior for debugging
reasons.

Slightly more radical: just move the U-Boot banner, etc. into
board_init_r. What could possible go wrong?

?

But to truly deal with your point, I don't think the environment tells
the serial ports much. They get their registers address and settings
from other places (normally hard-coded in the driver, perhaps in
future through an fdt). It should be possible for any serial driver to
output things before the env is loaded. To implement an early UART we
simply need the serial layer to pass serial calls straight onto the
selected driver without going through the mux or anything else that
needs state. That bit already works...

>
> So in theory, we should be able to register an arbitrary number of serial
> ports, each with potentially different hardware and therefore different
> drivers. The board (or SoC) init function should be able to simply call
> serial_register() for each serial port with a name and info into how to
> talk to the hardware (hardware type, base address etc). The SERIAL_MULTI
> framework should then simply manage the list of serial devices and
> redirect I/O based on environment settings

The main bugbear for me is that there is no handle passed to the
serial functions. All of the serial devices should have an extra
parameter at the start which is perhaps struct seral_device *, and
that structure should have a ->priv member, pointing to a
driver-specific structure which we can
 use to store things like the port number / register address. So in
other words make it like most other driver layers in U-Boot.

This would clean up the eserial macros for one thing.

I don't think this is a huge job. What is a huge job is managing the
resulting centithread, laundry costs for the asbestos suit, falling
back to the status quo in stages, and Mike's mention of a dull gutting
blade...

Perhaps we can avoid that by finding out if there is a real consensus
on the list for a jolly good refactoring in the U-Boot serial code.
I'll start the count:

1

Regards,
Simon

>
> Regards,
>
> Graeme
> _______________________________________________
> U-Boot mailing list
> U-Boot@lists.denx.de
> http://lists.denx.de/mailman/listinfo/u-boot
>
Mike Frysinger Sept. 20, 2011, 4:40 a.m. UTC | #18
On Monday, September 19, 2011 21:07:48 Graeme Russ wrote:
> a) Use a particular serial driver directly - perfect if you have only one
>    serial port (or don't care about the others)

yes.  this is what we have today with !SERIAL_MULTI.  every serial driver 
implements serial_{init,puts,putc,tstc,getc,setbrg,set_baud}.  this code works 
for exactly one device and is extremely thin.  in the case of Blackfin UARTs, 
serial_putc() does two things: wait for the hardware FIFO to free up, and then 
writes the char to the hardware registers.  serial_tstc() is a bit test of a 
single hardware status register read.  you really can't get any simpler than 
this.

> b) Use the SERIAL_MULTI 'management layer' and 'register' each relavent
>    serial port on the board. The board will need to define a (probably
>    hard-coded) a default to handle I/O until the environment can be read
>    and the hardware initialised to actually make the serial ports
>    operational.

atm, SERIAL_MULTI provides support for "early" output by means of the 
default_serial_console() function.  but even this requires going through the 
.data section in order to lookup the func pointer to the device pointers.  
which means i dont think it works for the ports which do relocation on the 
fly.  but i dont know as i havent worked at that level with the relevant 
arches before.

> So in theory, we should be able to register an arbitrary number of serial
> ports, each with potentially different hardware and therefore different
> drivers.

this works today

> The board (or SoC) init function should be able to simply call
> serial_register() for each serial port with a name and info into how to
> talk to the hardware (hardware type, base address etc).

this is doable today, but the standard is to add all devices to 
common/serial.c:serial_initialize()

> The SERIAL_MULTI framework should then simply manage the list of serial
> devices and redirect I/O based on environment settings

which is what it does

one limitation of the current serial/stdio framework is that the serial multi 
core can only have one active device at a time.  the stdio core can have one 
per channel: stdin, stderr, stdout.  so this reminds me of the other goal: 
merge serial framework into stdio framework.
-mike
Mike Frysinger Sept. 20, 2011, 4:44 a.m. UTC | #19
On Tuesday, September 20, 2011 00:28:30 Simon Glass wrote:
> On Mon, Sep 19, 2011 at 6:07 PM, Graeme Russ wrote:
> > a) Use a particular serial driver directly - perfect if you have only one
> >   serial port (or don't care about the others)
> 
> Do we really want this? Is the code overhead of SERIAL_MULTI so bad
> that people insist on not defining it? If so, can we reduce that code
> overhead? It doesn't seem like it should be large. Perhaps non-MULTI
> could be implemented by macros and inline functions in the header
> file?

MULTI: serial_puts looks up a struct in a linked list to find the device 
before calling the func pointer in that struct to the device-specific 
serial_puts

!MULTI: serial_puts writes char to hardware register

the latter sounds a lot more robust to me :).  it might not be a recommended 
or default setting, but i think we should strive to keep that simplicity 
around.

> > b) Use the SERIAL_MULTI 'management layer' and 'register' each relavent
> >   serial port on the board. The board will need to define a (probably
> >   hard-coded) a default to handle I/O until the environment can be read
> >   and the hardware initialised to actually make the serial ports
> >   operational.
> 
> Prior to relocation there is a single console UART. I wonder whether
> it would be acceptable to buffer all output until after relocation?
> Serial init is the one peripheral still needed prior to reloc. At
> least this could be the default option, with something like
> CONFIG_EARLY_UART defined to revert to current behavior for debugging
> reasons.

as a debugging tool, any buffer is not interesting.  after that, it might be.

> But to truly deal with your point, I don't think the environment tells
> the serial ports much. They get their registers address and settings
> from other places (normally hard-coded in the driver, perhaps in
> future through an fdt). It should be possible for any serial driver to
> output things before the env is loaded. To implement an early UART we
> simply need the serial layer to pass serial calls straight onto the
> selected driver without going through the mux or anything else that
> needs state. That bit already works...

!MULTI gives us a working early UART now.  i know because the Blackfin port 
can output info to the serial port at pretty much power on.

> The main bugbear for me is that there is no handle passed to the
> serial functions. All of the serial devices should have an extra
> parameter at the start which is perhaps struct seral_device *, and
> that structure should have a ->priv member, pointing to a
> driver-specific structure which we can
>  use to store things like the port number / register address. So in
> other words make it like most other driver layers in U-Boot.

yes, this would be the first thing i'd fix
-mike
Graeme Russ Sept. 20, 2011, 5:12 a.m. UTC | #20
Hi Simon,

On Tue, Sep 20, 2011 at 2:28 PM, Simon Glass <sjg@chromium.org> wrote:
> Hi Graeme & Mike,
>
> On Mon, Sep 19, 2011 at 6:07 PM, Graeme Russ <graeme.russ@gmail.com> wrote:
>> Hi Mike,
>>
>> On Tue, Sep 20, 2011 at 10:52 AM, Mike Frysinger <vapier@gentoo.org> wrote:
>>> On Monday, September 19, 2011 20:41:20 Graeme Russ wrote:
>>>> Hi Mike,
>>>>
>>>> On Tue, Sep 20, 2011 at 6:57 AM, Mike Frysinger <vapier@gentoo.org> wrote:
>>>> > On Sunday, September 18, 2011 09:08:35 Graeme Russ wrote:

[snip]

>>
>> I can see two implementations that a board could decide to use
>>
>> a) Use a particular serial driver directly - perfect if you have only one
>>   serial port (or don't care about the others)
>
> Do we really want this? Is the code overhead of SERIAL_MULTI so bad
> that people insist on not defining it? If so, can we reduce that code
> overhead? It doesn't seem like it should be large. Perhaps non-MULTI
> could be implemented by macros and inline functions in the header
> file?

Having a quick look via git web, no, SERIAL_MULTI does not look to add too
much

>
>> b) Use the SERIAL_MULTI 'management layer' and 'register' each relavent
>>   serial port on the board. The board will need to define a (probably
>>   hard-coded) a default to handle I/O until the environment can be read
>>   and the hardware initialised to actually make the serial ports
>>   operational.
>
> Prior to relocation there is a single console UART. I wonder whether
> it would be acceptable to buffer all output until after relocation?

Nope - Some arches simply do not have the room for such a buffer. But for
boards that can implement a pre-console buffer, you can buffer until
environment is initialised and then output everything to the configured
serial port

> Serial init is the one peripheral still needed prior to reloc. At

Timers are also needed pre-reloc

> least this could be the default option, with something like
> CONFIG_EARLY_UART defined to revert to current behavior for debugging
> reasons.

Yes, I like this idea. Even when using the pre-console buffer, pre-
console output can still be sent to the 'early' UART so you get
real-time output on the serial port as U-Boot is booting. You can then
use your favourite serial terminal to look at the timing.

> Slightly more radical: just move the U-Boot banner, etc. into
> board_init_r. What could possible go wrong?

Agree - I think there is some pre-reloc output which could be moved to
post-reloc

> But to truly deal with your point, I don't think the environment tells
> the serial ports much. They get their registers address and settings

The environment can specify which port is used for console and the baud
rate. So environement needs to be up before redirecting output through
SERIAL_MULTI

> from other places (normally hard-coded in the driver, perhaps in
> future through an fdt). It should be possible for any serial driver to
> output things before the env is loaded. To implement an early UART we
> simply need the serial layer to pass serial calls straight onto the
> selected driver without going through the mux or anything else that
> needs state. That bit already works...

That can be done via putc() in console.c - That is where I redirect to the
pre-console buffer prior to console init. It would be trivial to also add
an #ifdef CONFIG_EARLY_UART to redirect to early_uart_putc()

>> So in theory, we should be able to register an arbitrary number of serial
>> ports, each with potentially different hardware and therefore different
>> drivers. The board (or SoC) init function should be able to simply call
>> serial_register() for each serial port with a name and info into how to
>> talk to the hardware (hardware type, base address etc). The SERIAL_MULTI
>> framework should then simply manage the list of serial devices and
>> redirect I/O based on environment settings
>
> The main bugbear for me is that there is no handle passed to the
> serial functions. All of the serial devices should have an extra
> parameter at the start which is perhaps struct seral_device *, and
> that structure should have a ->priv member, pointing to a
> driver-specific structure which we can
>  use to store things like the port number / register address. So in
> other words make it like most other driver layers in U-Boot.
>
> This would clean up the eserial macros for one thing.

Yes, I hate them with a passion - I really dislike how all the serial
port permutations are hard-coded. The extern mess in /include/serial.h
really highlights the problem. And /drivers/serial/serial.c being so
16550 centric is so confusing when you also have /drivers/serial/ns16550.c
And then you have /common/serial.c...

So maybe we trash externs in /include/serial.h and move the implementation
of serial_initialize() out of /common/serial.c and into board/SoC files
by define a weak alias at SoC level so a board can still call it and
register additional serial ports on top. I think the initcall method I
put forward before can get around that more cleanly (YMMV)

And tidy up /drivers/serial/serial.c to not reference ns16550

> I don't think this is a huge job. What is a huge job is managing the
> resulting centithread, laundry costs for the asbestos suit, falling
> back to the status quo in stages, and Mike's mention of a dull gutting
> blade...

LOL - and mine is only just now dry from initcall :)


> Perhaps we can avoid that by finding out if there is a real consensus
> on the list for a jolly good refactoring in the U-Boot serial code.
> I'll start the count:
>
> 1

2
Wolfgang Denk Sept. 20, 2011, 7:29 a.m. UTC | #21
Dear Simon Glass,

In message <CAPnjgZ0hSsbvAH_5EEDBn5R92mPJCibOi-iWBz=neL8GVVwXFA@mail.gmail.com> you wrote:
> 
> Do we really want this? Is the code overhead of SERIAL_MULTI so bad
> that people insist on not defining it? If so, can we reduce that code

I have not seen a single case yet where the overhead was a problem.
It was always only the effort to change the code and re-test.  For any
new boards this is a non-issue.

> Prior to relocation there is a single console UART. I wonder whether
> it would be acceptable to buffer all output until after relocation?

Strict no here.

> Serial init is the one peripheral still needed prior to reloc. At
> least this could be the default option, with something like
> CONFIG_EARLY_UART defined to revert to current behavior for debugging
> reasons.

That would just add complexity.  

> Slightly more radical: just move the U-Boot banner, etc. into
> board_init_r. What could possible go wrong?

Serial output is an important debug tool during board bringup.  I want
to have serial output as soon as possible.  This is one of the
fundamental principles of U-Boot design I will not give up easily.

Best regards,

Wolfgang Denk
diff mbox

Patch

diff --git a/arch/arm/cpu/arm926ejs/spear/Makefile b/arch/arm/cpu/arm926ejs/spear/Makefile
index 1cbff43..f32ec4c 100644
--- a/arch/arm/cpu/arm926ejs/spear/Makefile
+++ b/arch/arm/cpu/arm926ejs/spear/Makefile
@@ -36,12 +36,6 @@  SOBJS	:= $(addprefix $(obj),$(SOBJS))
 $(LIB):	$(obj).depend $(OBJS) $(SOBJS)
 	$(call cmd_link_o_target, $(OBJS) $(SOBJS))
 
-clean:
-	rm -f $(SOBJS) $(OBJS)
-
-distclean:	clean
-	rm -f $(LIB) core *.bak $(obj).depend
-
 #########################################################################
 
 # defines $(obj).depend target
diff --git a/arch/sh/cpu/sh2/Makefile b/arch/sh/cpu/sh2/Makefile
index a36f0c3..e3cbe20 100644
--- a/arch/sh/cpu/sh2/Makefile
+++ b/arch/sh/cpu/sh2/Makefile
@@ -38,12 +38,6 @@  SOBJS   := $(addprefix $(obj),$(SOBJS))
 $(LIB):	$(OBJS) $(SOBJS)
 	$(call cmd_link_o_target, $(OBJS) $(SOBJS))
 
-clean:
-	rm -f $(SOBJS) $(OBJS)
-
-distclean:	clean
-	rm -f $(LIB) core *.bak $(obj).depend
-
 #########################################################################
 
 # defines $(obj).depend target
diff --git a/arch/sh/cpu/sh3/Makefile b/arch/sh/cpu/sh3/Makefile
index d51b07c..e08714e 100644
--- a/arch/sh/cpu/sh3/Makefile
+++ b/arch/sh/cpu/sh3/Makefile
@@ -41,12 +41,6 @@  SOBJS	:= $(addprefix $(obj),$(SOBJS))
 $(LIB):	$(OBJS) $(SOBJS)
 	$(call cmd_link_o_target, $(OBJS) $(SOBJS))
 
-clean:
-	rm -f $(SOBJS) $(OBJS)
-
-distclean:	clean
-	rm -f $(LIB) core *.bak $(obj).depend
-
 #########################################################################
 
 # defines $(obj).depend target
diff --git a/arch/sh/cpu/sh4/Makefile b/arch/sh/cpu/sh4/Makefile
index ba84de3..eec31b2 100644
--- a/arch/sh/cpu/sh4/Makefile
+++ b/arch/sh/cpu/sh4/Makefile
@@ -38,12 +38,6 @@  SOBJS	:= $(addprefix $(obj),$(SOBJS))
 $(LIB):	$(OBJS) $(SOBJS)
 	$(call cmd_link_o_target, $(OBJS) $(SOBJS))
 
-clean:
-	rm -f $(SOBJS) $(OBJS)
-
-distclean:	clean
-	rm -f $(LIB) core *.bak $(obj).depend
-
 #########################################################################
 
 # defines $(obj).depend target
diff --git a/board/BuS/eb_cpux9k2/Makefile b/board/BuS/eb_cpux9k2/Makefile
index f45836f..82773c5 100644
--- a/board/BuS/eb_cpux9k2/Makefile
+++ b/board/BuS/eb_cpux9k2/Makefile
@@ -34,12 +34,6 @@  SOBJS	:= $(addprefix $(obj),$(SOBJS))
 $(LIB):	$(obj).depend $(OBJS) $(SOBJS)
 	$(call cmd_link_o_target, $(OBJS) $(SOBJS))
 
-clean:
-	rm -f $(SOBJS) $(OBJS)
-
-distclean:	clean
-	rm -f $(LIB) core *.bak .depend
-
 #########################################################################
 
 # defines $(obj).depend target
diff --git a/board/LaCie/edminiv2/Makefile b/board/LaCie/edminiv2/Makefile
index 31b89e4..00a255d 100644
--- a/board/LaCie/edminiv2/Makefile
+++ b/board/LaCie/edminiv2/Makefile
@@ -37,12 +37,6 @@  OBJS	:= $(addprefix $(obj),$(COBJS))
 $(LIB):	$(obj).depend $(OBJS)
 	$(call cmd_link_o_target, $(OBJS))
 
-clean:
-	rm -f $(OBJS)
-
-distclean:	clean
-	rm -f $(LIB) core *.bak .depend
-
 #########################################################################
 
 # defines $(obj).depend target
diff --git a/board/LaCie/netspace_v2/Makefile b/board/LaCie/netspace_v2/Makefile
index a245f2c..d4a613f 100644
--- a/board/LaCie/netspace_v2/Makefile
+++ b/board/LaCie/netspace_v2/Makefile
@@ -33,12 +33,6 @@  SOBJS	:= $(addprefix $(obj),$(SOBJS))
 $(LIB):	$(obj).depend $(OBJS) $(SOBJS)
 	$(call cmd_link_o_target, $(OBJS) $(SOBJS))
 
-clean:
-	rm -f $(SOBJS) $(OBJS)
-
-distclean:	clean
-	rm -f $(LIB) core *.bak .depend
-
 #########################################################################
 
 # defines $(obj).depend target
diff --git a/board/Marvell/aspenite/Makefile b/board/Marvell/aspenite/Makefile
index cb1b65f..4a807be 100644
--- a/board/Marvell/aspenite/Makefile
+++ b/board/Marvell/aspenite/Makefile
@@ -36,12 +36,6 @@  SOBJS	:= $(addprefix $(obj),$(SOBJS))
 $(LIB):	$(obj).depend $(OBJS) $(SOBJS)
 	$(AR) $(ARFLAGS) $@ $(OBJS) $(SOBJS)
 
-clean:
-	rm -f $(SOBJS) $(OBJS)
-
-distclean:	clean
-	rm -f $(LIB) core *.bak .depend
-
 #########################################################################
 
 # defines $(obj).depend target
diff --git a/board/Marvell/dkb/Makefile b/board/Marvell/dkb/Makefile
index 2fafdb3..ddb799d 100644
--- a/board/Marvell/dkb/Makefile
+++ b/board/Marvell/dkb/Makefile
@@ -35,12 +35,6 @@  SOBJS	:= $(addprefix $(obj),$(SOBJS))
 $(LIB):	$(obj).depend $(OBJS) $(SOBJS)
 	$(AR) $(ARFLAGS) $@ $(OBJS) $(SOBJS)
 
-clean:
-	rm -f $(SOBJS) $(OBJS)
-
-distclean:	clean
-	rm -f $(LIB) core *.bak .depend
-
 #########################################################################
 
 # defines $(obj).depend target
diff --git a/board/Marvell/gplugd/Makefile b/board/Marvell/gplugd/Makefile
index 2d8bba0..3ce4f81 100644
--- a/board/Marvell/gplugd/Makefile
+++ b/board/Marvell/gplugd/Makefile
@@ -41,12 +41,6 @@  SOBJS	:= $(addprefix $(obj),$(SOBJS))
 $(LIB):	$(obj).depend $(OBJS) $(SOBJS)
 	$(AR) $(ARFLAGS) $@ $(OBJS) $(SOBJS)
 
-clean:
-	rm -f $(SOBJS) $(OBJS)
-
-distclean:	clean
-	rm -f $(LIB) core *.bak .depend
-
 #########################################################################
 
 # defines $(obj).depend target
diff --git a/board/Marvell/guruplug/Makefile b/board/Marvell/guruplug/Makefile
index ff7e9d7..3644d24 100644
--- a/board/Marvell/guruplug/Makefile
+++ b/board/Marvell/guruplug/Makefile
@@ -35,12 +35,6 @@  SOBJS	:= $(addprefix $(obj),$(SOBJS))
 $(LIB):	$(obj).depend $(OBJS) $(SOBJS)
 	$(call cmd_link_o_target, $(OBJS) $(SOBJS))
 
-clean:
-	rm -f $(SOBJS) $(OBJS)
-
-distclean:	clean
-	rm -f $(LIB) core *.bak .depend
-
 #########################################################################
 
 # defines $(obj).depend target
diff --git a/board/Marvell/mv88f6281gtw_ge/Makefile b/board/Marvell/mv88f6281gtw_ge/Makefile
index 2443101..bba7a68 100644
--- a/board/Marvell/mv88f6281gtw_ge/Makefile
+++ b/board/Marvell/mv88f6281gtw_ge/Makefile
@@ -35,12 +35,6 @@  SOBJS	:= $(addprefix $(obj),$(SOBJS))
 $(LIB):	$(obj).depend $(OBJS) $(SOBJS)
 	$(call cmd_link_o_target, $(OBJS) $(SOBJS))
 
-clean:
-	rm -f $(SOBJS) $(OBJS)
-
-distclean:	clean
-	rm -f $(LIB) core *.bak .depend
-
 #########################################################################
 
 # defines $(obj).depend target
diff --git a/board/Marvell/openrd/Makefile b/board/Marvell/openrd/Makefile
index 19020e4..59b1ee4 100644
--- a/board/Marvell/openrd/Makefile
+++ b/board/Marvell/openrd/Makefile
@@ -40,12 +40,6 @@  SOBJS	:= $(addprefix $(obj),$(SOBJS))
 $(LIB):	$(obj).depend $(OBJS) $(SOBJS)
 	$(call cmd_link_o_target, $(OBJS) $(SOBJS))
 
-clean:
-	rm -f $(SOBJS) $(OBJS)
-
-distclean:	clean
-	rm -f $(LIB) core *.bak .depend
-
 #########################################################################
 
 # defines $(obj).depend target
diff --git a/board/Marvell/rd6281a/Makefile b/board/Marvell/rd6281a/Makefile
index e730e37..23bb0da 100644
--- a/board/Marvell/rd6281a/Makefile
+++ b/board/Marvell/rd6281a/Makefile
@@ -35,12 +35,6 @@  SOBJS	:= $(addprefix $(obj),$(SOBJS))
 $(LIB):	$(obj).depend $(OBJS) $(SOBJS)
 	$(call cmd_link_o_target, $(OBJS) $(SOBJS))
 
-clean:
-	rm -f $(SOBJS) $(OBJS)
-
-distclean:	clean
-	rm -f $(LIB) core *.bak .depend
-
 #########################################################################
 
 # defines $(obj).depend target
diff --git a/board/Marvell/sheevaplug/Makefile b/board/Marvell/sheevaplug/Makefile
index d2286fa..5abb9f6 100644
--- a/board/Marvell/sheevaplug/Makefile
+++ b/board/Marvell/sheevaplug/Makefile
@@ -35,12 +35,6 @@  SOBJS	:= $(addprefix $(obj),$(SOBJS))
 $(LIB):	$(obj).depend $(OBJS) $(SOBJS)
 	$(call cmd_link_o_target, $(OBJS) $(SOBJS))
 
-clean:
-	rm -f $(SOBJS) $(OBJS)
-
-distclean:	clean
-	rm -f $(LIB) core *.bak .depend
-
 #########################################################################
 
 # defines $(obj).depend target
diff --git a/board/Seagate/dockstar/Makefile b/board/Seagate/dockstar/Makefile
index bfcc6d9..ff5040c 100644
--- a/board/Seagate/dockstar/Makefile
+++ b/board/Seagate/dockstar/Makefile
@@ -38,12 +38,6 @@  SOBJS	:= $(addprefix $(obj),$(SOBJS))
 $(LIB):	$(obj).depend $(OBJS) $(SOBJS)
 	$(call cmd_link_o_target, $(OBJS) $(SOBJS))
 
-clean:
-	rm -f $(SOBJS) $(OBJS)
-
-distclean:	clean
-	rm -f $(LIB) core *.bak .depend
-
 #########################################################################
 
 # defines $(obj).depend target
diff --git a/board/a4m072/Makefile b/board/a4m072/Makefile
index d3c31d6..f2ba232 100644
--- a/board/a4m072/Makefile
+++ b/board/a4m072/Makefile
@@ -34,12 +34,6 @@  SOBJS	:= $(addprefix $(obj),$(SOBJS))
 $(LIB):	$(obj).depend $(OBJS)
 	$(call cmd_link_o_target, $(OBJS))
 
-clean:
-	rm -f $(SOBJS) $(OBJS)
-
-distclean:	clean
-	rm -f $(LIB) core *.bak $(obj).depend
-
 #########################################################################
 
 # defines $(obj).depend target
diff --git a/board/actux1/Makefile b/board/actux1/Makefile
index 31e044b..f5dcf8d 100644
--- a/board/actux1/Makefile
+++ b/board/actux1/Makefile
@@ -34,12 +34,6 @@  SOBJS	:= $(addprefix $(obj),$(SOBJS))
 $(LIB):	$(obj).depend $(OBJS)
 	$(call cmd_link_o_target, $(OBJS))
 
-clean:
-	rm -f $(SOBJS) $(OBJS)
-
-distclean:	clean
-	rm -f $(LIB) core *.bak $(obj).depend
-
 #########################################################################
 
 # defines $(obj).depend target
diff --git a/board/actux2/Makefile b/board/actux2/Makefile
index b026d94..40f73ba 100644
--- a/board/actux2/Makefile
+++ b/board/actux2/Makefile
@@ -34,12 +34,6 @@  SOBJS	:= $(addprefix $(obj),$(SOBJS))
 $(LIB):	$(obj).depend $(OBJS)
 	$(call cmd_link_o_target, $(OBJS))
 
-clean:
-	rm -f $(SOBJS) $(OBJS)
-
-distclean:	clean
-	rm -f $(LIB) core *.bak $(obj).depend
-
 #########################################################################
 
 # defines $(obj).depend target
diff --git a/board/actux3/Makefile b/board/actux3/Makefile
index 97317fb..2078c1b 100644
--- a/board/actux3/Makefile
+++ b/board/actux3/Makefile
@@ -34,12 +34,6 @@  SOBJS	:= $(addprefix $(obj),$(SOBJS))
 $(LIB):	$(obj).depend $(OBJS)
 	$(call cmd_link_o_target, $(OBJS))
 
-clean:
-	rm -f $(SOBJS) $(OBJS)
-
-distclean:	clean
-	rm -f $(LIB) core *.bak $(obj).depend
-
 #########################################################################
 
 # defines $(obj).depend target
diff --git a/board/actux4/Makefile b/board/actux4/Makefile
index c631a5b..4f33e27 100644
--- a/board/actux4/Makefile
+++ b/board/actux4/Makefile
@@ -34,12 +34,6 @@  SOBJS	:= $(addprefix $(obj),$(SOBJS))
 $(LIB):	$(obj).depend $(OBJS)
 	$(call cmd_link_o_target, $(OBJS))
 
-clean:
-	rm -f $(SOBJS) $(OBJS)
-
-distclean:	clean
-	rm -f $(LIB) core *.bak $(obj).depend
-
 #########################################################################
 
 # defines $(obj).depend target
diff --git a/board/adder/Makefile b/board/adder/Makefile
index 70205f1..defca3d 100644
--- a/board/adder/Makefile
+++ b/board/adder/Makefile
@@ -37,12 +37,6 @@  SOBJS	:= $(addprefix $(obj),$(SOBJS))
 $(LIB):	$(obj).depend $(OBJS)
 	$(call cmd_link_o_target, $(OBJS))
 
-clean:
-	rm -f $(SOBJS) $(OBJS)
-
-distclean:	clean
-	rm -f $(LIB) core *.bak $(obj).depend
-
 #########################################################################
 
 # defines $(obj).depend target
diff --git a/board/afeb9260/Makefile b/board/afeb9260/Makefile
index 895412d..9134856 100644
--- a/board/afeb9260/Makefile
+++ b/board/afeb9260/Makefile
@@ -39,12 +39,6 @@  SOBJS	:= $(addprefix $(obj),$(SOBJS))
 $(LIB):	$(obj).depend $(OBJS) $(SOBJS)
 	$(call cmd_link_o_target, $(OBJS) $(SOBJS))
 
-clean:
-	rm -f $(SOBJS) $(OBJS)
-
-distclean:	clean
-	rm -f $(LIB) core *.bak .depend
-
 #########################################################################
 
 # defines $(obj).depend target
diff --git a/board/alaska/Makefile b/board/alaska/Makefile
index d8aace2..a21f851 100644
--- a/board/alaska/Makefile
+++ b/board/alaska/Makefile
@@ -34,12 +34,6 @@  SOBJS	:= $(addprefix $(obj),$(SOBJS))
 $(LIB):	$(OBJS)
 	$(call cmd_link_o_target, $(OBJS))
 
-clean:
-	rm -f $(SOBJS) $(OBJS)
-
-distclean:	clean
-	rm -f $(LIB) core *.bak $(obj).depend
-
 #########################################################################
 
 # defines $(obj).depend target
diff --git a/board/altera/nios2-generic/Makefile b/board/altera/nios2-generic/Makefile
index 6386352..359f590 100644
--- a/board/altera/nios2-generic/Makefile
+++ b/board/altera/nios2-generic/Makefile
@@ -44,12 +44,6 @@  SOBJS	:= $(addprefix $(obj),$(SOBJS-y))
 $(LIB):	$(obj).depend $(OBJS) $(SOBJS)
 	$(call cmd_link_o_target, $(OBJS) $(SOBJS))
 
-clean:
-	rm -f $(SOBJS) $(OBJS)
-
-distclean:	clean
-	rm -f $(LIB) core *.bak $(obj).depend
-
 #########################################################################
 
 # defines $(obj).depend target
diff --git a/board/amcc/acadia/Makefile b/board/amcc/acadia/Makefile
index b277287..77fa07f 100644
--- a/board/amcc/acadia/Makefile
+++ b/board/amcc/acadia/Makefile
@@ -35,12 +35,6 @@  SOBJS	:= $(addprefix $(obj),$(SOBJS))
 $(LIB):	$(obj).depend $(OBJS) $(SOBJS)
 	$(call cmd_link_o_target, $(OBJS))
 
-clean:
-	rm -f $(SOBJS) $(OBJS)
-
-distclean:	clean
-	rm -f $(LIB) core *.bak $(obj).depend
-
 #########################################################################
 
 # defines $(obj).depend target
diff --git a/board/amcc/bamboo/Makefile b/board/amcc/bamboo/Makefile
index 2e7dc39..ecdf67a 100644
--- a/board/amcc/bamboo/Makefile
+++ b/board/amcc/bamboo/Makefile
@@ -37,12 +37,6 @@  all:	$(LIB) $(SOBJS)
 $(LIB):	$(OBJS)
 	$(call cmd_link_o_target, $^)
 
-clean:
-	rm -f $(SOBJS) $(OBJS)
-
-distclean:	clean
-	rm -f $(LIB) core *.bak $(obj).depend
-
 #########################################################################
 
 # defines $(obj).depend target
diff --git a/board/amcc/bluestone/Makefile b/board/amcc/bluestone/Makefile
index 642eda0..8565204 100644
--- a/board/amcc/bluestone/Makefile
+++ b/board/amcc/bluestone/Makefile
@@ -38,12 +38,6 @@  all:	$(LIB) $(SOBJS)
 $(LIB):	$(OBJS)
 	$(call cmd_link_o_target, $^)
 
-clean:
-	rm -f $(SOBJS) $(OBJS)
-
-distclean:	clean
-	rm -f $(LIB) core *.bak $(obj).depend
-
 #########################################################################
 
 # defines $(obj).depend target
diff --git a/board/amcc/bubinga/Makefile b/board/amcc/bubinga/Makefile
index 9f63df1..44cfca1 100644
--- a/board/amcc/bubinga/Makefile
+++ b/board/amcc/bubinga/Makefile
@@ -34,12 +34,6 @@  SOBJS	:= $(addprefix $(obj),$(SOBJS))
 $(LIB):	$(OBJS) $(SOBJS)
 	$(call cmd_link_o_target, $(OBJS))
 
-clean:
-	rm -f $(SOBJS) $(OBJS)
-
-distclean:	clean
-	rm -f $(LIB) core *.bak $(obj).depend
-
 #########################################################################
 
 # defines $(obj).depend target
diff --git a/board/amcc/canyonlands/Makefile b/board/amcc/canyonlands/Makefile
index 4d87ea9..d2c9dd4 100644
--- a/board/amcc/canyonlands/Makefile
+++ b/board/amcc/canyonlands/Makefile
@@ -39,12 +39,6 @@  all:	$(LIB) $(SOBJS)
 $(LIB):	$(OBJS)
 	$(call cmd_link_o_target, $^)
 
-clean:
-	rm -f $(SOBJS) $(OBJS)
-
-distclean:	clean
-	rm -f $(LIB) core *.bak $(obj).depend
-
 #########################################################################
 
 # defines $(obj).depend target
diff --git a/board/amcc/ebony/Makefile b/board/amcc/ebony/Makefile
index b5d0fe5..284629f 100644
--- a/board/amcc/ebony/Makefile
+++ b/board/amcc/ebony/Makefile
@@ -35,12 +35,6 @@  SOBJS	:= $(addprefix $(obj),$(SOBJS))
 $(LIB):	$(OBJS) $(SOBJS)
 	$(call cmd_link_o_target, $(OBJS))
 
-clean:
-	rm -f $(SOBJS) $(OBJS)
-
-distclean:	clean
-	rm -f $(LIB) core *.bak $(obj).depend
-
 #########################################################################
 
 # defines $(obj).depend target
diff --git a/board/amcc/katmai/Makefile b/board/amcc/katmai/Makefile
index 466b190..1c1e15e 100644
--- a/board/amcc/katmai/Makefile
+++ b/board/amcc/katmai/Makefile
@@ -37,12 +37,6 @@  SOBJS	:= $(addprefix $(obj),$(SOBJS))
 $(LIB):	$(obj).depend $(OBJS) $(SOBJS)
 	$(call cmd_link_o_target, $(OBJS))
 
-clean:
-	rm -f $(SOBJS) $(OBJS)
-
-distclean:	clean
-	rm -f $(LIB) core *.bak $(obj).depend
-
 #########################################################################
 
 # defines $(obj).depend target
diff --git a/board/amcc/kilauea/Makefile b/board/amcc/kilauea/Makefile
index 726c3ce..38ef823 100644
--- a/board/amcc/kilauea/Makefile
+++ b/board/amcc/kilauea/Makefile
@@ -35,12 +35,6 @@  OBJS	:= $(addprefix $(obj),$(SOBJS) $(COBJS))
 $(LIB):	$(obj).depend $(OBJS)
 	$(call cmd_link_o_target, $(OBJS))
 
-clean:
-	rm -f $(OBJS)
-
-distclean:	clean
-	rm -f $(LIB) core *.bak $(obj).depend
-
 #########################################################################
 
 # defines $(obj).depend target
diff --git a/board/amcc/luan/Makefile b/board/amcc/luan/Makefile
index b5d0fe5..284629f 100644
--- a/board/amcc/luan/Makefile
+++ b/board/amcc/luan/Makefile
@@ -35,12 +35,6 @@  SOBJS	:= $(addprefix $(obj),$(SOBJS))
 $(LIB):	$(OBJS) $(SOBJS)
 	$(call cmd_link_o_target, $(OBJS))
 
-clean:
-	rm -f $(SOBJS) $(OBJS)
-
-distclean:	clean
-	rm -f $(LIB) core *.bak $(obj).depend
-
 #########################################################################
 
 # defines $(obj).depend target
diff --git a/board/amcc/makalu/Makefile b/board/amcc/makalu/Makefile
index e10fadb..26dace1 100644
--- a/board/amcc/makalu/Makefile
+++ b/board/amcc/makalu/Makefile
@@ -34,12 +34,6 @@  OBJS	:= $(addprefix $(obj),$(SOBJS) $(COBJS))
 $(LIB):	$(obj).depend $(OBJS)
 	$(call cmd_link_o_target, $(OBJS))
 
-clean:
-	rm -f $(OBJS)
-
-distclean:	clean
-	rm -f $(LIB) core *.bak $(obj).depend
-
 #########################################################################
 
 # defines $(obj).depend target
diff --git a/board/amcc/ocotea/Makefile b/board/amcc/ocotea/Makefile
index b5d0fe5..284629f 100644
--- a/board/amcc/ocotea/Makefile
+++ b/board/amcc/ocotea/Makefile
@@ -35,12 +35,6 @@  SOBJS	:= $(addprefix $(obj),$(SOBJS))
 $(LIB):	$(OBJS) $(SOBJS)
 	$(call cmd_link_o_target, $(OBJS))
 
-clean:
-	rm -f $(SOBJS) $(OBJS)
-
-distclean:	clean
-	rm -f $(LIB) core *.bak $(obj).depend
-
 #########################################################################
 
 # defines $(obj).depend target
diff --git a/board/amcc/redwood/Makefile b/board/amcc/redwood/Makefile
index 8759001..1a374dd 100644
--- a/board/amcc/redwood/Makefile
+++ b/board/amcc/redwood/Makefile
@@ -35,12 +35,6 @@  SOBJS	:= $(addprefix $(obj),$(SOBJS))
 $(LIB):	$(obj).depend $(OBJS) $(SOBJS)
 	$(call cmd_link_o_target, $(OBJS))
 
-clean:
-	rm -f $(SOBJS) $(OBJS)
-
-distclean:	clean
-	rm -f $(LIB) core *.bak .depend *~
-
 #########################################################################
 
 include $(SRCTREE)/rules.mk
diff --git a/board/amcc/sequoia/Makefile b/board/amcc/sequoia/Makefile
index efe2065..ca26d5e 100644
--- a/board/amcc/sequoia/Makefile
+++ b/board/amcc/sequoia/Makefile
@@ -39,12 +39,6 @@  all:	$(LIB) $(SOBJS)
 $(LIB):	$(OBJS)
 	$(call cmd_link_o_target, $^)
 
-clean:
-	rm -f $(SOBJS) $(OBJS)
-
-distclean:	clean
-	rm -f $(LIB) core *.bak $(obj).depend
-
 #########################################################################
 
 # defines $(obj).depend target
diff --git a/board/amcc/taihu/Makefile b/board/amcc/taihu/Makefile
index 9b2e7e4..4a4f922 100644
--- a/board/amcc/taihu/Makefile
+++ b/board/amcc/taihu/Makefile
@@ -33,12 +33,6 @@  OBJS	:= $(addprefix $(obj),$(COBJS))
 $(LIB):	$(OBJS)
 	$(call cmd_link_o_target, $(OBJS))
 
-clean:
-	rm -f $(OBJS)
-
-distclean:	clean
-	rm -f $(LIB) core *.bak $(obj).depend
-
 #########################################################################
 
 # defines $(obj).depend target
diff --git a/board/amcc/taishan/Makefile b/board/amcc/taishan/Makefile
index 099cf9d..942c507 100644
--- a/board/amcc/taishan/Makefile
+++ b/board/amcc/taishan/Makefile
@@ -35,12 +35,6 @@  SOBJS	:= $(addprefix $(obj),$(SOBJS))
 $(LIB):	$(OBJS) $(SOBJS)
 	$(call cmd_link_o_target, $(OBJS))
 
-clean:
-	rm -f $(SOBJS) $(OBJS)
-
-distclean:	clean
-	rm -f $(LIB) core *.bak $(obj).depend
-
 #########################################################################
 
 # defines $(obj).depend target
diff --git a/board/amcc/walnut/Makefile b/board/amcc/walnut/Makefile
index 9f63df1..44cfca1 100644
--- a/board/amcc/walnut/Makefile
+++ b/board/amcc/walnut/Makefile
@@ -34,12 +34,6 @@  SOBJS	:= $(addprefix $(obj),$(SOBJS))
 $(LIB):	$(OBJS) $(SOBJS)
 	$(call cmd_link_o_target, $(OBJS))
 
-clean:
-	rm -f $(SOBJS) $(OBJS)
-
-distclean:	clean
-	rm -f $(LIB) core *.bak $(obj).depend
-
 #########################################################################
 
 # defines $(obj).depend target
diff --git a/board/amcc/yosemite/Makefile b/board/amcc/yosemite/Makefile
index 5b0ffc2..905ca7a 100644
--- a/board/amcc/yosemite/Makefile
+++ b/board/amcc/yosemite/Makefile
@@ -35,12 +35,6 @@  SOBJS	:= $(addprefix $(obj),$(SOBJS))
 $(LIB):	$(OBJS) $(SOBJS)
 	$(call cmd_link_o_target, $(OBJS))
 
-clean:
-	rm -f $(SOBJS) $(OBJS)
-
-distclean:	clean
-	rm -f $(LIB) core *.bak $(obj).depend
-
 #########################################################################
 
 # defines $(obj).depend target
diff --git a/board/amcc/yucca/Makefile b/board/amcc/yucca/Makefile
index d9fb713..3f75a67 100644
--- a/board/amcc/yucca/Makefile
+++ b/board/amcc/yucca/Makefile
@@ -35,12 +35,6 @@  SOBJS	:= $(addprefix $(obj),$(SOBJS))
 $(LIB):	$(obj).depend $(OBJS) $(SOBJS)
 	$(call cmd_link_o_target, $(OBJS))
 
-clean:
-	rm -f $(SOBJS) $(OBJS)
-
-distclean:	clean
-	rm -f $(LIB) core *.bak $(obj).depend
-
 #########################################################################
 
 # defines $(obj).depend target
diff --git a/board/amirix/ap1000/Makefile b/board/amirix/ap1000/Makefile
index fe7a6a2..3a22ce6 100644
--- a/board/amirix/ap1000/Makefile
+++ b/board/amirix/ap1000/Makefile
@@ -37,12 +37,6 @@  all:	$(LIB) $(SOBJS)
 $(LIB):	$(OBJS)
 	$(call cmd_link_o_target, $^)
 
-clean:
-	rm -f $(SOBJS) $(OBJS)
-
-distclean:	clean
-	rm -f $(LIB) core *.bak $(obj).depend
-
 #########################################################################
 
 # defines $(obj).depend target
diff --git a/board/apollon/Makefile b/board/apollon/Makefile
index ce41efc..1bf1a32 100644
--- a/board/apollon/Makefile
+++ b/board/apollon/Makefile
@@ -36,12 +36,6 @@  SOBJS	:= $(addprefix $(obj),$(SOBJS))
 $(LIB):	$(obj).depend $(OBJS) $(SOBJS)
 	$(call cmd_link_o_target, $(OBJS) $(SOBJS))
 
-clean:
-	rm -f $(SOBJS) $(OBJS)
-
-distclean:	clean
-	rm -f $(LIB) core *.bak $(obj).depend
-
 #########################################################################
 
 include $(SRCTREE)/rules.mk
diff --git a/board/armltd/integrator/Makefile b/board/armltd/integrator/Makefile
index c452631..858888a 100644
--- a/board/armltd/integrator/Makefile
+++ b/board/armltd/integrator/Makefile
@@ -42,12 +42,6 @@  SOBJS	:= $(addprefix $(obj),$(SOBJS-y))
 $(LIB):	$(obj).depend $(COBJS) $(SOBJS)
 	$(call cmd_link_o_target, $(COBJS) $(SOBJS))
 
-clean:
-	rm -f $(SOBJS) $(COBJS)
-
-distclean:	clean
-	rm -f $(LIB) core *.bak $(obj).depend
-
 #########################################################################
 
 # defines $(obj).depend target
diff --git a/board/armltd/versatile/Makefile b/board/armltd/versatile/Makefile
index 3470328..89d91f0 100644
--- a/board/armltd/versatile/Makefile
+++ b/board/armltd/versatile/Makefile
@@ -35,12 +35,6 @@  SOBJS	:= $(addprefix $(obj),$(SOBJS))
 $(LIB):	$(obj).depend $(OBJS) $(SOBJS)
 	$(call cmd_link_o_target, $(OBJS) $(SOBJS))
 
-clean:
-	rm -f $(SOBJS) $(OBJS)
-
-distclean:	clean
-	rm -f $(LIB) core *.bak $(obj).depend
-
 #########################################################################
 
 # defines $(obj).depend target
diff --git a/board/armltd/vexpress/Makefile b/board/armltd/vexpress/Makefile
index 49c4b81..8749590 100644
--- a/board/armltd/vexpress/Makefile
+++ b/board/armltd/vexpress/Makefile
@@ -33,12 +33,6 @@  OBJS	:= $(addprefix $(obj),$(COBJS))
 $(LIB):	$(obj).depend $(OBJS)
 	$(call cmd_link_o_target, $(OBJS))
 
-clean:
-	rm -f $(SOBJS) $(OBJS)
-
-distclean:	clean
-	rm -f $(LIB) core *.bak $(obj).depend
-
 #########################################################################
 
 # defines $(obj).depend target
diff --git a/board/atmel/at91rm9200ek/Makefile b/board/atmel/at91rm9200ek/Makefile
index f64e595..c1f1603 100644
--- a/board/atmel/at91rm9200ek/Makefile
+++ b/board/atmel/at91rm9200ek/Makefile
@@ -35,12 +35,6 @@  SOBJS	:= $(addprefix $(obj),$(SOBJS))
 $(LIB):	$(obj).depend $(OBJS) $(SOBJS)
 	$(call cmd_link_o_target, $(OBJS) $(SOBJS))
 
-clean:
-	rm -f $(SOBJS) $(OBJS)
-
-distclean:	clean
-	rm -f $(LIB) core *.bak $(obj).depend
-
 #########################################################################
 
 # defines $(obj).depend target
diff --git a/board/atmel/at91sam9260ek/Makefile b/board/atmel/at91sam9260ek/Makefile
index 1fd8529..b9ecc88 100644
--- a/board/atmel/at91sam9260ek/Makefile
+++ b/board/atmel/at91sam9260ek/Makefile
@@ -40,12 +40,6 @@  SOBJS	:= $(addprefix $(obj),$(SOBJS))
 $(LIB):	$(obj).depend $(OBJS) $(SOBJS)
 	$(call cmd_link_o_target, $(OBJS) $(SOBJS))
 
-clean:
-	rm -f $(SOBJS) $(OBJS)
-
-distclean:	clean
-	rm -f $(LIB) core *.bak $(obj).depend
-
 #########################################################################
 
 # defines $(obj).depend target
diff --git a/board/atmel/at91sam9261ek/Makefile b/board/atmel/at91sam9261ek/Makefile
index 9d20ba0..080f289 100644
--- a/board/atmel/at91sam9261ek/Makefile
+++ b/board/atmel/at91sam9261ek/Makefile
@@ -40,12 +40,6 @@  SOBJS	:= $(addprefix $(obj),$(SOBJS))
 $(LIB):	$(obj).depend $(OBJS) $(SOBJS)
 	$(call cmd_link_o_target, $(OBJS) $(SOBJS))
 
-clean:
-	rm -f $(SOBJS) $(OBJS)
-
-distclean:	clean
-	rm -f $(LIB) core *.bak $(obj).depend
-
 #########################################################################
 
 # defines $(obj).depend target
diff --git a/board/atmel/at91sam9263ek/Makefile b/board/atmel/at91sam9263ek/Makefile
index e43326e..8493043 100644
--- a/board/atmel/at91sam9263ek/Makefile
+++ b/board/atmel/at91sam9263ek/Makefile
@@ -40,12 +40,6 @@  SOBJS	:= $(addprefix $(obj),$(SOBJS-y))
 $(LIB):	$(obj).depend $(OBJS) $(SOBJS)
 	$(call cmd_link_o_target, $(OBJS) $(SOBJS))
 
-clean:
-	rm -f $(SOBJS) $(OBJS)
-
-distclean:	clean
-	rm -f $(LIB) core *.bak $(obj).depend
-
 #########################################################################
 
 # defines $(obj).depend target
diff --git a/board/atmel/at91sam9m10g45ek/Makefile b/board/atmel/at91sam9m10g45ek/Makefile
index 7aa2521..6c37827 100644
--- a/board/atmel/at91sam9m10g45ek/Makefile
+++ b/board/atmel/at91sam9m10g45ek/Makefile
@@ -39,12 +39,6 @@  SOBJS	:= $(addprefix $(obj),$(SOBJS))
 $(LIB):	$(obj).depend $(OBJS) $(SOBJS)
 	$(call cmd_link_o_target, $(OBJS) $(SOBJS))
 
-clean:
-	rm -f $(SOBJS) $(OBJS)
-
-distclean:	clean
-	rm -f $(LIB) core *.bak $(obj).depend
-
 #########################################################################
 
 # defines $(obj).depend target
diff --git a/board/atmel/at91sam9rlek/Makefile b/board/atmel/at91sam9rlek/Makefile
index 234aeb6..7de8897 100644
--- a/board/atmel/at91sam9rlek/Makefile
+++ b/board/atmel/at91sam9rlek/Makefile
@@ -40,12 +40,6 @@  SOBJS	:= $(addprefix $(obj),$(SOBJS))
 $(LIB):	$(obj).depend $(OBJS) $(SOBJS)
 	$(call cmd_link_o_target, $(OBJS) $(SOBJS))
 
-clean:
-	rm -f $(SOBJS) $(OBJS)
-
-distclean:	clean
-	rm -f $(LIB) core *.bak $(obj).depend
-
 #########################################################################
 
 # defines $(obj).depend target
diff --git a/board/balloon3/Makefile b/board/balloon3/Makefile
index 29e7915..f4a52d5 100644
--- a/board/balloon3/Makefile
+++ b/board/balloon3/Makefile
@@ -31,12 +31,6 @@  OBJS	:= $(addprefix $(obj),$(COBJS))
 $(LIB):	$(obj).depend $(OBJS)
 	$(call cmd_link_o_target, $(OBJS))
 
-clean:
-	rm -f $(OBJS)
-
-distclean:	clean
-	rm -f $(LIB) core *.bak $(obj).depend
-
 #########################################################################
 
 # defines $(obj).depend target
diff --git a/board/bc3450/Makefile b/board/bc3450/Makefile
index 53aa651..e59ac78 100644
--- a/board/bc3450/Makefile
+++ b/board/bc3450/Makefile
@@ -34,12 +34,6 @@  SOBJS	:= $(addprefix $(obj),$(SOBJS))
 $(LIB):	$(obj).depend $(OBJS)
 	$(call cmd_link_o_target, $(OBJS))
 
-clean:
-	rm -f $(SOBJS) $(OBJS)
-
-distclean:	clean
-	rm -f $(LIB) core *.bak $(obj).depend
-
 #########################################################################
 
 # defines $(obj).depend target
diff --git a/board/bct-brettl2/Makefile b/board/bct-brettl2/Makefile
index b268815..fc79549 100644
--- a/board/bct-brettl2/Makefile
+++ b/board/bct-brettl2/Makefile
@@ -39,12 +39,6 @@  SOBJS	:= $(addprefix $(obj),$(SOBJS-y))
 $(LIB):	$(obj).depend $(OBJS) $(SOBJS)
 	$(call cmd_link_o_target, $(OBJS) $(SOBJS))
 
-clean:
-	rm -f $(SOBJS) $(OBJS)
-
-distclean:	clean
-	rm -f $(LIB) core *.bak $(obj).depend
-
 # defines $(obj).depend target
 include $(SRCTREE)/rules.mk
 
diff --git a/board/bf506f-ezkit/Makefile b/board/bf506f-ezkit/Makefile
index cde8168..4e128bb 100644
--- a/board/bf506f-ezkit/Makefile
+++ b/board/bf506f-ezkit/Makefile
@@ -38,12 +38,6 @@  SOBJS	:= $(addprefix $(obj),$(SOBJS-y))
 $(LIB):	$(obj).depend $(OBJS) $(SOBJS)
 	$(call cmd_link_o_target, $(OBJS) $(SOBJS))
 
-clean:
-	rm -f $(SOBJS) $(OBJS)
-
-distclean:	clean
-	rm -f $(LIB) core *.bak $(obj).depend
-
 #########################################################################
 
 # defines $(obj).depend target
diff --git a/board/bf518f-ezbrd/Makefile b/board/bf518f-ezbrd/Makefile
index cde8168..4e128bb 100644
--- a/board/bf518f-ezbrd/Makefile
+++ b/board/bf518f-ezbrd/Makefile
@@ -38,12 +38,6 @@  SOBJS	:= $(addprefix $(obj),$(SOBJS-y))
 $(LIB):	$(obj).depend $(OBJS) $(SOBJS)
 	$(call cmd_link_o_target, $(OBJS) $(SOBJS))
 
-clean:
-	rm -f $(SOBJS) $(OBJS)
-
-distclean:	clean
-	rm -f $(LIB) core *.bak $(obj).depend
-
 #########################################################################
 
 # defines $(obj).depend target
diff --git a/board/bf525-ucr2/Makefile b/board/bf525-ucr2/Makefile
index cde8168..4e128bb 100644
--- a/board/bf525-ucr2/Makefile
+++ b/board/bf525-ucr2/Makefile
@@ -38,12 +38,6 @@  SOBJS	:= $(addprefix $(obj),$(SOBJS-y))
 $(LIB):	$(obj).depend $(OBJS) $(SOBJS)
 	$(call cmd_link_o_target, $(OBJS) $(SOBJS))
 
-clean:
-	rm -f $(SOBJS) $(OBJS)
-
-distclean:	clean
-	rm -f $(LIB) core *.bak $(obj).depend
-
 #########################################################################
 
 # defines $(obj).depend target
diff --git a/board/bf526-ezbrd/Makefile b/board/bf526-ezbrd/Makefile
index cde8168..4e128bb 100644
--- a/board/bf526-ezbrd/Makefile
+++ b/board/bf526-ezbrd/Makefile
@@ -38,12 +38,6 @@  SOBJS	:= $(addprefix $(obj),$(SOBJS-y))
 $(LIB):	$(obj).depend $(OBJS) $(SOBJS)
 	$(call cmd_link_o_target, $(OBJS) $(SOBJS))
 
-clean:
-	rm -f $(SOBJS) $(OBJS)
-
-distclean:	clean
-	rm -f $(LIB) core *.bak $(obj).depend
-
 #########################################################################
 
 # defines $(obj).depend target
diff --git a/board/bf527-ad7160-eval/Makefile b/board/bf527-ad7160-eval/Makefile
index cde8168..4e128bb 100644
--- a/board/bf527-ad7160-eval/Makefile
+++ b/board/bf527-ad7160-eval/Makefile
@@ -38,12 +38,6 @@  SOBJS	:= $(addprefix $(obj),$(SOBJS-y))
 $(LIB):	$(obj).depend $(OBJS) $(SOBJS)
 	$(call cmd_link_o_target, $(OBJS) $(SOBJS))
 
-clean:
-	rm -f $(SOBJS) $(OBJS)
-
-distclean:	clean
-	rm -f $(LIB) core *.bak $(obj).depend
-
 #########################################################################
 
 # defines $(obj).depend target
diff --git a/board/bf527-ezkit/Makefile b/board/bf527-ezkit/Makefile
index 98a8121..fdbcec5 100644
--- a/board/bf527-ezkit/Makefile
+++ b/board/bf527-ezkit/Makefile
@@ -39,12 +39,6 @@  SOBJS	:= $(addprefix $(obj),$(SOBJS-y))
 $(LIB):	$(obj).depend $(OBJS) $(SOBJS)
 	$(call cmd_link_o_target, $(OBJS) $(SOBJS))
 
-clean:
-	rm -f $(SOBJS) $(OBJS)
-
-distclean:	clean
-	rm -f $(LIB) core *.bak $(obj).depend
-
 #########################################################################
 
 # defines $(obj).depend target
diff --git a/board/bf527-sdp/Makefile b/board/bf527-sdp/Makefile
index cde8168..4e128bb 100644
--- a/board/bf527-sdp/Makefile
+++ b/board/bf527-sdp/Makefile
@@ -38,12 +38,6 @@  SOBJS	:= $(addprefix $(obj),$(SOBJS-y))
 $(LIB):	$(obj).depend $(OBJS) $(SOBJS)
 	$(call cmd_link_o_target, $(OBJS) $(SOBJS))
 
-clean:
-	rm -f $(SOBJS) $(OBJS)
-
-distclean:	clean
-	rm -f $(LIB) core *.bak $(obj).depend
-
 #########################################################################
 
 # defines $(obj).depend target
diff --git a/board/bf533-ezkit/Makefile b/board/bf533-ezkit/Makefile
index dfc1724..5fb51da 100644
--- a/board/bf533-ezkit/Makefile
+++ b/board/bf533-ezkit/Makefile
@@ -38,12 +38,6 @@  SOBJS	:= $(addprefix $(obj),$(SOBJS-y))
 $(LIB):	$(obj).depend $(OBJS) $(SOBJS)
 	$(call cmd_link_o_target, $(OBJS) $(SOBJS))
 
-clean:
-	rm -f $(SOBJS) $(OBJS)
-
-distclean:	clean
-	rm -f $(LIB) core *.bak $(obj).depend
-
 #########################################################################
 
 # defines $(obj).depend target
diff --git a/board/bf533-stamp/Makefile b/board/bf533-stamp/Makefile
index ce3ff42..921a5f5 100644
--- a/board/bf533-stamp/Makefile
+++ b/board/bf533-stamp/Makefile
@@ -40,12 +40,6 @@  SOBJS	:= $(addprefix $(obj),$(SOBJS-y))
 $(LIB):	$(obj).depend $(OBJS) $(SOBJS)
 	$(call cmd_link_o_target, $(OBJS) $(SOBJS))
 
-clean:
-	rm -f $(SOBJS) $(OBJS)
-
-distclean:	clean
-	rm -f $(LIB) core *.bak $(obj).depend
-
 #########################################################################
 
 # defines $(obj).depend target
diff --git a/board/bf537-minotaur/Makefile b/board/bf537-minotaur/Makefile
index cde8168..4e128bb 100644
--- a/board/bf537-minotaur/Makefile
+++ b/board/bf537-minotaur/Makefile
@@ -38,12 +38,6 @@  SOBJS	:= $(addprefix $(obj),$(SOBJS-y))
 $(LIB):	$(obj).depend $(OBJS) $(SOBJS)
 	$(call cmd_link_o_target, $(OBJS) $(SOBJS))
 
-clean:
-	rm -f $(SOBJS) $(OBJS)
-
-distclean:	clean
-	rm -f $(LIB) core *.bak $(obj).depend
-
 #########################################################################
 
 # defines $(obj).depend target
diff --git a/board/bf537-pnav/Makefile b/board/bf537-pnav/Makefile
index cde8168..4e128bb 100644
--- a/board/bf537-pnav/Makefile
+++ b/board/bf537-pnav/Makefile
@@ -38,12 +38,6 @@  SOBJS	:= $(addprefix $(obj),$(SOBJS-y))
 $(LIB):	$(obj).depend $(OBJS) $(SOBJS)
 	$(call cmd_link_o_target, $(OBJS) $(SOBJS))
 
-clean:
-	rm -f $(SOBJS) $(OBJS)
-
-distclean:	clean
-	rm -f $(LIB) core *.bak $(obj).depend
-
 #########################################################################
 
 # defines $(obj).depend target
diff --git a/board/bf537-srv1/Makefile b/board/bf537-srv1/Makefile
index cde8168..4e128bb 100644
--- a/board/bf537-srv1/Makefile
+++ b/board/bf537-srv1/Makefile
@@ -38,12 +38,6 @@  SOBJS	:= $(addprefix $(obj),$(SOBJS-y))
 $(LIB):	$(obj).depend $(OBJS) $(SOBJS)
 	$(call cmd_link_o_target, $(OBJS) $(SOBJS))
 
-clean:
-	rm -f $(SOBJS) $(OBJS)
-
-distclean:	clean
-	rm -f $(LIB) core *.bak $(obj).depend
-
 #########################################################################
 
 # defines $(obj).depend target
diff --git a/board/bf537-stamp/Makefile b/board/bf537-stamp/Makefile
index 2b9328b..ae04753 100644
--- a/board/bf537-stamp/Makefile
+++ b/board/bf537-stamp/Makefile
@@ -40,12 +40,6 @@  SOBJS	:= $(addprefix $(obj),$(SOBJS-y))
 $(LIB):	$(obj).depend $(OBJS) $(SOBJS)
 	$(call cmd_link_o_target, $(OBJS) $(SOBJS))
 
-clean:
-	rm -f $(SOBJS) $(OBJS)
-
-distclean:	clean
-	rm -f $(LIB) core *.bak $(obj).depend
-
 #########################################################################
 
 # defines $(obj).depend target
diff --git a/board/bf538f-ezkit/Makefile b/board/bf538f-ezkit/Makefile
index cde8168..4e128bb 100644
--- a/board/bf538f-ezkit/Makefile
+++ b/board/bf538f-ezkit/Makefile
@@ -38,12 +38,6 @@  SOBJS	:= $(addprefix $(obj),$(SOBJS-y))
 $(LIB):	$(obj).depend $(OBJS) $(SOBJS)
 	$(call cmd_link_o_target, $(OBJS) $(SOBJS))
 
-clean:
-	rm -f $(SOBJS) $(OBJS)
-
-distclean:	clean
-	rm -f $(LIB) core *.bak $(obj).depend
-
 #########################################################################
 
 # defines $(obj).depend target
diff --git a/board/bf548-ezkit/Makefile b/board/bf548-ezkit/Makefile
index 98a8121..fdbcec5 100644
--- a/board/bf548-ezkit/Makefile
+++ b/board/bf548-ezkit/Makefile
@@ -39,12 +39,6 @@  SOBJS	:= $(addprefix $(obj),$(SOBJS-y))
 $(LIB):	$(obj).depend $(OBJS) $(SOBJS)
 	$(call cmd_link_o_target, $(OBJS) $(SOBJS))
 
-clean:
-	rm -f $(SOBJS) $(OBJS)
-
-distclean:	clean
-	rm -f $(LIB) core *.bak $(obj).depend
-
 #########################################################################
 
 # defines $(obj).depend target
diff --git a/board/bf561-acvilon/Makefile b/board/bf561-acvilon/Makefile
index 9259d6e..5b0b292 100644
--- a/board/bf561-acvilon/Makefile
+++ b/board/bf561-acvilon/Makefile
@@ -40,12 +40,6 @@  SOBJS	:= $(addprefix $(obj),$(SOBJS-y))
 $(LIB):	$(obj).depend $(OBJS) $(SOBJS)
 	$(call cmd_link_o_target, $(OBJS) $(SOBJS))
 
-clean:
-	rm -f $(SOBJS) $(OBJS)
-
-distclean:	clean
-	rm -f $(LIB) core *.bak $(obj).depend
-
 #########################################################################
 
 # defines $(obj).depend target
diff --git a/board/bf561-ezkit/Makefile b/board/bf561-ezkit/Makefile
index 0d17676..505a831 100644
--- a/board/bf561-ezkit/Makefile
+++ b/board/bf561-ezkit/Makefile
@@ -38,12 +38,6 @@  SOBJS	:= $(addprefix $(obj),$(SOBJS-y))
 $(LIB):	$(obj).depend $(OBJS) $(SOBJS)
 	$(call cmd_link_o_target, $(OBJS) $(SOBJS))
 
-clean:
-	rm -f $(SOBJS) $(OBJS)
-
-distclean:	clean
-	rm -f $(LIB) core *.bak $(obj).depend
-
 #########################################################################
 
 # defines $(obj).depend target
diff --git a/board/blackstamp/Makefile b/board/blackstamp/Makefile
index cde8168..4e128bb 100644
--- a/board/blackstamp/Makefile
+++ b/board/blackstamp/Makefile
@@ -38,12 +38,6 @@  SOBJS	:= $(addprefix $(obj),$(SOBJS-y))
 $(LIB):	$(obj).depend $(OBJS) $(SOBJS)
 	$(call cmd_link_o_target, $(OBJS) $(SOBJS))
 
-clean:
-	rm -f $(SOBJS) $(OBJS)
-
-distclean:	clean
-	rm -f $(LIB) core *.bak $(obj).depend
-
 #########################################################################
 
 # defines $(obj).depend target
diff --git a/board/blackvme/Makefile b/board/blackvme/Makefile
index cde8168..4e128bb 100644
--- a/board/blackvme/Makefile
+++ b/board/blackvme/Makefile
@@ -38,12 +38,6 @@  SOBJS	:= $(addprefix $(obj),$(SOBJS-y))
 $(LIB):	$(obj).depend $(OBJS) $(SOBJS)
 	$(call cmd_link_o_target, $(OBJS) $(SOBJS))
 
-clean:
-	rm -f $(SOBJS) $(OBJS)
-
-distclean:	clean
-	rm -f $(LIB) core *.bak $(obj).depend
-
 #########################################################################
 
 # defines $(obj).depend target
diff --git a/board/bluewater/snapper9260/Makefile b/board/bluewater/snapper9260/Makefile
index 4fccdaa..dcf8e98 100644
--- a/board/bluewater/snapper9260/Makefile
+++ b/board/bluewater/snapper9260/Makefile
@@ -37,12 +37,6 @@  SOBJS	:= $(addprefix $(obj),$(SOBJS))
 $(LIB):	$(obj).depend $(OBJS) $(SOBJS)
 	$(call cmd_link_o_target, $(OBJS) $(SOBJS))
 
-clean:
-	rm -f $(SOBJS) $(OBJS)
-
-distclean:	clean
-	rm -f $(LIB) core *.bak $(obj).depend
-
 #########################################################################
 
 # defines $(obj).depend target
diff --git a/board/calao/sbc35_a9g20/Makefile b/board/calao/sbc35_a9g20/Makefile
index cc4219d..7b7cc29 100644
--- a/board/calao/sbc35_a9g20/Makefile
+++ b/board/calao/sbc35_a9g20/Makefile
@@ -39,12 +39,6 @@  SOBJS	:= $(addprefix $(obj),$(SOBJS))
 $(LIB):	$(obj).depend $(OBJS) $(SOBJS)
 	$(call cmd_link_o_target, $(OBJS) $(SOBJS))
 
-clean:
-	rm -f $(SOBJS) $(OBJS)
-
-distclean:	clean
-	rm -f $(LIB) core *.bak $(obj).depend
-
 #########################################################################
 
 # defines $(obj).depend target
diff --git a/board/calao/tny_a9260/Makefile b/board/calao/tny_a9260/Makefile
index 151a228..1bf21e1 100644
--- a/board/calao/tny_a9260/Makefile
+++ b/board/calao/tny_a9260/Makefile
@@ -39,12 +39,6 @@  SOBJS	:= $(addprefix $(obj),$(SOBJS))
 $(LIB):	$(obj).depend $(OBJS) $(SOBJS)
 	$(call cmd_link_o_target, $(OBJS) $(SOBJS))
 
-clean:
-	rm -f $(SOBJS) $(OBJS)
-
-distclean:	clean
-	rm -f $(LIB) core *.bak $(obj).depend
-
 #########################################################################
 
 # defines $(obj).depend target
diff --git a/board/canmb/Makefile b/board/canmb/Makefile
index 0e2ec4b..ce38e81 100644
--- a/board/canmb/Makefile
+++ b/board/canmb/Makefile
@@ -38,12 +38,6 @@  SOBJS	:= $(addprefix $(obj),$(SOBJS))
 $(LIB):	$(obj).depend $(OBJS)
 	$(call cmd_link_o_target, $(OBJS))
 
-clean:
-	rm -f $(SOBJS) $(OBJS)
-
-distclean:	clean
-	rm -f $(LIB) core *.bak $(obj).depend
-
 #########################################################################
 
 # defines $(obj).depend target
diff --git a/board/cerf250/Makefile b/board/cerf250/Makefile
index d824ffa..cf4742e 100644
--- a/board/cerf250/Makefile
+++ b/board/cerf250/Makefile
@@ -33,12 +33,6 @@  OBJS	:= $(addprefix $(obj),$(COBJS))
 $(LIB):	$(obj).depend $(OBJS)
 	$(call cmd_link_o_target, $(OBJS))
 
-clean:
-	rm -f $(OBJS)
-
-distclean:	clean
-	rm -f $(LIB) core *.bak $(obj).depend
-
 #########################################################################
 
 # defines $(obj).depend target
diff --git a/board/cm-bf527/Makefile b/board/cm-bf527/Makefile
index 4d7bf14..9a31b8d 100644
--- a/board/cm-bf527/Makefile
+++ b/board/cm-bf527/Makefile
@@ -38,12 +38,6 @@  SOBJS	:= $(addprefix $(obj),$(SOBJS-y))
 $(LIB):	$(obj).depend $(OBJS) $(SOBJS)
 	$(call cmd_link_o_target, $(OBJS) $(SOBJS))
 
-clean:
-	rm -f $(SOBJS) $(OBJS)
-
-distclean:	clean
-	rm -f $(LIB) core *.bak $(obj).depend
-
 #########################################################################
 
 # defines $(obj).depend target
diff --git a/board/cm-bf533/Makefile b/board/cm-bf533/Makefile
index cde8168..4e128bb 100644
--- a/board/cm-bf533/Makefile
+++ b/board/cm-bf533/Makefile
@@ -38,12 +38,6 @@  SOBJS	:= $(addprefix $(obj),$(SOBJS-y))
 $(LIB):	$(obj).depend $(OBJS) $(SOBJS)
 	$(call cmd_link_o_target, $(OBJS) $(SOBJS))
 
-clean:
-	rm -f $(SOBJS) $(OBJS)
-
-distclean:	clean
-	rm -f $(LIB) core *.bak $(obj).depend
-
 #########################################################################
 
 # defines $(obj).depend target
diff --git a/board/cm-bf537e/Makefile b/board/cm-bf537e/Makefile
index 4d7bf14..9a31b8d 100644
--- a/board/cm-bf537e/Makefile
+++ b/board/cm-bf537e/Makefile
@@ -38,12 +38,6 @@  SOBJS	:= $(addprefix $(obj),$(SOBJS-y))
 $(LIB):	$(obj).depend $(OBJS) $(SOBJS)
 	$(call cmd_link_o_target, $(OBJS) $(SOBJS))
 
-clean:
-	rm -f $(SOBJS) $(OBJS)
-
-distclean:	clean
-	rm -f $(LIB) core *.bak $(obj).depend
-
 #########################################################################
 
 # defines $(obj).depend target
diff --git a/board/cm-bf537u/Makefile b/board/cm-bf537u/Makefile
index 4d7bf14..9a31b8d 100644
--- a/board/cm-bf537u/Makefile
+++ b/board/cm-bf537u/Makefile
@@ -38,12 +38,6 @@  SOBJS	:= $(addprefix $(obj),$(SOBJS-y))
 $(LIB):	$(obj).depend $(OBJS) $(SOBJS)
 	$(call cmd_link_o_target, $(OBJS) $(SOBJS))
 
-clean:
-	rm -f $(SOBJS) $(OBJS)
-
-distclean:	clean
-	rm -f $(LIB) core *.bak $(obj).depend
-
 #########################################################################
 
 # defines $(obj).depend target
diff --git a/board/cm-bf548/Makefile b/board/cm-bf548/Makefile
index 98a8121..fdbcec5 100644
--- a/board/cm-bf548/Makefile
+++ b/board/cm-bf548/Makefile
@@ -39,12 +39,6 @@  SOBJS	:= $(addprefix $(obj),$(SOBJS-y))
 $(LIB):	$(obj).depend $(OBJS) $(SOBJS)
 	$(call cmd_link_o_target, $(OBJS) $(SOBJS))
 
-clean:
-	rm -f $(SOBJS) $(OBJS)
-
-distclean:	clean
-	rm -f $(LIB) core *.bak $(obj).depend
-
 #########################################################################
 
 # defines $(obj).depend target
diff --git a/board/cm-bf561/Makefile b/board/cm-bf561/Makefile
index cde8168..4e128bb 100644
--- a/board/cm-bf561/Makefile
+++ b/board/cm-bf561/Makefile
@@ -38,12 +38,6 @@  SOBJS	:= $(addprefix $(obj),$(SOBJS-y))
 $(LIB):	$(obj).depend $(OBJS) $(SOBJS)
 	$(call cmd_link_o_target, $(OBJS) $(SOBJS))
 
-clean:
-	rm -f $(SOBJS) $(OBJS)
-
-distclean:	clean
-	rm -f $(LIB) core *.bak $(obj).depend
-
 #########################################################################
 
 # defines $(obj).depend target
diff --git a/board/cm4008/Makefile b/board/cm4008/Makefile
index e9bae19..5b98824 100644
--- a/board/cm4008/Makefile
+++ b/board/cm4008/Makefile
@@ -34,12 +34,6 @@  SOBJS	:= $(addprefix $(obj),$(SOBJS))
 $(LIB):	$(obj).depend $(OBJS) $(SOBJS)
 	$(call cmd_link_o_target, $(OBJS) $(SOBJS))
 
-clean:
-	rm -f $(SOBJS) $(OBJS)
-
-distclean:	clean
-	rm -f $(LIB) core *.bak $(obj).depend
-
 #########################################################################
 
 # defines $(obj).depend target
diff --git a/board/cm41xx/Makefile b/board/cm41xx/Makefile
index e608fe8..6214f8c 100644
--- a/board/cm41xx/Makefile
+++ b/board/cm41xx/Makefile
@@ -34,12 +34,6 @@  SOBJS	:= $(addprefix $(obj),$(SOBJS))
 $(LIB):	$(obj).depend $(OBJS) $(SOBJS)
 	$(call cmd_link_o_target, $(OBJS) $(SOBJS))
 
-clean:
-	rm -f $(SOBJS) $(OBJS)
-
-distclean:	clean
-	rm -f $(LIB) core *.bak $(obj).depend
-
 #########################################################################
 
 # defines $(obj).depend target
diff --git a/board/cm5200/Makefile b/board/cm5200/Makefile
index ac431a7..c936c08 100644
--- a/board/cm5200/Makefile
+++ b/board/cm5200/Makefile
@@ -34,12 +34,6 @@  SOBJS	:= $(addprefix $(obj),$(SOBJS))
 $(LIB):	$(obj).depend $(OBJS)
 	$(call cmd_link_o_target, $(OBJS))
 
-clean:
-	rm -f $(SOBJS) $(OBJS)
-
-distclean:	clean
-	rm -f $(LIB) core *.bak $(obj).depend
-
 #########################################################################
 
 # defines $(obj).depend target
diff --git a/board/cm_t35/Makefile b/board/cm_t35/Makefile
index 83d7a56..d08c024 100644
--- a/board/cm_t35/Makefile
+++ b/board/cm_t35/Makefile
@@ -33,12 +33,6 @@  OBJS	:= $(addprefix $(obj),$(COBJS))
 $(LIB):	$(obj).depend $(OBJS)
 	$(AR) $(ARFLAGS) $@ $(OBJS)
 
-clean:
-	rm -f $(OBJS)
-
-distclean:	clean
-	rm -f $(LIB) core *.bak $(obj).depend
-
 #########################################################################
 
 # defines $(obj).depend target
diff --git a/board/cmi/Makefile b/board/cmi/Makefile
index c554ce2..2aa4591 100644
--- a/board/cmi/Makefile
+++ b/board/cmi/Makefile
@@ -34,12 +34,6 @@  SOBJS	:= $(addprefix $(obj),$(SOBJS))
 $(LIB):	$(obj).depend $(OBJS)
 	$(call cmd_link_o_target, $(OBJS))
 
-clean:
-	rm -f $(SOBJS) $(OBJS)
-
-distclean:	clean
-	rm -f $(LIB) core *.bak $(obj).depend
-
 #########################################################################
 
 # defines $(obj).depend target
diff --git a/board/cogent/Makefile b/board/cogent/Makefile
index 334f03f..e7506fb 100644
--- a/board/cogent/Makefile
+++ b/board/cogent/Makefile
@@ -34,12 +34,6 @@  SOBJS	:= $(addprefix $(obj),$(SOBJS))
 $(LIB):	$(obj).depend $(OBJS)
 	$(call cmd_link_o_target, $(OBJS))
 
-clean:
-	rm -f $(SOBJS) $(OBJS)
-
-distclean:	clean
-	rm -f $(LIB) core *.bak $(obj).depend
-
 #########################################################################
 
 # defines $(obj).depend target
diff --git a/board/colibri_pxa270/Makefile b/board/colibri_pxa270/Makefile
index 40b3a3d..854b19b 100644
--- a/board/colibri_pxa270/Makefile
+++ b/board/colibri_pxa270/Makefile
@@ -31,12 +31,6 @@  OBJS	:= $(addprefix $(obj),$(COBJS))
 $(LIB):	$(obj).depend $(OBJS)
 	$(call cmd_link_o_target, $(OBJS))
 
-clean:
-	rm -f $(OBJS)
-
-distclean:	clean
-	rm -f $(LIB) core *.bak $(obj).depend
-
 #########################################################################
 
 # defines $(obj).depend target
diff --git a/board/comelit/dig297/Makefile b/board/comelit/dig297/Makefile
index 8dffedd..e397512 100644
--- a/board/comelit/dig297/Makefile
+++ b/board/comelit/dig297/Makefile
@@ -33,12 +33,6 @@  OBJS	:= $(addprefix $(obj),$(COBJS))
 $(LIB):	$(obj).depend $(OBJS)
 	$(call cmd_link_o_target, $(OBJS))
 
-clean:
-	rm -f $(OBJS)
-
-distclean:	clean
-	rm -f $(LIB) core *.bak $(obj).depend
-
 #########################################################################
 
 # defines $(obj).depend target
diff --git a/board/cradle/Makefile b/board/cradle/Makefile
index 18040c7..bdc91d8 100644
--- a/board/cradle/Makefile
+++ b/board/cradle/Makefile
@@ -33,12 +33,6 @@  OBJS	:= $(addprefix $(obj),$(COBJS))
 $(LIB):	$(obj).depend $(OBJS)
 	$(call cmd_link_o_target, $(OBJS))
 
-clean:
-	rm -f $(OBJS)
-
-distclean:	clean
-	rm -f $(LIB) core *.bak $(obj).depend
-
 #########################################################################
 
 # defines $(obj).depend target
diff --git a/board/cray/L1/Makefile b/board/cray/L1/Makefile
index d1a7a0b..4560c4f 100644
--- a/board/cray/L1/Makefile
+++ b/board/cray/L1/Makefile
@@ -38,13 +38,6 @@  SOBJS	:= $(addprefix $(obj),$(SOBJS))
 $(LIB):	$(OBJS) $(SOBJS) $(obj)bootscript.o
 	$(call cmd_link_o_target, $^)
 
-clean:
-	rm -f $(SOBJS) $(OBJS) $(obj)bootscript.c \
-		$(obj)bootscript.image $(obj)bootscript.o
-
-distclean:	clean
-	rm -f $(LIB) core *.bak $(obj).depend
-
 $(obj)$(BOARD).o : $(src)$(BOARD).c $(obj)bootscript.o
 
 $(obj)bootscript.c: $(obj)bootscript.image
diff --git a/board/csb226/Makefile b/board/csb226/Makefile
index b10c447..6fe9bec 100644
--- a/board/csb226/Makefile
+++ b/board/csb226/Makefile
@@ -33,12 +33,6 @@  OBJS	:= $(addprefix $(obj),$(COBJS))
 $(LIB):	$(obj).depend $(OBJS)
 	$(call cmd_link_o_target, $(OBJS))
 
-clean:
-	rm -f $(OBJS)
-
-distclean:	clean
-	rm -f $(LIB) core *.bak $(obj).depend
-
 #########################################################################
 
 # defines $(obj).depend target
diff --git a/board/csb272/Makefile b/board/csb272/Makefile
index cfc8839..d51e975 100644
--- a/board/csb272/Makefile
+++ b/board/csb272/Makefile
@@ -38,12 +38,6 @@  SOBJS	:= $(addprefix $(obj),$(SOBJS))
 $(LIB):	$(OBJS) $(SOBJS)
 	$(call cmd_link_o_target, $^)
 
-clean:
-	rm -f $(SOBJS) $(OBJS)
-
-distclean:	clean
-	rm -f $(LIB) core *.bak $(obj).depend
-
 #########################################################################
 
 # defines $(obj).depend target
diff --git a/board/csb472/Makefile b/board/csb472/Makefile
index cfc8839..d51e975 100644
--- a/board/csb472/Makefile
+++ b/board/csb472/Makefile
@@ -38,12 +38,6 @@  SOBJS	:= $(addprefix $(obj),$(SOBJS))
 $(LIB):	$(OBJS) $(SOBJS)
 	$(call cmd_link_o_target, $^)
 
-clean:
-	rm -f $(SOBJS) $(OBJS)
-
-distclean:	clean
-	rm -f $(LIB) core *.bak $(obj).depend
-
 #########################################################################
 
 # defines $(obj).depend target
diff --git a/board/dave/PPChameleonEVB/Makefile b/board/dave/PPChameleonEVB/Makefile
index 5028510..9f3a08e 100644
--- a/board/dave/PPChameleonEVB/Makefile
+++ b/board/dave/PPChameleonEVB/Makefile
@@ -34,12 +34,6 @@  SOBJS	:= $(addprefix $(obj),$(SOBJS))
 $(LIB):	$(OBJS) $(SOBJS)
 	$(call cmd_link_o_target, $^)
 
-clean:
-	rm -f $(SOBJS) $(OBJS)
-
-distclean:	clean
-	rm -f $(LIB) core *.bak $(obj).depend
-
 #########################################################################
 
 # defines $(obj).depend target
diff --git a/board/davedenx/aria/Makefile b/board/davedenx/aria/Makefile
index 30dba23..f48a85d 100644
--- a/board/davedenx/aria/Makefile
+++ b/board/davedenx/aria/Makefile
@@ -34,12 +34,6 @@  SOBJS	:= $(addprefix $(obj),$(SOBJS))
 $(LIB):	$(obj).depend $(OBJS)
 	$(call cmd_link_o_target, $(OBJS))
 
-clean:
-	rm -f $(SOBJS) $(OBJS)
-
-distclean:	clean
-	rm -f $(LIB) core *.bak $(obj).depend
-
 #########################################################################
 
 # defines $(obj).depend target
diff --git a/board/davedenx/qong/Makefile b/board/davedenx/qong/Makefile
index 1dca60d..4a449b9 100644
--- a/board/davedenx/qong/Makefile
+++ b/board/davedenx/qong/Makefile
@@ -37,12 +37,6 @@  SOBJS	:= $(addprefix $(obj),$(SOBJS))
 $(LIB):	$(obj).depend $(OBJS) $(SOBJS)
 	$(call cmd_link_o_target, $(OBJS) $(SOBJS))
 
-clean:
-	rm -f $(SOBJS) $(OBJS)
-
-distclean:	clean
-	rm -f $(LIB) core *.bak .depend
-
 #########################################################################
 
 # defines $(obj).depend target
diff --git a/board/davinci/common/Makefile b/board/davinci/common/Makefile
index a1d3de2..9d7b164 100644
--- a/board/davinci/common/Makefile
+++ b/board/davinci/common/Makefile
@@ -38,12 +38,6 @@  SOBJS	:= $(addprefix $(obj),$(SOBJS))
 $(LIB):	$(obj).depend $(OBJS) $(SOBJS)
 	$(call cmd_link_o_target, $(OBJS) $(SOBJS))
 
-clean:
-	rm -f $(SOBJS) $(OBJS)
-
-distclean:	clean
-	rm -f $(LIB) core *.bak $(obj).depend
-
 #########################################################################
 # This is for $(obj).depend target
 include $(SRCTREE)/rules.mk
diff --git a/board/davinci/da8xxevm/Makefile b/board/davinci/da8xxevm/Makefile
index c1b2119..1ebf70c 100644
--- a/board/davinci/da8xxevm/Makefile
+++ b/board/davinci/da8xxevm/Makefile
@@ -40,12 +40,6 @@  SOBJS	:= $(addprefix $(obj),$(SOBJS))
 $(LIB):	$(obj).depend $(OBJS) $(SOBJS)
 	$(call cmd_link_o_target, $(OBJS) $(SOBJS))
 
-clean:
-	rm -f $(SOBJS) $(OBJS)
-
-distclean:	clean
-	rm -f $(LIB) core *.bak *~ .depend
-
 #########################################################################
 # This is for $(obj).depend target
 include $(SRCTREE)/rules.mk
diff --git a/board/davinci/dm355evm/Makefile b/board/davinci/dm355evm/Makefile
index 4804597..2b22124 100644
--- a/board/davinci/dm355evm/Makefile
+++ b/board/davinci/dm355evm/Makefile
@@ -37,12 +37,6 @@  SOBJS	:= $(addprefix $(obj),$(SOBJS))
 $(LIB):	$(obj).depend $(OBJS) $(SOBJS)
 	$(call cmd_link_o_target, $(OBJS) $(SOBJS))
 
-clean:
-	rm -f $(SOBJS) $(OBJS)
-
-distclean:	clean
-	rm -f $(LIB) core *.bak $(obj).depend
-
 #########################################################################
 # This is for $(obj).depend target
 include $(SRCTREE)/rules.mk
diff --git a/board/davinci/dm355leopard/Makefile b/board/davinci/dm355leopard/Makefile
index 4804597..2b22124 100644
--- a/board/davinci/dm355leopard/Makefile
+++ b/board/davinci/dm355leopard/Makefile
@@ -37,12 +37,6 @@  SOBJS	:= $(addprefix $(obj),$(SOBJS))
 $(LIB):	$(obj).depend $(OBJS) $(SOBJS)
 	$(call cmd_link_o_target, $(OBJS) $(SOBJS))
 
-clean:
-	rm -f $(SOBJS) $(OBJS)
-
-distclean:	clean
-	rm -f $(LIB) core *.bak $(obj).depend
-
 #########################################################################
 # This is for $(obj).depend target
 include $(SRCTREE)/rules.mk
diff --git a/board/davinci/dm365evm/Makefile b/board/davinci/dm365evm/Makefile
index 4804597..2b22124 100644
--- a/board/davinci/dm365evm/Makefile
+++ b/board/davinci/dm365evm/Makefile
@@ -37,12 +37,6 @@  SOBJS	:= $(addprefix $(obj),$(SOBJS))
 $(LIB):	$(obj).depend $(OBJS) $(SOBJS)
 	$(call cmd_link_o_target, $(OBJS) $(SOBJS))
 
-clean:
-	rm -f $(SOBJS) $(OBJS)
-
-distclean:	clean
-	rm -f $(LIB) core *.bak $(obj).depend
-
 #########################################################################
 # This is for $(obj).depend target
 include $(SRCTREE)/rules.mk
diff --git a/board/davinci/dm6467evm/Makefile b/board/davinci/dm6467evm/Makefile
index 4804597..2b22124 100644
--- a/board/davinci/dm6467evm/Makefile
+++ b/board/davinci/dm6467evm/Makefile
@@ -37,12 +37,6 @@  SOBJS	:= $(addprefix $(obj),$(SOBJS))
 $(LIB):	$(obj).depend $(OBJS) $(SOBJS)
 	$(call cmd_link_o_target, $(OBJS) $(SOBJS))
 
-clean:
-	rm -f $(SOBJS) $(OBJS)
-
-distclean:	clean
-	rm -f $(LIB) core *.bak $(obj).depend
-
 #########################################################################
 # This is for $(obj).depend target
 include $(SRCTREE)/rules.mk
diff --git a/board/davinci/dvevm/Makefile b/board/davinci/dvevm/Makefile
index 72fd963..49897f9 100644
--- a/board/davinci/dvevm/Makefile
+++ b/board/davinci/dvevm/Makefile
@@ -37,12 +37,6 @@  SOBJS	:= $(addprefix $(obj),$(SOBJS))
 $(LIB):	$(obj).depend $(OBJS) $(SOBJS)
 	$(call cmd_link_o_target, $(OBJS) $(SOBJS))
 
-clean:
-	rm -f $(SOBJS) $(OBJS)
-
-distclean:	clean
-	rm -f $(LIB) core *.bak $(obj).depend
-
 #########################################################################
 # This is for $(obj).depend target
 include $(SRCTREE)/rules.mk
diff --git a/board/davinci/ea20/Makefile b/board/davinci/ea20/Makefile
index 67ec461..1725f2b 100644
--- a/board/davinci/ea20/Makefile
+++ b/board/davinci/ea20/Makefile
@@ -38,12 +38,6 @@  SOBJS	:= $(addprefix $(obj),$(SOBJS))
 $(LIB):	$(obj).depend $(OBJS) $(SOBJS)
 	$(AR) $(ARFLAGS) $@ $(OBJS) $(SOBJS)
 
-clean:
-	rm -f $(SOBJS) $(OBJS)
-
-distclean:	clean
-	rm -f $(LIB) core *.bak *~ .depend
-
 #########################################################################
 # This is for $(obj).depend target
 include $(SRCTREE)/rules.mk
diff --git a/board/davinci/schmoogie/Makefile b/board/davinci/schmoogie/Makefile
index 72fd963..49897f9 100644
--- a/board/davinci/schmoogie/Makefile
+++ b/board/davinci/schmoogie/Makefile
@@ -37,12 +37,6 @@  SOBJS	:= $(addprefix $(obj),$(SOBJS))
 $(LIB):	$(obj).depend $(OBJS) $(SOBJS)
 	$(call cmd_link_o_target, $(OBJS) $(SOBJS))
 
-clean:
-	rm -f $(SOBJS) $(OBJS)
-
-distclean:	clean
-	rm -f $(LIB) core *.bak $(obj).depend
-
 #########################################################################
 # This is for $(obj).depend target
 include $(SRCTREE)/rules.mk
diff --git a/board/davinci/sffsdr/Makefile b/board/davinci/sffsdr/Makefile
index 72fd963..49897f9 100644
--- a/board/davinci/sffsdr/Makefile
+++ b/board/davinci/sffsdr/Makefile
@@ -37,12 +37,6 @@  SOBJS	:= $(addprefix $(obj),$(SOBJS))
 $(LIB):	$(obj).depend $(OBJS) $(SOBJS)
 	$(call cmd_link_o_target, $(OBJS) $(SOBJS))
 
-clean:
-	rm -f $(SOBJS) $(OBJS)
-
-distclean:	clean
-	rm -f $(LIB) core *.bak $(obj).depend
-
 #########################################################################
 # This is for $(obj).depend target
 include $(SRCTREE)/rules.mk
diff --git a/board/davinci/sonata/Makefile b/board/davinci/sonata/Makefile
index 72fd963..49897f9 100644
--- a/board/davinci/sonata/Makefile
+++ b/board/davinci/sonata/Makefile
@@ -37,12 +37,6 @@  SOBJS	:= $(addprefix $(obj),$(SOBJS))
 $(LIB):	$(obj).depend $(OBJS) $(SOBJS)
 	$(call cmd_link_o_target, $(OBJS) $(SOBJS))
 
-clean:
-	rm -f $(SOBJS) $(OBJS)
-
-distclean:	clean
-	rm -f $(LIB) core *.bak $(obj).depend
-
 #########################################################################
 # This is for $(obj).depend target
 include $(SRCTREE)/rules.mk
diff --git a/board/dnp5370/Makefile b/board/dnp5370/Makefile
index 0d17676..505a831 100644
--- a/board/dnp5370/Makefile
+++ b/board/dnp5370/Makefile
@@ -38,12 +38,6 @@  SOBJS	:= $(addprefix $(obj),$(SOBJS-y))
 $(LIB):	$(obj).depend $(OBJS) $(SOBJS)
 	$(call cmd_link_o_target, $(OBJS) $(SOBJS))
 
-clean:
-	rm -f $(SOBJS) $(OBJS)
-
-distclean:	clean
-	rm -f $(LIB) core *.bak $(obj).depend
-
 #########################################################################
 
 # defines $(obj).depend target
diff --git a/board/dvlhost/Makefile b/board/dvlhost/Makefile
index af9a644..2b0fbcd 100644
--- a/board/dvlhost/Makefile
+++ b/board/dvlhost/Makefile
@@ -34,12 +34,6 @@  SOBJS	:= $(addprefix $(obj),$(SOBJS))
 $(LIB):	$(obj).depend $(OBJS)
 	$(call cmd_link_o_target, $(OBJS))
 
-clean:
-	rm -f $(SOBJS) $(OBJS)
-
-distclean:	clean
-	rm -f $(LIB) core *.bak $(obj).depend
-
 #########################################################################
 
 # defines $(obj).depend target
diff --git a/board/eNET/Makefile b/board/eNET/Makefile
index 3703ae5..ad1c5b1 100644
--- a/board/eNET/Makefile
+++ b/board/eNET/Makefile
@@ -42,12 +42,6 @@  OBJS	:= $(addprefix $(obj),$(SOBJS-y) $(COBJS-y))
 $(LIB):	$(obj).depend $(OBJS) $(SOBJS)
 	$(call cmd_link_o_target, $(OBJS) $(SOBJS))
 
-clean:
-	rm -f $(SOBJS) $(OBJS)
-
-distclean:	clean
-	rm -f $(LIB) core *.bak $(obj).depend
-
 #########################################################################
 
 # defines $(obj).depend target
diff --git a/board/efikamx/Makefile b/board/efikamx/Makefile
index ee4a16e..bd1056e 100644
--- a/board/efikamx/Makefile
+++ b/board/efikamx/Makefile
@@ -36,12 +36,6 @@  SOBJS	:= $(addprefix $(obj),$(SOBJS))
 $(LIB):	$(obj).depend $(OBJS) $(SOBJS)
 	$(call cmd_link_o_target, $(OBJS) $(SOBJS))
 
-clean:
-	rm -f $(SOBJS) $(OBJS)
-
-distclean:	clean
-	rm -f $(LIB) core *.bak .depend
-
 #########################################################################
 
 # defines $(obj).depend target
diff --git a/board/eltec/bab7xx/Makefile b/board/eltec/bab7xx/Makefile
index b22160f..9606ddc 100644
--- a/board/eltec/bab7xx/Makefile
+++ b/board/eltec/bab7xx/Makefile
@@ -36,12 +36,6 @@  SOBJS	:= $(addprefix $(obj),$(SOBJS))
 $(LIB):	$(obj).depend $(OBJS) $(SOBJS)
 	$(call cmd_link_o_target, $(OBJS) $(SOBJS))
 
-clean:
-	rm -f $(SOBJS) $(OBJS)
-
-distclean:	clean
-	rm -f $(LIB) core *.bak $(obj).depend
-
 #########################################################################
 
 # defines $(obj).depend target
diff --git a/board/eltec/elppc/Makefile b/board/eltec/elppc/Makefile
index 367239a..dd07e47 100644
--- a/board/eltec/elppc/Makefile
+++ b/board/eltec/elppc/Makefile
@@ -36,12 +36,6 @@  SOBJS	:= $(addprefix $(obj),$(SOBJS))
 $(LIB):	$(obj).depend $(OBJS) $(SOBJS)
 	$(call cmd_link_o_target, $(OBJS) $(SOBJS))
 
-clean:
-	rm -f $(SOBJS) $(OBJS)
-
-distclean:	clean
-	rm -f $(LIB) core *.bak $(obj).depend
-
 #########################################################################
 
 # defines $(obj).depend target
diff --git a/board/emk/top5200/Makefile b/board/emk/top5200/Makefile
index 72db38d..c546de5 100644
--- a/board/emk/top5200/Makefile
+++ b/board/emk/top5200/Makefile
@@ -38,12 +38,6 @@  SOBJS	:= $(addprefix $(obj),$(SOBJS))
 $(LIB):	$(obj).depend $(OBJS)
 	$(call cmd_link_o_target, $(OBJS))
 
-clean:
-	rm -f $(SOBJS) $(OBJS)
-
-distclean:	clean
-	rm -f $(LIB) core *.bak $(obj).depend
-
 #########################################################################
 
 # defines $(obj).depend target
diff --git a/board/emk/top9000/Makefile b/board/emk/top9000/Makefile
index 3ac6f14..ce766f2 100644
--- a/board/emk/top9000/Makefile
+++ b/board/emk/top9000/Makefile
@@ -38,12 +38,6 @@  SOBJS	:= $(addprefix $(obj),$(SOBJS))
 $(LIB):	$(obj).depend $(OBJS) $(SOBJS)
 	$(call cmd_link_o_target, $(OBJS) $(SOBJS))
 
-clean:
-	rm -f $(SOBJS) $(OBJS)
-
-distclean:	clean
-	rm -f $(LIB) core *.bak $(obj).depend
-
 #########################################################################
 
 # defines $(obj).depend target
diff --git a/board/ep8248/Makefile b/board/ep8248/Makefile
index 9079aad..d9039f6 100644
--- a/board/ep8248/Makefile
+++ b/board/ep8248/Makefile
@@ -34,12 +34,6 @@  SOBJS	:= $(addprefix $(obj),$(SOBJS))
 $(LIB):	$(obj).depend $(OBJS)
 	$(call cmd_link_o_target, $(OBJS))
 
-clean:
-	rm -f $(SOBJS) $(OBJS)
-
-distclean:	clean
-	rm -f $(LIB) core *.bak $(obj).depend
-
 #########################################################################
 
 # defines $(obj).depend target
diff --git a/board/ep8260/Makefile b/board/ep8260/Makefile
index 68a4803..d9fa484 100644
--- a/board/ep8260/Makefile
+++ b/board/ep8260/Makefile
@@ -34,12 +34,6 @@  SOBJS	:= $(addprefix $(obj),$(SOBJS))
 $(LIB):	$(obj).depend $(OBJS)
 	$(call cmd_link_o_target, $(OBJS))
 
-clean:
-	rm -f $(SOBJS) $(OBJS)
-
-distclean:	clean
-	rm -f $(LIB) core *.bak $(obj).depend
-
 #########################################################################
 
 # defines $(obj).depend target
diff --git a/board/ep82xxm/Makefile b/board/ep82xxm/Makefile
index 74b9a35..2101ddd 100644
--- a/board/ep82xxm/Makefile
+++ b/board/ep82xxm/Makefile
@@ -33,12 +33,6 @@  OBJS	:= $(addprefix $(obj),$(COBJS))
 $(LIB):	$(OBJS)
 	$(call cmd_link_o_target, $(OBJS))
 
-clean:
-	rm -f $(OBJS)
-
-distclean:	clean
-	rm -f $(LIB) core *.bak $(obj).depend
-
 #########################################################################
 
 # defines $(obj).depend target
diff --git a/board/ep88x/Makefile b/board/ep88x/Makefile
index 70205f1..defca3d 100644
--- a/board/ep88x/Makefile
+++ b/board/ep88x/Makefile
@@ -37,12 +37,6 @@  SOBJS	:= $(addprefix $(obj),$(SOBJS))
 $(LIB):	$(obj).depend $(OBJS)
 	$(call cmd_link_o_target, $(OBJS))
 
-clean:
-	rm -f $(SOBJS) $(OBJS)
-
-distclean:	clean
-	rm -f $(LIB) core *.bak $(obj).depend
-
 #########################################################################
 
 # defines $(obj).depend target
diff --git a/board/esd/adciop/Makefile b/board/esd/adciop/Makefile
index 7b3d6dc..c90448a 100644
--- a/board/esd/adciop/Makefile
+++ b/board/esd/adciop/Makefile
@@ -38,12 +38,6 @@  SOBJS	:= $(addprefix $(obj),$(SOBJS))
 $(LIB):	$(OBJS)
 	$(call cmd_link_o_target, $(OBJS))
 
-clean:
-	rm -f $(SOBJS) $(OBJS)
-
-distclean:	clean
-	rm -f $(LIB) core *.bak $(obj).depend
-
 #########################################################################
 
 # defines $(obj).depend target
diff --git a/board/esd/apc405/Makefile b/board/esd/apc405/Makefile
index df391da..d820da3 100644
--- a/board/esd/apc405/Makefile
+++ b/board/esd/apc405/Makefile
@@ -39,12 +39,6 @@  SOBJS	:= $(addprefix $(obj),$(SOBJS))
 $(LIB):	$(OBJS) $(SOBJS)
 	$(call cmd_link_o_target, $^)
 
-clean:
-	rm -f $(SOBJS) $(OBJS)
-
-distclean:	clean
-	rm -f $(LIB) core *.bak $(obj).depend
-
 #########################################################################
 
 # defines $(obj).depend target
diff --git a/board/esd/ar405/Makefile b/board/esd/ar405/Makefile
index bd08253..f8365a1 100644
--- a/board/esd/ar405/Makefile
+++ b/board/esd/ar405/Makefile
@@ -37,12 +37,6 @@  SOBJS	:= $(addprefix $(obj),$(SOBJS))
 $(LIB):	$(OBJS) $(SOBJS)
 	$(call cmd_link_o_target, $(OBJS))
 
-clean:
-	rm -f $(SOBJS) $(OBJS)
-
-distclean:	clean
-	rm -f $(LIB) core *.bak $(obj).depend
-
 #########################################################################
 
 # defines $(obj).depend target
diff --git a/board/esd/ash405/Makefile b/board/esd/ash405/Makefile
index 401622f..8aacae7 100644
--- a/board/esd/ash405/Makefile
+++ b/board/esd/ash405/Makefile
@@ -39,12 +39,6 @@  SOBJS	:= $(addprefix $(obj),$(SOBJS))
 $(LIB):	$(OBJS) $(SOBJS)
 	$(call cmd_link_o_target, $(OBJS))
 
-clean:
-	rm -f $(SOBJS) $(OBJS)
-
-distclean:	clean
-	rm -f $(LIB) core *.bak $(obj).depend
-
 #########################################################################
 
 # defines $(obj).depend target
diff --git a/board/esd/canbt/Makefile b/board/esd/canbt/Makefile
index bd08253..f8365a1 100644
--- a/board/esd/canbt/Makefile
+++ b/board/esd/canbt/Makefile
@@ -37,12 +37,6 @@  SOBJS	:= $(addprefix $(obj),$(SOBJS))
 $(LIB):	$(OBJS) $(SOBJS)
 	$(call cmd_link_o_target, $(OBJS))
 
-clean:
-	rm -f $(SOBJS) $(OBJS)
-
-distclean:	clean
-	rm -f $(LIB) core *.bak $(obj).depend
-
 #########################################################################
 
 # defines $(obj).depend target
diff --git a/board/esd/cms700/Makefile b/board/esd/cms700/Makefile
index 15a32a0..4d167b4 100644
--- a/board/esd/cms700/Makefile
+++ b/board/esd/cms700/Makefile
@@ -45,12 +45,6 @@  SOBJS	:= $(addprefix $(obj),$(SOBJS))
 $(LIB):	$(OBJS) $(SOBJS)
 	$(call cmd_link_o_target, $(OBJS))
 
-clean:
-	rm -f $(SOBJS) $(OBJS)
-
-distclean:	clean
-	rm -f $(LIB) core *.bak $(obj).depend
-
 #########################################################################
 
 # defines $(obj).depend target
diff --git a/board/esd/cpci2dp/Makefile b/board/esd/cpci2dp/Makefile
index be65097..840c537 100644
--- a/board/esd/cpci2dp/Makefile
+++ b/board/esd/cpci2dp/Makefile
@@ -37,12 +37,6 @@  SOBJS	:= $(addprefix $(obj),$(SOBJS))
 $(LIB):	$(OBJS) $(SOBJS)
 	$(call cmd_link_o_target, $(OBJS))
 
-clean:
-	rm -f $(SOBJS) $(OBJS)
-
-distclean:	clean
-	rm -f $(LIB) core *.bak $(obj).depend
-
 #########################################################################
 
 # defines $(obj).depend target
diff --git a/board/esd/cpci405/Makefile b/board/esd/cpci405/Makefile
index c6e1d40..2e50371 100644
--- a/board/esd/cpci405/Makefile
+++ b/board/esd/cpci405/Makefile
@@ -38,12 +38,6 @@  SOBJS	:= $(addprefix $(obj),$(SOBJS))
 $(LIB):	$(OBJS) $(SOBJS)
 	$(call cmd_link_o_target, $(OBJS))
 
-clean:
-	rm -f $(SOBJS) $(OBJS)
-
-distclean:	clean
-	rm -f $(LIB) core *.bak $(obj).depend
-
 #########################################################################
 
 # defines $(obj).depend target
diff --git a/board/esd/cpci5200/Makefile b/board/esd/cpci5200/Makefile
index d41cbcd..6a0b867 100644
--- a/board/esd/cpci5200/Makefile
+++ b/board/esd/cpci5200/Makefile
@@ -43,12 +43,6 @@  SOBJS	:= $(addprefix $(obj),$(SOBJS))
 $(LIB):	$(obj).depend $(OBJS)
 	$(call cmd_link_o_target, $(OBJS))
 
-clean:
-	rm -f $(SOBJS) $(OBJS)
-
-distclean:	clean
-	rm -f $(LIB) core *.bak $(obj).depend
-
 #########################################################################
 
 # defines $(obj).depend target
diff --git a/board/esd/cpciiser4/Makefile b/board/esd/cpciiser4/Makefile
index bd08253..f8365a1 100644
--- a/board/esd/cpciiser4/Makefile
+++ b/board/esd/cpciiser4/Makefile
@@ -37,12 +37,6 @@  SOBJS	:= $(addprefix $(obj),$(SOBJS))
 $(LIB):	$(OBJS) $(SOBJS)
 	$(call cmd_link_o_target, $(OBJS))
 
-clean:
-	rm -f $(SOBJS) $(OBJS)
-
-distclean:	clean
-	rm -f $(LIB) core *.bak $(obj).depend
-
 #########################################################################
 
 # defines $(obj).depend target
diff --git a/board/esd/dasa_sim/Makefile b/board/esd/dasa_sim/Makefile
index f1cadb1..c5c50ae 100644
--- a/board/esd/dasa_sim/Makefile
+++ b/board/esd/dasa_sim/Makefile
@@ -38,12 +38,6 @@  SOBJS	:= $(addprefix $(obj),$(SOBJS))
 $(LIB):	$(OBJS)
 	$(call cmd_link_o_target, $(OBJS))
 
-clean:
-	rm -f $(SOBJS) $(OBJS)
-
-distclean:	clean
-	rm -f $(LIB) core *.bak $(obj).depend
-
 #########################################################################
 
 # defines $(obj).depend target
diff --git a/board/esd/dp405/Makefile b/board/esd/dp405/Makefile
index d4012b0..4985c1f 100644
--- a/board/esd/dp405/Makefile
+++ b/board/esd/dp405/Makefile
@@ -42,12 +42,6 @@  SOBJS	:= $(addprefix $(obj),$(SOBJS))
 $(LIB):	$(OBJS) $(SOBJS)
 	$(call cmd_link_o_target, $(OBJS))
 
-clean:
-	rm -f $(SOBJS) $(OBJS)
-
-distclean:	clean
-	rm -f $(LIB) core *.bak $(obj).depend
-
 #########################################################################
 
 # defines $(obj).depend target
diff --git a/board/esd/du405/Makefile b/board/esd/du405/Makefile
index bd08253..f8365a1 100644
--- a/board/esd/du405/Makefile
+++ b/board/esd/du405/Makefile
@@ -37,12 +37,6 @@  SOBJS	:= $(addprefix $(obj),$(SOBJS))
 $(LIB):	$(OBJS) $(SOBJS)
 	$(call cmd_link_o_target, $(OBJS))
 
-clean:
-	rm -f $(SOBJS) $(OBJS)
-
-distclean:	clean
-	rm -f $(LIB) core *.bak $(obj).depend
-
 #########################################################################
 
 # defines $(obj).depend target
diff --git a/board/esd/du440/Makefile b/board/esd/du440/Makefile
index 06824c7..3a84ae6 100644
--- a/board/esd/du440/Makefile
+++ b/board/esd/du440/Makefile
@@ -37,12 +37,6 @@  all:	$(LIB) $(SOBJS)
 $(LIB):	$(OBJS)
 	$(call cmd_link_o_target, $^)
 
-clean:
-	rm -f $(SOBJS) $(OBJS)
-
-distclean:	clean
-	rm -f $(LIB) core *.bak $(obj).depend
-
 #########################################################################
 
 # defines $(obj).depend target
diff --git a/board/esd/hh405/Makefile b/board/esd/hh405/Makefile
index 090005f..c5011ad 100644
--- a/board/esd/hh405/Makefile
+++ b/board/esd/hh405/Makefile
@@ -40,12 +40,6 @@  SOBJS	:= $(addprefix $(obj),$(SOBJS))
 $(LIB):	$(OBJS) $(SOBJS)
 	$(call cmd_link_o_target, $(OBJS))
 
-clean:
-	rm -f $(SOBJS) $(OBJS)
-
-distclean:	clean
-	rm -f $(LIB) core *.bak $(obj).depend
-
 #########################################################################
 
 # defines $(obj).depend target
diff --git a/board/esd/hub405/Makefile b/board/esd/hub405/Makefile
index 401622f..8aacae7 100644
--- a/board/esd/hub405/Makefile
+++ b/board/esd/hub405/Makefile
@@ -39,12 +39,6 @@  SOBJS	:= $(addprefix $(obj),$(SOBJS))
 $(LIB):	$(OBJS) $(SOBJS)
 	$(call cmd_link_o_target, $(OBJS))
 
-clean:
-	rm -f $(SOBJS) $(OBJS)
-
-distclean:	clean
-	rm -f $(LIB) core *.bak $(obj).depend
-
 #########################################################################
 
 # defines $(obj).depend target
diff --git a/board/esd/mecp5123/Makefile b/board/esd/mecp5123/Makefile
index 30dba23..f48a85d 100644
--- a/board/esd/mecp5123/Makefile
+++ b/board/esd/mecp5123/Makefile
@@ -34,12 +34,6 @@  SOBJS	:= $(addprefix $(obj),$(SOBJS))
 $(LIB):	$(obj).depend $(OBJS)
 	$(call cmd_link_o_target, $(OBJS))
 
-clean:
-	rm -f $(SOBJS) $(OBJS)
-
-distclean:	clean
-	rm -f $(LIB) core *.bak $(obj).depend
-
 #########################################################################
 
 # defines $(obj).depend target
diff --git a/board/esd/mecp5200/Makefile b/board/esd/mecp5200/Makefile
index 22ee984..9ef502d 100644
--- a/board/esd/mecp5200/Makefile
+++ b/board/esd/mecp5200/Makefile
@@ -35,12 +35,6 @@  SOBJS	:= $(addprefix $(obj),$(SOBJS))
 $(LIB):	$(obj).depend $(OBJS)
 	$(call cmd_link_o_target, $(OBJS))
 
-clean:
-	rm -f $(SOBJS) $(OBJS)
-
-distclean:	clean
-	rm -f $(LIB) core *.bak $(obj).depend
-
 #########################################################################
 
 # defines $(obj).depend target
diff --git a/board/esd/meesc/Makefile b/board/esd/meesc/Makefile
index b414479..74cfce9 100644
--- a/board/esd/meesc/Makefile
+++ b/board/esd/meesc/Makefile
@@ -39,12 +39,6 @@  SOBJS	:= $(addprefix $(obj),$(SOBJS))
 $(LIB):	$(obj).depend $(OBJS) $(SOBJS)
 	$(call cmd_link_o_target, $(OBJS) $(SOBJS))
 
-clean:
-	rm -f $(SOBJS) $(OBJS)
-
-distclean:	clean
-	rm -f $(LIB) core *.bak $(obj).depend
-
 #########################################################################
 
 # defines $(obj).depend target
diff --git a/board/esd/ocrtc/Makefile b/board/esd/ocrtc/Makefile
index f9274b5..3e6a0a0 100644
--- a/board/esd/ocrtc/Makefile
+++ b/board/esd/ocrtc/Makefile
@@ -37,12 +37,6 @@  SOBJS	:= $(addprefix $(obj),$(SOBJS))
 $(LIB):	$(OBJS) $(SOBJS)
 	$(call cmd_link_o_target, $(OBJS))
 
-clean:
-	rm -f $(SOBJS) $(OBJS)
-
-distclean:	clean
-	rm -f $(LIB) core *.bak $(obj).depend
-
 #########################################################################
 
 # defines $(obj).depend target
diff --git a/board/esd/otc570/Makefile b/board/esd/otc570/Makefile
index 87657ff..1819292 100644
--- a/board/esd/otc570/Makefile
+++ b/board/esd/otc570/Makefile
@@ -39,12 +39,6 @@  SOBJS	:= $(addprefix $(obj),$(SOBJS))
 $(LIB):	$(obj).depend $(OBJS) $(SOBJS)
 	$(call cmd_link_o_target, $(OBJS) $(SOBJS))
 
-clean:
-	rm -f $(SOBJS) $(OBJS)
-
-distclean:	clean
-	rm -f $(LIB) core *.bak $(obj).depend
-
 #########################################################################
 
 # defines $(obj).depend target
diff --git a/board/esd/pci405/Makefile b/board/esd/pci405/Makefile
index d551ec9..4095528 100644
--- a/board/esd/pci405/Makefile
+++ b/board/esd/pci405/Makefile
@@ -39,12 +39,6 @@  $(LIB):	$(OBJS) $(SOBJS)
 #	$(call cmd_link_o_target, $(OBJS))
 	$(call cmd_link_o_target, $(OBJS) $(SOBJS))
 
-clean:
-	rm -f $(SOBJS) $(OBJS)
-
-distclean:	clean
-	rm -f $(LIB) core *.bak $(obj).depend
-
 #########################################################################
 
 # defines $(obj).depend target
diff --git a/board/esd/pf5200/Makefile b/board/esd/pf5200/Makefile
index 2f42566..e080501 100644
--- a/board/esd/pf5200/Makefile
+++ b/board/esd/pf5200/Makefile
@@ -44,12 +44,6 @@  SOBJS	:= $(addprefix $(obj),$(SOBJS))
 $(LIB):	$(obj).depend $(OBJS)
 	$(call cmd_link_o_target, $(OBJS))
 
-clean:
-	rm -f $(SOBJS) $(OBJS)
-
-distclean:	clean
-	rm -f $(LIB) core *.bak $(obj).depend
-
 #########################################################################
 
 # defines $(obj).depend target
diff --git a/board/esd/plu405/Makefile b/board/esd/plu405/Makefile
index 401622f..8aacae7 100644
--- a/board/esd/plu405/Makefile
+++ b/board/esd/plu405/Makefile
@@ -39,12 +39,6 @@  SOBJS	:= $(addprefix $(obj),$(SOBJS))
 $(LIB):	$(OBJS) $(SOBJS)
 	$(call cmd_link_o_target, $(OBJS))
 
-clean:
-	rm -f $(SOBJS) $(OBJS)
-
-distclean:	clean
-	rm -f $(LIB) core *.bak $(obj).depend
-
 #########################################################################
 
 # defines $(obj).depend target
diff --git a/board/esd/pmc405/Makefile b/board/esd/pmc405/Makefile
index 36707f4..9156577 100644
--- a/board/esd/pmc405/Makefile
+++ b/board/esd/pmc405/Makefile
@@ -42,12 +42,6 @@  SOBJS	:= $(addprefix $(obj),$(SOBJS))
 $(LIB):	$(OBJS) $(SOBJS)
 	$(call cmd_link_o_target, $(OBJS))
 
-clean:
-	rm -f $(SOBJS) $(OBJS)
-
-distclean:	clean
-	rm -f $(LIB) core *.bak $(obj).depend
-
 #########################################################################
 
 # defines $(obj).depend target
diff --git a/board/esd/pmc405de/Makefile b/board/esd/pmc405de/Makefile
index 2833844..c997a67 100644
--- a/board/esd/pmc405de/Makefile
+++ b/board/esd/pmc405de/Makefile
@@ -40,12 +40,6 @@  SOBJS	:= $(addprefix $(obj),$(SOBJS))
 $(LIB):	$(OBJS) $(SOBJS)
 	$(call cmd_link_o_target, $(OBJS))
 
-clean:
-	rm -f $(SOBJS) $(OBJS)
-
-distclean:	clean
-	rm -f $(LIB) core *.bak $(obj).depend
-
 #########################################################################
 
 # defines $(obj).depend target
diff --git a/board/esd/pmc440/Makefile b/board/esd/pmc440/Makefile
index f640d1e..9aec459 100644
--- a/board/esd/pmc440/Makefile
+++ b/board/esd/pmc440/Makefile
@@ -42,12 +42,6 @@  all:	$(LIB) $(SOBJS)
 $(LIB):	$(OBJS)
 	$(call cmd_link_o_target, $^)
 
-clean:
-	rm -f $(SOBJS) $(OBJS)
-
-distclean:	clean
-	rm -f $(LIB) core *.bak $(obj).depend
-
 #########################################################################
 
 # defines $(obj).depend target
diff --git a/board/esd/vme8349/Makefile b/board/esd/vme8349/Makefile
index 5b926b2..c783394 100644
--- a/board/esd/vme8349/Makefile
+++ b/board/esd/vme8349/Makefile
@@ -38,12 +38,6 @@  SOBJS	:= $(addprefix $(obj),$(SOBJS))
 $(LIB):	$(obj).depend $(OBJS)
 	$(call cmd_link_o_target, $(OBJS))
 
-clean:
-	rm -f $(SOBJS) $(OBJS)
-
-distclean:	clean
-	rm -f $(LIB) core *.bak $(obj).depend
-
 #########################################################################
 
 # defines $(obj).depend target
diff --git a/board/esd/voh405/Makefile b/board/esd/voh405/Makefile
index 401622f..8aacae7 100644
--- a/board/esd/voh405/Makefile
+++ b/board/esd/voh405/Makefile
@@ -39,12 +39,6 @@  SOBJS	:= $(addprefix $(obj),$(SOBJS))
 $(LIB):	$(OBJS) $(SOBJS)
 	$(call cmd_link_o_target, $(OBJS))
 
-clean:
-	rm -f $(SOBJS) $(OBJS)
-
-distclean:	clean
-	rm -f $(LIB) core *.bak $(obj).depend
-
 #########################################################################
 
 # defines $(obj).depend target
diff --git a/board/esd/vom405/Makefile b/board/esd/vom405/Makefile
index d4012b0..4985c1f 100644
--- a/board/esd/vom405/Makefile
+++ b/board/esd/vom405/Makefile
@@ -42,12 +42,6 @@  SOBJS	:= $(addprefix $(obj),$(SOBJS))
 $(LIB):	$(OBJS) $(SOBJS)
 	$(call cmd_link_o_target, $(OBJS))
 
-clean:
-	rm -f $(SOBJS) $(OBJS)
-
-distclean:	clean
-	rm -f $(LIB) core *.bak $(obj).depend
-
 #########################################################################
 
 # defines $(obj).depend target
diff --git a/board/esd/wuh405/Makefile b/board/esd/wuh405/Makefile
index 401622f..8aacae7 100644
--- a/board/esd/wuh405/Makefile
+++ b/board/esd/wuh405/Makefile
@@ -39,12 +39,6 @@  SOBJS	:= $(addprefix $(obj),$(SOBJS))
 $(LIB):	$(OBJS) $(SOBJS)
 	$(call cmd_link_o_target, $(OBJS))
 
-clean:
-	rm -f $(SOBJS) $(OBJS)
-
-distclean:	clean
-	rm -f $(LIB) core *.bak $(obj).depend
-
 #########################################################################
 
 # defines $(obj).depend target
diff --git a/board/espt/Makefile b/board/espt/Makefile
index 4ecef4a..ee3f97e 100644
--- a/board/espt/Makefile
+++ b/board/espt/Makefile
@@ -34,12 +34,6 @@  SOBJS	:= $(addprefix $(obj),$(SOBJS))
 $(LIB):	$(OBJS) $(SOBJS)
 	$(call cmd_link_o_target, $(OBJS) $(SOBJS))
 
-clean:
-	rm -f $(SOBJS) $(OBJS)
-
-distclean:	clean
-	rm -f $(LIB) core *.bak $(obj).depend
-
 #########################################################################
 
 # defines $(obj).depend target
diff --git a/board/eukrea/cpu9260/Makefile b/board/eukrea/cpu9260/Makefile
index 4d02aae..897fe3e 100644
--- a/board/eukrea/cpu9260/Makefile
+++ b/board/eukrea/cpu9260/Makefile
@@ -43,12 +43,6 @@  SOBJS	:= $(addprefix $(obj),$(SOBJS))
 $(LIB):	$(obj).depend $(OBJS) $(SOBJS)
 	$(call cmd_link_o_target, $(OBJS))
 
-clean:
-	rm -f $(SOBJS) $(OBJS)
-
-distclean:	clean
-	rm -f $(LIB) core *.bak $(obj).depend
-
 #########################################################################
 
 # defines $(obj).depend target
diff --git a/board/eukrea/cpuat91/Makefile b/board/eukrea/cpuat91/Makefile
index 1d62b13..c483f16 100644
--- a/board/eukrea/cpuat91/Makefile
+++ b/board/eukrea/cpuat91/Makefile
@@ -34,12 +34,6 @@  SOBJS	:= $(addprefix $(obj),$(SOBJS))
 $(LIB):	$(obj).depend $(OBJS) $(SOBJS)
 	$(call cmd_link_o_target, $(OBJS) $(SOBJS))
 
-clean:
-	rm -f $(SOBJS) $(OBJS)
-
-distclean:	clean
-	rm -f $(LIB) core *.bak $(obj).depend
-
 #########################################################################
 
 # defines $(obj).depend target
diff --git a/board/faraday/a320evb/Makefile b/board/faraday/a320evb/Makefile
index fb540b4..55b6abd 100644
--- a/board/faraday/a320evb/Makefile
+++ b/board/faraday/a320evb/Makefile
@@ -35,12 +35,6 @@  SOBJS	:= $(addprefix $(obj),$(SOBJS))
 $(LIB):	$(obj).depend $(OBJS) $(SOBJS)
 	$(call cmd_link_o_target, $(OBJS) $(SOBJS))
 
-clean:
-	rm -f $(SOBJS) $(OBJS)
-
-distclean:	clean
-	rm -f $(LIB) core *.bak $(obj).depend
-
 #########################################################################
 
 # defines $(obj).depend target
diff --git a/board/freescale/common/Makefile b/board/freescale/common/Makefile
index c47d10d..e2af2b4 100644
--- a/board/freescale/common/Makefile
+++ b/board/freescale/common/Makefile
@@ -59,12 +59,6 @@  SOBJS	:= $(addprefix $(obj),$(SOBJS))
 $(LIB):	$(obj).depend $(OBJS)
 	$(call cmd_link_o_target, $(OBJS))
 
-clean:
-	rm -f $(SOBJS) $(OBJS)
-
-distclean:	clean
-	rm -f $(LIB) core *.bak $(obj).depend
-
 #########################################################################
 
 # defines $(obj).depend target
diff --git a/board/freescale/corenet_ds/Makefile b/board/freescale/corenet_ds/Makefile
index 69e81a4..f60767f 100644
--- a/board/freescale/corenet_ds/Makefile
+++ b/board/freescale/corenet_ds/Makefile
@@ -42,12 +42,6 @@  SOBJS	:= $(addprefix $(obj),$(SOBJS))
 $(LIB):	$(obj).depend $(OBJS) $(SOBJS)
 	$(call cmd_link_o_target, $(OBJS))
 
-clean:
-	rm -f $(OBJS) $(SOBJS)
-
-distclean:	clean
-	rm -f $(LIB) core *.bak .depend
-
 #########################################################################
 
 # defines $(obj).depend target
diff --git a/board/freescale/mpc5121ads/Makefile b/board/freescale/mpc5121ads/Makefile
index cded9eb..44bf6d2 100644
--- a/board/freescale/mpc5121ads/Makefile
+++ b/board/freescale/mpc5121ads/Makefile
@@ -37,12 +37,6 @@  SOBJS	:= $(addprefix $(obj),$(SOBJS))
 $(LIB):	$(obj).depend $(OBJS)
 	$(call cmd_link_o_target, $(OBJS))
 
-clean:
-	rm -f $(SOBJS) $(OBJS)
-
-distclean:	clean
-	rm -f $(LIB) core *.bak $(obj).depend
-
 #########################################################################
 
 # defines $(obj).depend target
diff --git a/board/freescale/mpc7448hpc2/Makefile b/board/freescale/mpc7448hpc2/Makefile
index 5df9d5d..7227db8 100644
--- a/board/freescale/mpc7448hpc2/Makefile
+++ b/board/freescale/mpc7448hpc2/Makefile
@@ -35,13 +35,6 @@  SOBJS	:= $(addprefix $(obj),$(SOBJS))
 $(LIB):	$(obj).depend $(OBJS) $(SOBJS)
 	$(call cmd_link_o_target, $(OBJS) $(SOBJS))
 
-clean:
-	rm -f $(SOBJS) $(OBJS)
-
-.PHONY: distclean
-distclean:	clean
-	rm -f $(LIB) core *.bak $(obj).depend
-
 #########################################################################
 
 # defines $(obj).depend target
diff --git a/board/freescale/mpc8260ads/Makefile b/board/freescale/mpc8260ads/Makefile
index 74f5b85..9439e08 100644
--- a/board/freescale/mpc8260ads/Makefile
+++ b/board/freescale/mpc8260ads/Makefile
@@ -35,12 +35,6 @@  SOBJS	:= $(addprefix $(obj),$(SOBJS))
 $(LIB):	$(obj).depend $(OBJS)
 	$(call cmd_link_o_target, $(OBJS))
 
-clean:
-	rm -f $(SOBJS) $(OBJS)
-
-distclean:	clean
-	rm -f $(LIB) core *.bak $(obj).depend
-
 #########################################################################
 
 # defines $(obj).depend target
diff --git a/board/freescale/mpc8266ads/Makefile b/board/freescale/mpc8266ads/Makefile
index f4938c4..88b69a4 100644
--- a/board/freescale/mpc8266ads/Makefile
+++ b/board/freescale/mpc8266ads/Makefile
@@ -34,12 +34,6 @@  SOBJS	:= $(addprefix $(obj),$(SOBJS))
 $(LIB):	$(obj).depend $(OBJS)
 	$(call cmd_link_o_target, $(OBJS))
 
-clean:
-	rm -f $(SOBJS) $(OBJS)
-
-distclean:	clean
-	rm -f $(LIB) core *.bak $(obj).depend
-
 #########################################################################
 
 # defines $(obj).depend target
diff --git a/board/freescale/mpc8308rdb/Makefile b/board/freescale/mpc8308rdb/Makefile
index 241a557..b371ea0 100644
--- a/board/freescale/mpc8308rdb/Makefile
+++ b/board/freescale/mpc8308rdb/Makefile
@@ -36,12 +36,6 @@  SOBJS	:= $(addprefix $(obj),$(SOBJS))
 $(LIB):	$(obj).depend $(OBJS)
 	$(call cmd_link_o_target, $(OBJS))
 
-clean:
-	rm -f $(SOBJS) $(OBJS)
-
-distclean:	clean
-	rm -f $(LIB) core *.bak $(obj).depend
-
 #########################################################################
 
 # defines $(obj).depend target
diff --git a/board/freescale/mpc8313erdb/Makefile b/board/freescale/mpc8313erdb/Makefile
index f18aded..2c9ad50 100644
--- a/board/freescale/mpc8313erdb/Makefile
+++ b/board/freescale/mpc8313erdb/Makefile
@@ -34,12 +34,6 @@  SOBJS	:= $(addprefix $(obj),$(SOBJS))
 $(LIB):	$(obj).depend $(OBJS)
 	$(call cmd_link_o_target, $(OBJS))
 
-clean:
-	rm -f $(SOBJS) $(OBJS)
-
-distclean:	clean
-	rm -f $(LIB) core *.bak $(obj).depend
-
 #########################################################################
 
 # defines $(obj).depend target
diff --git a/board/freescale/mpc8315erdb/Makefile b/board/freescale/mpc8315erdb/Makefile
index f18aded..2c9ad50 100644
--- a/board/freescale/mpc8315erdb/Makefile
+++ b/board/freescale/mpc8315erdb/Makefile
@@ -34,12 +34,6 @@  SOBJS	:= $(addprefix $(obj),$(SOBJS))
 $(LIB):	$(obj).depend $(OBJS)
 	$(call cmd_link_o_target, $(OBJS))
 
-clean:
-	rm -f $(SOBJS) $(OBJS)
-
-distclean:	clean
-	rm -f $(LIB) core *.bak $(obj).depend
-
 #########################################################################
 
 # defines $(obj).depend target
diff --git a/board/freescale/mpc8323erdb/Makefile b/board/freescale/mpc8323erdb/Makefile
index 4a1b249..2f79b87 100644
--- a/board/freescale/mpc8323erdb/Makefile
+++ b/board/freescale/mpc8323erdb/Makefile
@@ -34,12 +34,6 @@  SOBJS	:= $(addprefix $(obj),$(SOBJS))
 $(LIB):	$(obj).depend $(OBJS)
 	$(call cmd_link_o_target, $(OBJS))
 
-clean:
-	rm -f $(SOBJS) $(OBJS)
-
-distclean:	clean
-	rm -f $(LIB) core *.bak $(obj).depend
-
 #########################################################################
 
 # defines $(obj).depend target
diff --git a/board/freescale/mpc832xemds/Makefile b/board/freescale/mpc832xemds/Makefile
index 4f76eab..b83a2c7 100644
--- a/board/freescale/mpc832xemds/Makefile
+++ b/board/freescale/mpc832xemds/Makefile
@@ -36,12 +36,6 @@  SOBJS	:= $(addprefix $(obj),$(SOBJS))
 $(LIB):	$(obj).depend $(OBJS)
 	$(call cmd_link_o_target, $(OBJS))
 
-clean:
-	rm -f $(SOBJS) $(OBJS)
-
-distclean:	clean
-	rm -f $(LIB) core *.bak $(obj).depend
-
 #########################################################################
 
 # defines $(obj).depend target
diff --git a/board/freescale/mpc8349emds/Makefile b/board/freescale/mpc8349emds/Makefile
index 4f76eab..b83a2c7 100644
--- a/board/freescale/mpc8349emds/Makefile
+++ b/board/freescale/mpc8349emds/Makefile
@@ -36,12 +36,6 @@  SOBJS	:= $(addprefix $(obj),$(SOBJS))
 $(LIB):	$(obj).depend $(OBJS)
 	$(call cmd_link_o_target, $(OBJS))
 
-clean:
-	rm -f $(SOBJS) $(OBJS)
-
-distclean:	clean
-	rm -f $(LIB) core *.bak $(obj).depend
-
 #########################################################################
 
 # defines $(obj).depend target
diff --git a/board/freescale/mpc8349itx/Makefile b/board/freescale/mpc8349itx/Makefile
index f431316..5f92595 100644
--- a/board/freescale/mpc8349itx/Makefile
+++ b/board/freescale/mpc8349itx/Makefile
@@ -35,12 +35,6 @@  SOBJS	:= $(addprefix $(obj),$(SOBJS))
 $(LIB):	$(obj).depend $(OBJS)
 	$(call cmd_link_o_target, $(OBJS))
 
-clean:
-	rm -f $(SOBJS) $(OBJS)
-
-distclean:	clean
-	rm -f $(LIB) core *.bak $(obj).depend
-
 #########################################################################
 
 include $(SRCTREE)/rules.mk
diff --git a/board/freescale/mpc8360emds/Makefile b/board/freescale/mpc8360emds/Makefile
index 4f76eab..b83a2c7 100644
--- a/board/freescale/mpc8360emds/Makefile
+++ b/board/freescale/mpc8360emds/Makefile
@@ -36,12 +36,6 @@  SOBJS	:= $(addprefix $(obj),$(SOBJS))
 $(LIB):	$(obj).depend $(OBJS)
 	$(call cmd_link_o_target, $(OBJS))
 
-clean:
-	rm -f $(SOBJS) $(OBJS)
-
-distclean:	clean
-	rm -f $(LIB) core *.bak $(obj).depend
-
 #########################################################################
 
 # defines $(obj).depend target
diff --git a/board/freescale/mpc8360erdk/Makefile b/board/freescale/mpc8360erdk/Makefile
index 107bdc3..215abf8 100644
--- a/board/freescale/mpc8360erdk/Makefile
+++ b/board/freescale/mpc8360erdk/Makefile
@@ -36,12 +36,6 @@  SOBJS	:= $(addprefix $(obj),$(SOBJS))
 $(LIB):	$(obj).depend $(OBJS)
 	$(call cmd_link_o_target, $(OBJS))
 
-clean:
-	rm -f $(SOBJS) $(OBJS)
-
-distclean:	clean
-	rm -f $(LIB) core *.bak $(obj).depend
-
 #########################################################################
 
 # defines $(obj).depend target
diff --git a/board/freescale/mpc837xemds/Makefile b/board/freescale/mpc837xemds/Makefile
index 4f76eab..b83a2c7 100644
--- a/board/freescale/mpc837xemds/Makefile
+++ b/board/freescale/mpc837xemds/Makefile
@@ -36,12 +36,6 @@  SOBJS	:= $(addprefix $(obj),$(SOBJS))
 $(LIB):	$(obj).depend $(OBJS)
 	$(call cmd_link_o_target, $(OBJS))
 
-clean:
-	rm -f $(SOBJS) $(OBJS)
-
-distclean:	clean
-	rm -f $(LIB) core *.bak $(obj).depend
-
 #########################################################################
 
 # defines $(obj).depend target
diff --git a/board/freescale/mpc837xerdb/Makefile b/board/freescale/mpc837xerdb/Makefile
index 4f76eab..b83a2c7 100644
--- a/board/freescale/mpc837xerdb/Makefile
+++ b/board/freescale/mpc837xerdb/Makefile
@@ -36,12 +36,6 @@  SOBJS	:= $(addprefix $(obj),$(SOBJS))
 $(LIB):	$(obj).depend $(OBJS)
 	$(call cmd_link_o_target, $(OBJS))
 
-clean:
-	rm -f $(SOBJS) $(OBJS)
-
-distclean:	clean
-	rm -f $(LIB) core *.bak $(obj).depend
-
 #########################################################################
 
 # defines $(obj).depend target
diff --git a/board/freescale/mpc8536ds/Makefile b/board/freescale/mpc8536ds/Makefile
index 2ee7b43..9cdcf7c 100644
--- a/board/freescale/mpc8536ds/Makefile
+++ b/board/freescale/mpc8536ds/Makefile
@@ -38,12 +38,6 @@  SOBJS	:= $(addprefix $(obj),$(SOBJS))
 $(LIB):	$(obj).depend $(OBJS) $(SOBJS)
 	$(call cmd_link_o_target, $(OBJS))
 
-clean:
-	rm -f $(OBJS) $(SOBJS)
-
-distclean:	clean
-	rm -f $(LIB) core *.bak .depend
-
 #########################################################################
 
 # defines $(obj).depend target
diff --git a/board/freescale/mpc8540ads/Makefile b/board/freescale/mpc8540ads/Makefile
index b94237e..8561348 100644
--- a/board/freescale/mpc8540ads/Makefile
+++ b/board/freescale/mpc8540ads/Makefile
@@ -37,12 +37,6 @@  SOBJS	:= $(addprefix $(obj),$(SOBJS-y))
 $(LIB):	$(obj).depend $(OBJS) $(SOBJS)
 	$(call cmd_link_o_target, $(OBJS))
 
-clean:
-	rm -f $(OBJS) $(SOBJS)
-
-distclean:	clean
-	rm -f $(LIB) core *.bak $(obj).depend
-
 #########################################################################
 
 # defines $(obj).depend target
diff --git a/board/freescale/mpc8541cds/Makefile b/board/freescale/mpc8541cds/Makefile
index b50d7fd..ff2e266 100644
--- a/board/freescale/mpc8541cds/Makefile
+++ b/board/freescale/mpc8541cds/Makefile
@@ -38,12 +38,6 @@  SOBJS	:= $(addprefix $(obj),$(SOBJS-y))
 $(LIB):	$(obj).depend $(OBJS) $(SOBJS)
 	$(call cmd_link_o_target, $(OBJS))
 
-clean:
-	rm -f $(OBJS) $(SOBJS)
-
-distclean:	clean
-	rm -f $(LIB) core *.bak $(obj).depend
-
 #########################################################################
 
 # defines $(obj).depend target
diff --git a/board/freescale/mpc8544ds/Makefile b/board/freescale/mpc8544ds/Makefile
index 8684f5c..e20e953 100644
--- a/board/freescale/mpc8544ds/Makefile
+++ b/board/freescale/mpc8544ds/Makefile
@@ -38,12 +38,6 @@  SOBJS	:= $(addprefix $(obj),$(SOBJS))
 $(LIB):	$(obj).depend $(OBJS) $(SOBJS)
 	$(call cmd_link_o_target, $(OBJS))
 
-clean:
-	rm -f $(OBJS) $(SOBJS)
-
-distclean:	clean
-	rm -f $(LIB) core *.bak $(obj).depend
-
 #########################################################################
 
 # defines $(obj).depend target
diff --git a/board/freescale/mpc8548cds/Makefile b/board/freescale/mpc8548cds/Makefile
index b50d7fd..ff2e266 100644
--- a/board/freescale/mpc8548cds/Makefile
+++ b/board/freescale/mpc8548cds/Makefile
@@ -38,12 +38,6 @@  SOBJS	:= $(addprefix $(obj),$(SOBJS-y))
 $(LIB):	$(obj).depend $(OBJS) $(SOBJS)
 	$(call cmd_link_o_target, $(OBJS))
 
-clean:
-	rm -f $(OBJS) $(SOBJS)
-
-distclean:	clean
-	rm -f $(LIB) core *.bak $(obj).depend
-
 #########################################################################
 
 # defines $(obj).depend target
diff --git a/board/freescale/mpc8555cds/Makefile b/board/freescale/mpc8555cds/Makefile
index b50d7fd..ff2e266 100644
--- a/board/freescale/mpc8555cds/Makefile
+++ b/board/freescale/mpc8555cds/Makefile
@@ -38,12 +38,6 @@  SOBJS	:= $(addprefix $(obj),$(SOBJS-y))
 $(LIB):	$(obj).depend $(OBJS) $(SOBJS)
 	$(call cmd_link_o_target, $(OBJS))
 
-clean:
-	rm -f $(OBJS) $(SOBJS)
-
-distclean:	clean
-	rm -f $(LIB) core *.bak $(obj).depend
-
 #########################################################################
 
 # defines $(obj).depend target
diff --git a/board/freescale/mpc8560ads/Makefile b/board/freescale/mpc8560ads/Makefile
index 9fce3be..8113ed3 100644
--- a/board/freescale/mpc8560ads/Makefile
+++ b/board/freescale/mpc8560ads/Makefile
@@ -37,12 +37,6 @@  SOBJS	:= $(addprefix $(obj),$(SOBJS-y))
 $(LIB):	$(obj).depend $(OBJS) $(SOBJS)
 	$(call cmd_link_o_target, $(OBJS))
 
-clean:
-	rm -f $(OBJS) $(SOBJS)
-
-distclean:	clean
-	rm -f $(LIB) core *.bak $(obj).depend
-
 #########################################################################
 
 # defines $(obj).depend target
diff --git a/board/freescale/mpc8568mds/Makefile b/board/freescale/mpc8568mds/Makefile
index eda359f..d0b7b1b 100644
--- a/board/freescale/mpc8568mds/Makefile
+++ b/board/freescale/mpc8568mds/Makefile
@@ -39,12 +39,6 @@  SOBJS	:= $(addprefix $(obj),$(SOBJS-y))
 $(LIB):	$(obj).depend $(OBJS) $(SOBJS)
 	$(call cmd_link_o_target, $(OBJS))
 
-clean:
-	rm -f $(OBJS) $(SOBJS)
-
-distclean:	clean
-	rm -f $(LIB) core *.bak $(obj).depend
-
 #########################################################################
 
 # defines $(obj).depend target
diff --git a/board/freescale/mpc8569mds/Makefile b/board/freescale/mpc8569mds/Makefile
index 1d49757..e6b9827 100644
--- a/board/freescale/mpc8569mds/Makefile
+++ b/board/freescale/mpc8569mds/Makefile
@@ -39,12 +39,6 @@  SOBJS	:= $(addprefix $(obj),$(SOBJS-y))
 $(LIB):	$(obj).depend $(OBJS) $(SOBJS)
 	$(call cmd_link_o_target, $(OBJS))
 
-clean:
-	rm -f $(OBJS) $(SOBJS)
-
-distclean:	clean
-	rm -f $(LIB) core *.bak $(obj).depend
-
 #########################################################################
 
 # defines $(obj).depend target
diff --git a/board/freescale/mpc8572ds/Makefile b/board/freescale/mpc8572ds/Makefile
index 5b9fa10..e20e953 100644
--- a/board/freescale/mpc8572ds/Makefile
+++ b/board/freescale/mpc8572ds/Makefile
@@ -38,12 +38,6 @@  SOBJS	:= $(addprefix $(obj),$(SOBJS))
 $(LIB):	$(obj).depend $(OBJS) $(SOBJS)
 	$(call cmd_link_o_target, $(OBJS))
 
-clean:
-	rm -f $(OBJS) $(SOBJS)
-
-distclean:	clean
-	rm -f $(LIB) core *.bak .depend
-
 #########################################################################
 
 # defines $(obj).depend target
diff --git a/board/freescale/mpc8610hpcd/Makefile b/board/freescale/mpc8610hpcd/Makefile
index e91c2c5..592e377 100644
--- a/board/freescale/mpc8610hpcd/Makefile
+++ b/board/freescale/mpc8610hpcd/Makefile
@@ -36,13 +36,6 @@  SOBJS	:= $(addprefix $(obj),$(SOBJS))
 $(LIB):	$(obj).depend $(OBJS) $(SOBJS)
 	$(call cmd_link_o_target, $(OBJS))
 
-clean:
-	rm -f $(OBJS) $(SOBJS)
-
-.PHONY: distclean
-distclean:	clean
-	rm -f $(LIB) core *.bak $(obj).depend
-
 #########################################################################
 
 # defines $(obj).depend target
diff --git a/board/freescale/mpc8641hpcn/Makefile b/board/freescale/mpc8641hpcn/Makefile
index 433c132..caba9b9 100644
--- a/board/freescale/mpc8641hpcn/Makefile
+++ b/board/freescale/mpc8641hpcn/Makefile
@@ -36,13 +36,6 @@  SOBJS	:= $(addprefix $(obj),$(SOBJS))
 $(LIB):	$(obj).depend $(OBJS) $(SOBJS)
 	$(call cmd_link_o_target, $(OBJS))
 
-clean:
-	rm -f $(OBJS) $(SOBJS)
-
-.PHONY: distclean
-distclean:	clean
-	rm -f $(LIB) core *.bak $(obj).depend
-
 #########################################################################
 
 # defines $(obj).depend target
diff --git a/board/freescale/mx31ads/Makefile b/board/freescale/mx31ads/Makefile
index be4d61a..dd4c1d1 100644
--- a/board/freescale/mx31ads/Makefile
+++ b/board/freescale/mx31ads/Makefile
@@ -31,12 +31,6 @@  SOBJS	:= $(addprefix $(obj),$(SOBJS))
 $(LIB):	$(obj).depend $(OBJS) $(SOBJS)
 	$(call cmd_link_o_target, $(OBJS) $(SOBJS))
 
-clean:
-	rm -f $(SOBJS) $(OBJS)
-
-distclean:	clean
-	rm -f $(LIB) core *.bak $(obj).depend
-
 #########################################################################
 
 # defines $(obj).depend target
diff --git a/board/freescale/mx31pdk/Makefile b/board/freescale/mx31pdk/Makefile
index 0287885..5b7cafd 100644
--- a/board/freescale/mx31pdk/Makefile
+++ b/board/freescale/mx31pdk/Makefile
@@ -36,12 +36,6 @@  SOBJS	:= $(addprefix $(obj),$(SOBJS))
 $(LIB):	$(obj).depend $(OBJS) $(SOBJS)
 	$(call cmd_link_o_target, $(OBJS) $(SOBJS))
 
-clean:
-	rm -f $(SOBJS) $(OBJS)
-
-distclean:	clean
-	rm -f $(LIB) core *.bak $(obj).depend
-
 #########################################################################
 
 # defines $(obj).depend target
diff --git a/board/freescale/mx35pdk/Makefile b/board/freescale/mx35pdk/Makefile
index b4a60d6..678c0ff 100644
--- a/board/freescale/mx35pdk/Makefile
+++ b/board/freescale/mx35pdk/Makefile
@@ -33,12 +33,6 @@  SOBJS	:= $(addprefix $(obj),$(SOBJS))
 $(LIB):	$(obj).depend $(OBJS) $(SOBJS)
 	$(call cmd_link_o_target, $(OBJS) $(SOBJS))
 
-clean:
-	rm -f $(SOBJS) $(OBJS)
-
-distclean:	clean
-	rm -f $(LIB) core *.bak .depend
-
 #########################################################################
 
 # defines $(obj).depend target
diff --git a/board/freescale/mx51evk/Makefile b/board/freescale/mx51evk/Makefile
index 3344c28..470588e 100644
--- a/board/freescale/mx51evk/Makefile
+++ b/board/freescale/mx51evk/Makefile
@@ -32,12 +32,6 @@  SOBJS	:= $(addprefix $(obj),$(SOBJS))
 $(LIB):	$(obj).depend $(OBJS) $(SOBJS)
 	$(call cmd_link_o_target, $(OBJS) $(SOBJS))
 
-clean:
-	rm -f $(SOBJS) $(OBJS)
-
-distclean:	clean
-	rm -f $(LIB) core *.bak .depend
-
 #########################################################################
 
 # defines $(obj).depend target
diff --git a/board/freescale/mx53ard/Makefile b/board/freescale/mx53ard/Makefile
index c48ece8..eac4b2a 100644
--- a/board/freescale/mx53ard/Makefile
+++ b/board/freescale/mx53ard/Makefile
@@ -32,12 +32,6 @@  SOBJS	:= $(addprefix $(obj),$(SOBJS))
 $(LIB):	$(obj).depend $(OBJS) $(SOBJS)
 	$(call cmd_link_o_target, $(OBJS) $(SOBJS))
 
-clean:
-	rm -f $(SOBJS) $(OBJS)
-
-distclean:	clean
-	rm -f $(LIB) core *.bak .depend
-
 #########################################################################
 
 # defines $(obj).depend target
diff --git a/board/freescale/mx53evk/Makefile b/board/freescale/mx53evk/Makefile
index 6b820f4..b7f92b3 100644
--- a/board/freescale/mx53evk/Makefile
+++ b/board/freescale/mx53evk/Makefile
@@ -32,12 +32,6 @@  SOBJS	:= $(addprefix $(obj),$(SOBJS))
 $(LIB):	$(obj).depend $(OBJS) $(SOBJS)
 	$(call cmd_link_o_target, $(OBJS) $(SOBJS))
 
-clean:
-	rm -f $(SOBJS) $(OBJS)
-
-distclean:	clean
-	rm -f $(LIB) core *.bak .depend
-
 #########################################################################
 
 # defines $(obj).depend target
diff --git a/board/freescale/mx53loco/Makefile b/board/freescale/mx53loco/Makefile
index 2088a48..a6ea939 100644
--- a/board/freescale/mx53loco/Makefile
+++ b/board/freescale/mx53loco/Makefile
@@ -31,12 +31,6 @@  SOBJS	:= $(addprefix $(obj),$(SOBJS))
 $(LIB):	$(obj).depend $(OBJS) $(SOBJS)
 	$(call cmd_link_o_target, $(OBJS) $(SOBJS))
 
-clean:
-	rm -f $(SOBJS) $(OBJS)
-
-distclean:	clean
-	rm -f $(LIB) core *.bak .depend
-
 #########################################################################
 
 # defines $(obj).depend target
diff --git a/board/freescale/mx53smd/Makefile b/board/freescale/mx53smd/Makefile
index ee60f34..ed8e473 100644
--- a/board/freescale/mx53smd/Makefile
+++ b/board/freescale/mx53smd/Makefile
@@ -32,12 +32,6 @@  SOBJS	:= $(addprefix $(obj),$(SOBJS))
 $(LIB):	$(obj).depend $(OBJS) $(SOBJS)
 	$(call cmd_link_o_target, $(OBJS) $(SOBJS))
 
-clean:
-	rm -f $(SOBJS) $(OBJS)
-
-distclean:	clean
-	rm -f $(LIB) core *.bak .depend
-
 #########################################################################
 
 # defines $(obj).depend target
diff --git a/board/freescale/p1022ds/Makefile b/board/freescale/p1022ds/Makefile
index 30d1740..c6d3418 100644
--- a/board/freescale/p1022ds/Makefile
+++ b/board/freescale/p1022ds/Makefile
@@ -25,12 +25,6 @@  SOBJS	:= $(addprefix $(obj),$(SOBJS))
 $(LIB):	$(obj).depend $(OBJS) $(SOBJS)
 	$(call cmd_link_o_target, $(OBJS))
 
-clean:
-	rm -f $(OBJS) $(SOBJS)
-
-distclean:	clean
-	rm -f $(LIB) core *.bak .depend
-
 #########################################################################
 
 # defines $(obj).depend target
diff --git a/board/freescale/p1023rds/Makefile b/board/freescale/p1023rds/Makefile
index bf87580..f62583c 100644
--- a/board/freescale/p1023rds/Makefile
+++ b/board/freescale/p1023rds/Makefile
@@ -22,12 +22,6 @@  SOBJS	:= $(addprefix $(obj),$(SOBJS))
 $(LIB):	$(obj).depend $(OBJS) $(SOBJS)
 	$(AR) $(ARFLAGS) $@ $(OBJS)
 
-clean:
-	rm -f $(OBJS) $(SOBJS)
-
-distclean:	clean
-	rm -f $(LIB) core *.bak .depend
-
 #########################################################################
 
 # defines $(obj).depend target
diff --git a/board/freescale/p1_p2_rdb/Makefile b/board/freescale/p1_p2_rdb/Makefile
index ba7e5df..fe1e1d6 100644
--- a/board/freescale/p1_p2_rdb/Makefile
+++ b/board/freescale/p1_p2_rdb/Makefile
@@ -37,12 +37,6 @@  SOBJS	:= $(addprefix $(obj),$(SOBJS))
 $(LIB):	$(obj).depend $(OBJS) $(SOBJS)
 	$(call cmd_link_o_target, $(OBJS))
 
-clean:
-	rm -f $(OBJS) $(SOBJS)
-
-distclean:	clean
-	rm -f $(LIB) core *.bak .depend
-
 #########################################################################
 
 # defines $(obj).depend target
diff --git a/board/freescale/p2020ds/Makefile b/board/freescale/p2020ds/Makefile
index 3306e44..03b21c9 100644
--- a/board/freescale/p2020ds/Makefile
+++ b/board/freescale/p2020ds/Makefile
@@ -38,12 +38,6 @@  SOBJS	:= $(addprefix $(obj),$(SOBJS))
 $(LIB):	$(obj).depend $(OBJS) $(SOBJS)
 	$(call cmd_link_o_target, $(OBJS))
 
-clean:
-	rm -f $(OBJS) $(SOBJS)
-
-distclean:	clean
-	rm -f $(LIB) core *.bak .depend
-
 #########################################################################
 
 # defines $(obj).depend target
diff --git a/board/freescale/p2041rdb/Makefile b/board/freescale/p2041rdb/Makefile
index 65f348f..2d8d914 100644
--- a/board/freescale/p2041rdb/Makefile
+++ b/board/freescale/p2041rdb/Makefile
@@ -40,12 +40,6 @@  SOBJS	:= $(addprefix $(obj),$(SOBJS))
 $(LIB):	$(obj).depend $(OBJS) $(SOBJS)
 	$(call cmd_link_o_target, $(OBJS))
 
-clean:
-	rm -f $(OBJS) $(SOBJS)
-
-distclean:	clean
-	rm -f $(LIB) core *.bak .depend
-
 #########################################################################
 
 # defines $(obj).depend target
diff --git a/board/funkwerk/vovpn-gw/Makefile b/board/funkwerk/vovpn-gw/Makefile
index 91d4d35..b45ce86 100644
--- a/board/funkwerk/vovpn-gw/Makefile
+++ b/board/funkwerk/vovpn-gw/Makefile
@@ -34,12 +34,6 @@  SOBJS	:= $(addprefix $(obj),$(SOBJS))
 $(LIB):	$(obj).depend $(OBJS)
 	$(call cmd_link_o_target, $(OBJS))
 
-clean:
-	rm -f $(SOBJS) $(OBJS)
-
-distclean:	clean
-	rm -f $(LIB) core *.bak $(obj).depend
-
 #########################################################################
 
 # defines $(obj).depend target
diff --git a/board/g2000/Makefile b/board/g2000/Makefile
index 0f53340..c9ec62d 100644
--- a/board/g2000/Makefile
+++ b/board/g2000/Makefile
@@ -34,12 +34,6 @@  SOBJS	:= $(addprefix $(obj),$(SOBJS))
 $(LIB):	$(OBJS) $(SOBJS)
 	$(call cmd_link_o_target, $(OBJS))
 
-clean:
-	rm -f $(SOBJS) $(OBJS)
-
-distclean:	clean
-	rm -f $(LIB) core *.bak $(obj).depend
-
 #########################################################################
 
 # defines $(obj).depend target
diff --git a/board/gaisler/gr_cpci_ax2000/Makefile b/board/gaisler/gr_cpci_ax2000/Makefile
index 66d5a38..f0bd33e 100644
--- a/board/gaisler/gr_cpci_ax2000/Makefile
+++ b/board/gaisler/gr_cpci_ax2000/Makefile
@@ -36,12 +36,6 @@  SOBJS	:= $(addprefix $(obj),$(SOBJS))
 $(LIB):	$(obj).depend $(OBJS)
 	$(call cmd_link_o_target, $(OBJS))
 
-clean:
-	rm -f $(SOBJS) $(OBJS)
-
-distclean:	clean
-	rm -f $(LIB) core *.bak $(obj).depend
-
 #########################################################################
 
 # defines $(obj).depend target
diff --git a/board/gaisler/gr_ep2s60/Makefile b/board/gaisler/gr_ep2s60/Makefile
index 66d5a38..f0bd33e 100644
--- a/board/gaisler/gr_ep2s60/Makefile
+++ b/board/gaisler/gr_ep2s60/Makefile
@@ -36,12 +36,6 @@  SOBJS	:= $(addprefix $(obj),$(SOBJS))
 $(LIB):	$(obj).depend $(OBJS)
 	$(call cmd_link_o_target, $(OBJS))
 
-clean:
-	rm -f $(SOBJS) $(OBJS)
-
-distclean:	clean
-	rm -f $(LIB) core *.bak $(obj).depend
-
 #########################################################################
 
 # defines $(obj).depend target
diff --git a/board/gaisler/gr_xc3s_1500/Makefile b/board/gaisler/gr_xc3s_1500/Makefile
index 66d5a38..f0bd33e 100644
--- a/board/gaisler/gr_xc3s_1500/Makefile
+++ b/board/gaisler/gr_xc3s_1500/Makefile
@@ -36,12 +36,6 @@  SOBJS	:= $(addprefix $(obj),$(SOBJS))
 $(LIB):	$(obj).depend $(OBJS)
 	$(call cmd_link_o_target, $(OBJS))
 
-clean:
-	rm -f $(SOBJS) $(OBJS)
-
-distclean:	clean
-	rm -f $(LIB) core *.bak $(obj).depend
-
 #########################################################################
 
 # defines $(obj).depend target
diff --git a/board/gaisler/grsim/Makefile b/board/gaisler/grsim/Makefile
index a567c76..67d3dd2 100644
--- a/board/gaisler/grsim/Makefile
+++ b/board/gaisler/grsim/Makefile
@@ -34,12 +34,6 @@  SOBJS	:= $(addprefix $(obj),$(SOBJS))
 $(LIB):	$(obj).depend $(OBJS)
 	$(call cmd_link_o_target, $(OBJS))
 
-clean:
-	rm -f $(SOBJS) $(OBJS)
-
-distclean:	clean
-	rm -f $(LIB) core *.bak $(obj).depend
-
 #########################################################################
 
 # defines $(obj).depend target
diff --git a/board/gaisler/grsim_leon2/Makefile b/board/gaisler/grsim_leon2/Makefile
index a567c76..67d3dd2 100644
--- a/board/gaisler/grsim_leon2/Makefile
+++ b/board/gaisler/grsim_leon2/Makefile
@@ -34,12 +34,6 @@  SOBJS	:= $(addprefix $(obj),$(SOBJS))
 $(LIB):	$(obj).depend $(OBJS)
 	$(call cmd_link_o_target, $(OBJS))
 
-clean:
-	rm -f $(SOBJS) $(OBJS)
-
-distclean:	clean
-	rm -f $(LIB) core *.bak $(obj).depend
-
 #########################################################################
 
 # defines $(obj).depend target
diff --git a/board/galaxy5200/Makefile b/board/galaxy5200/Makefile
index f5d88bb..5af7fa9 100644
--- a/board/galaxy5200/Makefile
+++ b/board/galaxy5200/Makefile
@@ -34,12 +34,6 @@  SOBJS	:= $(addprefix $(obj),$(SOBJS))
 $(LIB):	$(obj).depend $(OBJS)
 	$(call cmd_link_o_target, $(OBJS))
 
-clean:
-	rm -f $(SOBJS) $(OBJS)
-
-distclean:	clean
-	rm -f $(LIB) core *.bak $(obj).depend
-
 #########################################################################
 
 # defines $(obj).depend target
diff --git a/board/gdsys/405ep/Makefile b/board/gdsys/405ep/Makefile
index 169418c..feb5cec 100644
--- a/board/gdsys/405ep/Makefile
+++ b/board/gdsys/405ep/Makefile
@@ -39,12 +39,6 @@  SOBJS	:= $(addprefix $(obj),$(SOBJS))
 $(LIB):	$(OBJS) $(SOBJS)
 	$(call cmd_link_o_target, $(OBJS) $(SOBJS))
 
-clean:
-	rm -f $(SOBJS) $(OBJS)
-
-distclean:	clean
-	rm -f $(LIB) core *.bak $(obj).depend
-
 #########################################################################
 
 # defines $(obj).depend target
diff --git a/board/gdsys/common/Makefile b/board/gdsys/common/Makefile
index 4c7fc99..2868cc8 100644
--- a/board/gdsys/common/Makefile
+++ b/board/gdsys/common/Makefile
@@ -43,12 +43,6 @@  SOBJS	:= $(addprefix $(obj),$(SOBJS))
 $(LIB):	$(OBJS) $(SOBJS)
 	$(call cmd_link_o_target, $(OBJS) $(SOBJS))
 
-clean:
-	rm -f $(SOBJS) $(OBJS)
-
-distclean:	clean
-	rm -f $(LIB) core *.bak $(obj).depend
-
 #########################################################################
 
 # defines $(obj).depend target
diff --git a/board/gdsys/dlvision/Makefile b/board/gdsys/dlvision/Makefile
index 1c3dadb..dc5b5b8 100644
--- a/board/gdsys/dlvision/Makefile
+++ b/board/gdsys/dlvision/Makefile
@@ -35,12 +35,6 @@  SOBJS	:= $(addprefix $(obj),$(SOBJS))
 $(LIB):	$(OBJS) $(SOBJS)
 	$(call cmd_link_o_target, $(OBJS) $(SOBJS))
 
-clean:
-	rm -f $(SOBJS) $(OBJS)
-
-distclean:	clean
-	rm -f $(LIB) core *.bak $(obj).depend
-
 #########################################################################
 
 # defines $(obj).depend target
diff --git a/board/gdsys/gdppc440etx/Makefile b/board/gdsys/gdppc440etx/Makefile
index 5b0ffc2..905ca7a 100644
--- a/board/gdsys/gdppc440etx/Makefile
+++ b/board/gdsys/gdppc440etx/Makefile
@@ -35,12 +35,6 @@  SOBJS	:= $(addprefix $(obj),$(SOBJS))
 $(LIB):	$(OBJS) $(SOBJS)
 	$(call cmd_link_o_target, $(OBJS))
 
-clean:
-	rm -f $(SOBJS) $(OBJS)
-
-distclean:	clean
-	rm -f $(LIB) core *.bak $(obj).depend
-
 #########################################################################
 
 # defines $(obj).depend target
diff --git a/board/gdsys/intip/Makefile b/board/gdsys/intip/Makefile
index 4d87ea9..d2c9dd4 100644
--- a/board/gdsys/intip/Makefile
+++ b/board/gdsys/intip/Makefile
@@ -39,12 +39,6 @@  all:	$(LIB) $(SOBJS)
 $(LIB):	$(OBJS)
 	$(call cmd_link_o_target, $^)
 
-clean:
-	rm -f $(SOBJS) $(OBJS)
-
-distclean:	clean
-	rm -f $(LIB) core *.bak $(obj).depend
-
 #########################################################################
 
 # defines $(obj).depend target
diff --git a/board/gdsys/neo/Makefile b/board/gdsys/neo/Makefile
index 1c3dadb..dc5b5b8 100644
--- a/board/gdsys/neo/Makefile
+++ b/board/gdsys/neo/Makefile
@@ -35,12 +35,6 @@  SOBJS	:= $(addprefix $(obj),$(SOBJS))
 $(LIB):	$(OBJS) $(SOBJS)
 	$(call cmd_link_o_target, $(OBJS) $(SOBJS))
 
-clean:
-	rm -f $(SOBJS) $(OBJS)
-
-distclean:	clean
-	rm -f $(LIB) core *.bak $(obj).depend
-
 #########################################################################
 
 # defines $(obj).depend target
diff --git a/board/gw8260/Makefile b/board/gw8260/Makefile
index 82a8068..5b62b46 100644
--- a/board/gw8260/Makefile
+++ b/board/gw8260/Makefile
@@ -35,12 +35,6 @@  SOBJS	:= $(addprefix $(obj),$(SOBJS))
 $(LIB):	$(obj).depend $(OBJS)
 	$(call cmd_link_o_target, $(OBJS))
 
-clean:
-	rm -f $(SOBJS) $(OBJS)
-
-distclean:	clean
-	rm -f $(LIB) core *.bak $(obj).depend
-
 #########################################################################
 
 # defines $(obj).depend target
diff --git a/board/ibf-dsp561/Makefile b/board/ibf-dsp561/Makefile
index 0d17676..505a831 100644
--- a/board/ibf-dsp561/Makefile
+++ b/board/ibf-dsp561/Makefile
@@ -38,12 +38,6 @@  SOBJS	:= $(addprefix $(obj),$(SOBJS-y))
 $(LIB):	$(obj).depend $(OBJS) $(SOBJS)
 	$(call cmd_link_o_target, $(OBJS) $(SOBJS))
 
-clean:
-	rm -f $(SOBJS) $(OBJS)
-
-distclean:	clean
-	rm -f $(LIB) core *.bak $(obj).depend
-
 #########################################################################
 
 # defines $(obj).depend target
diff --git a/board/icecube/Makefile b/board/icecube/Makefile
index d45db9f..db84c41 100644
--- a/board/icecube/Makefile
+++ b/board/icecube/Makefile
@@ -35,12 +35,6 @@  SOBJS	:= $(addprefix $(obj),$(SOBJS))
 $(LIB):	$(obj).depend $(OBJS)
 	$(call cmd_link_o_target, $(OBJS))
 
-clean:
-	rm -f $(SOBJS) $(OBJS)
-
-distclean:	clean
-	rm -f $(LIB) core *.bak $(obj).depend
-
 #########################################################################
 
 # defines $(obj).depend target
diff --git a/board/imx31_phycore/Makefile b/board/imx31_phycore/Makefile
index 4fd4864..925970c 100644
--- a/board/imx31_phycore/Makefile
+++ b/board/imx31_phycore/Makefile
@@ -35,12 +35,6 @@  SOBJS	:= $(addprefix $(obj),$(SOBJS))
 $(LIB):	$(obj).depend $(OBJS) $(SOBJS)
 	$(call cmd_link_o_target, $(OBJS) $(SOBJS))
 
-clean:
-	rm -f $(SOBJS) $(OBJS)
-
-distclean:	clean
-	rm -f $(LIB) core *.bak $(obj).depend
-
 #########################################################################
 
 # defines $(obj).depend target
diff --git a/board/inka4x0/Makefile b/board/inka4x0/Makefile
index 6ec04b8..336a6fe 100644
--- a/board/inka4x0/Makefile
+++ b/board/inka4x0/Makefile
@@ -34,12 +34,6 @@  SOBJS	:= $(addprefix $(obj),$(SOBJS))
 $(LIB):	$(obj).depend $(OBJS)
 	$(call cmd_link_o_target, $(OBJS))
 
-clean:
-	rm -f $(SOBJS) $(OBJS)
-
-distclean:	clean
-	rm -f $(LIB) core *.bak $(obj).depend
-
 #########################################################################
 
 # defines $(obj).depend target
diff --git a/board/innokom/Makefile b/board/innokom/Makefile
index 054175f..8b58b7f 100644
--- a/board/innokom/Makefile
+++ b/board/innokom/Makefile
@@ -33,12 +33,6 @@  OBJS	:= $(addprefix $(obj),$(COBJS))
 $(LIB):	$(obj).depend $(OBJS)
 	$(call cmd_link_o_target, $(OBJS))
 
-clean:
-	rm -f $(OBJS)
-
-distclean:	clean
-	rm -f $(LIB) core *.bak $(obj).depend
-
 #########################################################################
 
 # defines $(obj).depend target
diff --git a/board/intercontrol/digsy_mtc/Makefile b/board/intercontrol/digsy_mtc/Makefile
index 19f5b3a..877be48 100644
--- a/board/intercontrol/digsy_mtc/Makefile
+++ b/board/intercontrol/digsy_mtc/Makefile
@@ -17,12 +17,6 @@  SOBJS	:= $(addprefix $(obj),$(SOBJS))
 $(LIB):	$(obj).depend $(OBJS)
 	$(call cmd_link_o_target, $(OBJS))
 
-clean:
-	rm -f $(SOBJS) $(OBJS)
-
-distclean:	clean
-	rm -f $(LIB) core *.bak .depend
-
 #########################################################################
 
 # defines $(obj).depend target
diff --git a/board/ip04/Makefile b/board/ip04/Makefile
index 06b8217..f227a97 100644
--- a/board/ip04/Makefile
+++ b/board/ip04/Makefile
@@ -38,12 +38,6 @@  SOBJS	:= $(addprefix $(obj),$(SOBJS-y))
 $(LIB):	$(obj).depend $(OBJS) $(SOBJS)
 	$(call cmd_link_o_target, $(OBJS) $(SOBJS))
 
-clean:
-	rm -f $(SOBJS) $(OBJS)
-
-distclean:	clean
-	rm -f $(LIB) core *.bak $(obj).depend
-
 #########################################################################
 
 # defines $(obj).depend target
diff --git a/board/ipek01/Makefile b/board/ipek01/Makefile
index 16f0c6b..f2ba232 100644
--- a/board/ipek01/Makefile
+++ b/board/ipek01/Makefile
@@ -34,12 +34,6 @@  SOBJS	:= $(addprefix $(obj),$(SOBJS))
 $(LIB):	$(obj).depend $(OBJS)
 	$(call cmd_link_o_target, $(OBJS))
 
-clean:
-	rm -f $(SOBJS) $(OBJS)
-
-distclean:	clean
-	rm -f $(LIB) core *.bak .depend
-
 #########################################################################
 
 # defines $(obj).depend target
diff --git a/board/iphase4539/Makefile b/board/iphase4539/Makefile
index 89d3524..420ff6b 100644
--- a/board/iphase4539/Makefile
+++ b/board/iphase4539/Makefile
@@ -36,12 +36,6 @@  SOBJS	:= $(addprefix $(obj),$(SOBJS))
 $(LIB):	$(obj).depend $(OBJS)
 	$(call cmd_link_o_target, $(OBJS))
 
-clean:
-	rm -f $(SOBJS) $(OBJS)
-
-distclean:	clean
-	rm -f $(LIB) core *.bak $(obj).depend
-
 #########################################################################
 
 # defines $(obj).depend target
diff --git a/board/isee/igep0020/Makefile b/board/isee/igep0020/Makefile
index 678a682..00463e1 100644
--- a/board/isee/igep0020/Makefile
+++ b/board/isee/igep0020/Makefile
@@ -33,12 +33,6 @@  OBJS	:= $(addprefix $(obj),$(COBJS))
 $(LIB):	$(obj).depend $(OBJS)
 	$(call cmd_link_o_target, $(OBJS))
 
-clean:
-	rm -f $(OBJS)
-
-distclean:	clean
-	rm -f $(LIB) core *.bak $(obj).depend
-
 #########################################################################
 
 # defines $(obj).depend target
diff --git a/board/isee/igep0030/Makefile b/board/isee/igep0030/Makefile
index d208872..cbc03d4 100644
--- a/board/isee/igep0030/Makefile
+++ b/board/isee/igep0030/Makefile
@@ -33,12 +33,6 @@  OBJS	:= $(addprefix $(obj),$(COBJS))
 $(LIB):	$(obj).depend $(OBJS)
 	$(call cmd_link_o_target, $(OBJS))
 
-clean:
-	rm -f $(OBJS)
-
-distclean:	clean
-	rm -f $(LIB) core *.bak $(obj).depend
-
 #########################################################################
 
 # defines $(obj).depend target
diff --git a/board/ispan/Makefile b/board/ispan/Makefile
index 70205f1..defca3d 100644
--- a/board/ispan/Makefile
+++ b/board/ispan/Makefile
@@ -37,12 +37,6 @@  SOBJS	:= $(addprefix $(obj),$(SOBJS))
 $(LIB):	$(obj).depend $(OBJS)
 	$(call cmd_link_o_target, $(OBJS))
 
-clean:
-	rm -f $(SOBJS) $(OBJS)
-
-distclean:	clean
-	rm -f $(LIB) core *.bak $(obj).depend
-
 #########################################################################
 
 # defines $(obj).depend target
diff --git a/board/ixdp425/Makefile b/board/ixdp425/Makefile
index 4ba0383..f437f69 100644
--- a/board/ixdp425/Makefile
+++ b/board/ixdp425/Makefile
@@ -34,12 +34,6 @@  SOBJS	:= $(addprefix $(obj),$(SOBJS))
 $(LIB):	$(obj).depend $(OBJS)
 	$(call cmd_link_o_target, $(OBJS))
 
-clean:
-	rm -f $(SOBJS) $(OBJS)
-
-distclean:	clean
-	rm -f $(LIB) core *.bak $(obj).depend
-
 #########################################################################
 
 # defines $(obj).depend target
diff --git a/board/jornada/Makefile b/board/jornada/Makefile
index e017692..a3e7b7e 100644
--- a/board/jornada/Makefile
+++ b/board/jornada/Makefile
@@ -37,12 +37,6 @@  SOBJS	:= $(addprefix $(obj),$(SOBJS))
 $(LIB):	$(obj).depend $(OBJS) $(SOBJS)
 	$(call cmd_link_o_target, $(OBJS) $(SOBJS))
 
-clean:
-	rm -f $(SOBJS) $(OBJS)
-
-distclean:	clean
-	rm -f $(LIB) core *.bak $(obj).depend
-
 #########################################################################
 
 # defines $(obj).depend target
diff --git a/board/jse/Makefile b/board/jse/Makefile
index a3050c7..dfbce6b 100644
--- a/board/jse/Makefile
+++ b/board/jse/Makefile
@@ -35,12 +35,6 @@  SOBJS	:= $(addprefix $(obj),$(SOBJS))
 $(LIB):	$(OBJS) $(SOBJS)
 	$(call cmd_link_o_target, $(OBJS) $(SOBJS))
 
-clean:
-	rm -f $(SOBJS) $(OBJS)
-
-distclean:	clean
-	rm -f $(LIB) core *.bak $(obj).depend
-
 #########################################################################
 
 # defines $(obj).depend target
diff --git a/board/jupiter/Makefile b/board/jupiter/Makefile
index 6a6ad8d..0e8bf38 100644
--- a/board/jupiter/Makefile
+++ b/board/jupiter/Makefile
@@ -35,12 +35,6 @@  SOBJS	:= $(addprefix $(obj),$(SOBJS))
 $(LIB):	$(obj).depend $(OBJS)
 	$(call cmd_link_o_target, $(OBJS))
 
-clean:
-	rm -f $(SOBJS) $(OBJS)
-
-distclean:	clean
-	rm -f $(LIB) core *.bak $(obj).depend
-
 #########################################################################
 
 # defines $(obj).depend target
diff --git a/board/karo/tx25/Makefile b/board/karo/tx25/Makefile
index 8350788..9617fa5 100644
--- a/board/karo/tx25/Makefile
+++ b/board/karo/tx25/Makefile
@@ -35,12 +35,6 @@  SOBJS	:= $(addprefix $(obj),$(SOBJS))
 $(LIB):	$(obj).depend $(OBJS) $(SOBJS)
 	$(call cmd_link_o_target, $(OBJS) $(SOBJS))
 
-clean:
-	rm -f $(SOBJS) $(OBJS)
-
-distclean:	clean
-	rm -f $(LIB) core *.bak $(obj).depend
-
 #########################################################################
 
 include $(SRCTREE)/rules.mk
diff --git a/board/keymile/km82xx/Makefile b/board/keymile/km82xx/Makefile
index b9709d9..1b2820d 100644
--- a/board/keymile/km82xx/Makefile
+++ b/board/keymile/km82xx/Makefile
@@ -37,12 +37,6 @@  SOBJS	:= $(addprefix $(obj),$(SOBJS))
 $(LIB):	$(obj).depend $(OBJS)
 	$(call cmd_link_o_target, $(OBJS))
 
-clean:
-	rm -f $(SOBJS) $(OBJS)
-
-distclean:	clean
-	rm -f $(LIB) core *.bak $(obj).depend
-
 #########################################################################
 
 # defines $(obj).depend target
diff --git a/board/keymile/km83xx/Makefile b/board/keymile/km83xx/Makefile
index 7bf64b4..72945e2 100644
--- a/board/keymile/km83xx/Makefile
+++ b/board/keymile/km83xx/Makefile
@@ -37,12 +37,6 @@  SOBJS	:= $(addprefix $(obj),$(SOBJS))
 $(LIB):	$(obj).depend $(OBJS)
 	$(call cmd_link_o_target, $(OBJS))
 
-clean:
-	rm -f $(SOBJS) $(OBJS)
-
-distclean:	clean
-	rm -f $(LIB) core *.bak $(obj).depend
-
 #########################################################################
 
 # defines $(obj).depend target
diff --git a/board/keymile/km_arm/Makefile b/board/keymile/km_arm/Makefile
index 4907030..aa51255 100644
--- a/board/keymile/km_arm/Makefile
+++ b/board/keymile/km_arm/Makefile
@@ -38,12 +38,6 @@  SOBJS	:= $(addprefix $(obj),$(SOBJS))
 $(LIB):	$(obj).depend $(OBJS) $(SOBJS)
 	$(call cmd_link_o_target, $(OBJS) $(SOBJS))
 
-clean:
-	rm -f $(SOBJS) $(OBJS)
-
-distclean:	clean
-	rm -f $(LIB) core *.bak .depend
-
 #########################################################################
 
 # defines $(obj).depend target
diff --git a/board/korat/Makefile b/board/korat/Makefile
index 6781596..64468fd 100644
--- a/board/korat/Makefile
+++ b/board/korat/Makefile
@@ -37,12 +37,6 @@  all:	$(LIB) $(SOBJS)
 $(LIB):	$(OBJS)
 	$(call cmd_link_o_target, $^)
 
-clean:
-	rm -f $(SOBJS) $(OBJS)
-
-distclean:	clean
-	rm -f $(LIB) core *.bak $(obj).depend
-
 #########################################################################
 
 # defines $(obj).depend target
diff --git a/board/logicpd/am3517evm/Makefile b/board/logicpd/am3517evm/Makefile
index 83fab0e..bc2830f 100644
--- a/board/logicpd/am3517evm/Makefile
+++ b/board/logicpd/am3517evm/Makefile
@@ -32,12 +32,6 @@  OBJS	:= $(addprefix $(obj),$(COBJS))
 $(LIB):	$(obj).depend $(OBJS)
 	$(call cmd_link_o_target, $(OBJS))
 
-clean:
-	rm -f $(OBJS)
-
-distclean:	clean
-	rm -f $(LIB) core *.bak $(obj).depend
-
 #########################################################################
 
 # defines $(obj).depend target
diff --git a/board/logicpd/imx27lite/Makefile b/board/logicpd/imx27lite/Makefile
index 944434b..bd78732 100644
--- a/board/logicpd/imx27lite/Makefile
+++ b/board/logicpd/imx27lite/Makefile
@@ -35,12 +35,6 @@  SOBJS	:= $(addprefix $(obj),$(SOBJS))
 $(LIB):	$(obj).depend $(OBJS) $(SOBJS)
 	$(call cmd_link_o_target, $(OBJS) $(SOBJS))
 
-clean:
-	rm -f $(SOBJS) $(OBJS)
-
-distclean:	clean
-	rm -f $(LIB) core *.bak $(obj).depend
-
 #########################################################################
 
 include $(SRCTREE)/rules.mk
diff --git a/board/logicpd/imx31_litekit/Makefile b/board/logicpd/imx31_litekit/Makefile
index e604c31..56fc005 100644
--- a/board/logicpd/imx31_litekit/Makefile
+++ b/board/logicpd/imx31_litekit/Makefile
@@ -35,12 +35,6 @@  SOBJS	:= $(addprefix $(obj),$(SOBJS))
 $(LIB):	$(obj).depend $(OBJS) $(SOBJS)
 	$(call cmd_link_o_target, $(OBJS) $(SOBJS))
 
-clean:
-	rm -f $(SOBJS) $(OBJS)
-
-distclean:	clean
-	rm -f $(LIB) core *.bak $(obj).depend
-
 #########################################################################
 
 # defines $(obj).depend target
diff --git a/board/logicpd/zoom1/Makefile b/board/logicpd/zoom1/Makefile
index 75085b4..596585e 100644
--- a/board/logicpd/zoom1/Makefile
+++ b/board/logicpd/zoom1/Makefile
@@ -33,12 +33,6 @@  OBJS	:= $(addprefix $(obj),$(COBJS))
 $(LIB):	$(obj).depend $(OBJS)
 	$(call cmd_link_o_target, $(OBJS))
 
-clean:
-	rm -f $(OBJS)
-
-distclean:	clean
-	rm -f $(LIB) core *.bak $(obj).depend
-
 #########################################################################
 
 # defines $(obj).depend target
diff --git a/board/logicpd/zoom2/Makefile b/board/logicpd/zoom2/Makefile
index 17f595e..228a599 100644
--- a/board/logicpd/zoom2/Makefile
+++ b/board/logicpd/zoom2/Makefile
@@ -37,12 +37,6 @@  OBJS	:= $(addprefix $(obj),$(COBJS))
 $(LIB):	$(obj).depend $(OBJS)
 	$(call cmd_link_o_target, $(OBJS))
 
-clean:
-	rm -f $(OBJS)
-
-distclean:	clean
-	rm -f $(LIB) core *.bak $(obj).depend
-
 #########################################################################
 
 # defines $(obj).depend target
diff --git a/board/lubbock/Makefile b/board/lubbock/Makefile
index 60ac9cf..2c6058b 100644
--- a/board/lubbock/Makefile
+++ b/board/lubbock/Makefile
@@ -34,12 +34,6 @@  OBJS	:= $(addprefix $(obj),$(COBJS))
 $(LIB):	$(obj).depend $(OBJS)
 	$(call cmd_link_o_target, $(OBJS))
 
-clean:
-	rm -f $(OBJS)
-
-distclean:	clean
-	rm -f $(LIB) core *.bak $(obj).depend
-
 #########################################################################
 
 # defines $(obj).depend target
diff --git a/board/lwmon5/Makefile b/board/lwmon5/Makefile
index f7fef96..6e3ec12 100644
--- a/board/lwmon5/Makefile
+++ b/board/lwmon5/Makefile
@@ -37,12 +37,6 @@  all:	$(LIB) $(SOBJS)
 $(LIB):	$(OBJS)
 	$(call cmd_link_o_target, $^)
 
-clean:
-	rm -f $(SOBJS) $(OBJS)
-
-distclean:	clean
-	rm -f $(LIB) core *.bak $(obj).depend
-
 #########################################################################
 
 # defines $(obj).depend target
diff --git a/board/manroland/hmi1001/Makefile b/board/manroland/hmi1001/Makefile
index d3c31d6..f2ba232 100644
--- a/board/manroland/hmi1001/Makefile
+++ b/board/manroland/hmi1001/Makefile
@@ -34,12 +34,6 @@  SOBJS	:= $(addprefix $(obj),$(SOBJS))
 $(LIB):	$(obj).depend $(OBJS)
 	$(call cmd_link_o_target, $(OBJS))
 
-clean:
-	rm -f $(SOBJS) $(OBJS)
-
-distclean:	clean
-	rm -f $(LIB) core *.bak $(obj).depend
-
 #########################################################################
 
 # defines $(obj).depend target
diff --git a/board/manroland/mucmc52/Makefile b/board/manroland/mucmc52/Makefile
index a3b4e4c..7d4c1e7 100644
--- a/board/manroland/mucmc52/Makefile
+++ b/board/manroland/mucmc52/Makefile
@@ -37,12 +37,6 @@  SOBJS	:= $(addprefix $(obj),$(SOBJS))
 $(LIB):	$(obj).depend $(OBJS)
 	$(call cmd_link_o_target, $(OBJS))
 
-clean:
-	rm -f $(SOBJS) $(OBJS)
-
-distclean:	clean
-	rm -f $(LIB) core *.bak .depend
-
 #########################################################################
 
 # defines $(obj).depend target
diff --git a/board/manroland/uc101/Makefile b/board/manroland/uc101/Makefile
index d3c31d6..f2ba232 100644
--- a/board/manroland/uc101/Makefile
+++ b/board/manroland/uc101/Makefile
@@ -34,12 +34,6 @@  SOBJS	:= $(addprefix $(obj),$(SOBJS))
 $(LIB):	$(obj).depend $(OBJS)
 	$(call cmd_link_o_target, $(OBJS))
 
-clean:
-	rm -f $(SOBJS) $(OBJS)
-
-distclean:	clean
-	rm -f $(LIB) core *.bak $(obj).depend
-
 #########################################################################
 
 # defines $(obj).depend target
diff --git a/board/matrix_vision/common/Makefile b/board/matrix_vision/common/Makefile
index 2ad54a0..ae18260 100644
--- a/board/matrix_vision/common/Makefile
+++ b/board/matrix_vision/common/Makefile
@@ -38,12 +38,6 @@  SOBJS	:= $(addprefix $(obj),$(SOBJS))
 $(LIB):	$(obj).depend $(OBJS)
 	$(call cmd_link_o_target, $(OBJS))
 
-clean:
-	rm -f $(SOBJS) $(OBJS)
-
-distclean:	clean
-	rm -f $(LIB) core *.bak $(obj).depend
-
 #########################################################################
 
 # defines $(obj).depend target
diff --git a/board/matrix_vision/mergerbox/Makefile b/board/matrix_vision/mergerbox/Makefile
index 2b78c98..9cd2f1a 100644
--- a/board/matrix_vision/mergerbox/Makefile
+++ b/board/matrix_vision/mergerbox/Makefile
@@ -35,12 +35,6 @@  SOBJS	:= $(addprefix $(obj),$(SOBJS))
 $(LIB):	$(obj).depend $(OBJS)
 	$(AR) $(ARFLAGS) $@ $(OBJS)
 
-clean:
-	rm -f $(SOBJS) $(OBJS)
-
-distclean:	clean
-	rm -f $(LIB) core *.bak $(obj).depend
-
 #########################################################################
 
 # defines $(obj).depend target
diff --git a/board/matrix_vision/mvbc_p/Makefile b/board/matrix_vision/mvbc_p/Makefile
index 9ee0895..ddfb1e9 100644
--- a/board/matrix_vision/mvbc_p/Makefile
+++ b/board/matrix_vision/mvbc_p/Makefile
@@ -37,12 +37,6 @@  SOBJS   := $(addprefix $(obj),$(SOBJS))
 $(LIB): $(obj).depend $(OBJS)
 	        $(call cmd_link_o_target, $(OBJS))
 
-clean:
-	rm -f $(SOBJS) $(OBJS)
-
-distclean:	clean
-	rm -f $(LIB) core *.bak $(obj).depend
-
 #########################################################################
 
 include $(SRCTREE)/rules.mk
diff --git a/board/matrix_vision/mvblm7/Makefile b/board/matrix_vision/mvblm7/Makefile
index 2ee74e0..81761ca 100644
--- a/board/matrix_vision/mvblm7/Makefile
+++ b/board/matrix_vision/mvblm7/Makefile
@@ -34,12 +34,6 @@  $(LIB):	$(obj).depend $(OBJS)
 	$(call cmd_link_o_target, $(OBJS))
 	@mkimage -T script -C none -n M7_script -d bootscript $(obj)bootscript.img
 
-clean:
-	rm -f $(SOBJS) $(OBJS)
-
-distclean:	clean
-	rm -f $(LIB) core *.bak $(obj).depend $(obj)bootscript.img
-
 #########################################################################
 
 include $(SRCTREE)/rules.mk
diff --git a/board/matrix_vision/mvsmr/Makefile b/board/matrix_vision/mvsmr/Makefile
index 8ee556c..37b9bac 100644
--- a/board/matrix_vision/mvsmr/Makefile
+++ b/board/matrix_vision/mvsmr/Makefile
@@ -38,12 +38,6 @@  $(LIB): $(obj).depend $(OBJS)
 	        $(call cmd_link_o_target, $(OBJS))
 	@mkimage -T script -C none -n mvSMR_Script -d bootscript $(obj)bootscript.img
 
-clean:
-	rm -f $(SOBJS) $(OBJS)
-
-distclean:	clean
-	rm -f $(LIB) core *.bak $(obj).depend $(obj)bootscript.img
-
 #########################################################################
 
 include $(SRCTREE)/rules.mk
diff --git a/board/mcc200/Makefile b/board/mcc200/Makefile
index e0a24b1..07abcf7 100644
--- a/board/mcc200/Makefile
+++ b/board/mcc200/Makefile
@@ -34,12 +34,6 @@  SOBJS	:= $(addprefix $(obj),$(SOBJS))
 $(LIB):	$(obj).depend $(OBJS)
 	$(call cmd_link_o_target, $(OBJS))
 
-clean:
-	rm -f $(SOBJS) $(OBJS)
-
-distclean:	clean
-	rm -f $(LIB) core *.bak $(obj).depend
-
 #########################################################################
 
 # defines $(obj).depend target
diff --git a/board/mercury/mpq101/Makefile b/board/mercury/mpq101/Makefile
index 58bc1b3..f9a07cc 100644
--- a/board/mercury/mpq101/Makefile
+++ b/board/mercury/mpq101/Makefile
@@ -37,12 +37,6 @@  SOBJS	:= $(addprefix $(obj),$(SOBJS))
 $(LIB):	$(obj).depend $(OBJS) $(SOBJS)
 	$(call cmd_link_o_target, $(OBJS))
 
-clean:
-	rm -f $(OBJS) $(SOBJS)
-
-distclean:	clean
-	rm -f $(LIB) core *.bak .depend
-
 #########################################################################
 
 # defines $(obj).depend target
diff --git a/board/micronas/vct/Makefile b/board/micronas/vct/Makefile
index a7748fe..14e6994 100644
--- a/board/micronas/vct/Makefile
+++ b/board/micronas/vct/Makefile
@@ -41,12 +41,6 @@  SOBJS	:= $(addprefix $(obj),$(SOBJS))
 $(LIB):	$(OBJS) $(SOBJS)
 	$(call cmd_link_o_target, $(OBJS) $(SOBJS))
 
-clean:
-	rm -f $(SOBJS) $(OBJS)
-
-distclean:	clean
-	rm -f $(LIB) core *.bak $(obj).depend
-
 #########################################################################
 
 # defines $(obj).depend target
diff --git a/board/ml2/Makefile b/board/ml2/Makefile
index 67de4f9..f4df3ac 100644
--- a/board/ml2/Makefile
+++ b/board/ml2/Makefile
@@ -35,12 +35,6 @@  SOBJS	:= $(addprefix $(obj),$(SOBJS))
 $(LIB):	$(OBJS) $(SOBJS)
 	$(call cmd_link_o_target, $(OBJS) $(SOBJS))
 
-clean:
-	rm -f $(SOBJS) $(OBJS)
-
-distclean:	clean
-	rm -f $(LIB) core *.bak $(obj).depend
-
 #########################################################################
 
 # defines $(obj).depend target
diff --git a/board/mosaixtech/icon/Makefile b/board/mosaixtech/icon/Makefile
index 39cff51..7863c8e 100644
--- a/board/mosaixtech/icon/Makefile
+++ b/board/mosaixtech/icon/Makefile
@@ -37,12 +37,6 @@  SOBJS	:= $(addprefix $(obj),$(SOBJS))
 $(LIB):	$(obj).depend $(OBJS) $(SOBJS)
 	$(call cmd_link_o_target, $(OBJS))
 
-clean:
-	rm -f $(SOBJS) $(OBJS)
-
-distclean:	clean
-	rm -f $(LIB) core *.bak $(obj).depend
-
 #########################################################################
 
 # defines $(obj).depend target
diff --git a/board/motionpro/Makefile b/board/motionpro/Makefile
index f5d88bb..5af7fa9 100644
--- a/board/motionpro/Makefile
+++ b/board/motionpro/Makefile
@@ -34,12 +34,6 @@  SOBJS	:= $(addprefix $(obj),$(SOBJS))
 $(LIB):	$(obj).depend $(OBJS)
 	$(call cmd_link_o_target, $(OBJS))
 
-clean:
-	rm -f $(SOBJS) $(OBJS)
-
-distclean:	clean
-	rm -f $(LIB) core *.bak $(obj).depend
-
 #########################################################################
 
 # defines $(obj).depend target
diff --git a/board/mpc8308_p1m/Makefile b/board/mpc8308_p1m/Makefile
index 241a557..b371ea0 100644
--- a/board/mpc8308_p1m/Makefile
+++ b/board/mpc8308_p1m/Makefile
@@ -36,12 +36,6 @@  SOBJS	:= $(addprefix $(obj),$(SOBJS))
 $(LIB):	$(obj).depend $(OBJS)
 	$(call cmd_link_o_target, $(OBJS))
 
-clean:
-	rm -f $(SOBJS) $(OBJS)
-
-distclean:	clean
-	rm -f $(LIB) core *.bak $(obj).depend
-
 #########################################################################
 
 # defines $(obj).depend target
diff --git a/board/mpl/mip405/Makefile b/board/mpl/mip405/Makefile
index 042cd83..5dd0b2f 100644
--- a/board/mpl/mip405/Makefile
+++ b/board/mpl/mip405/Makefile
@@ -40,12 +40,6 @@  SOBJS	:= $(addprefix $(obj),$(SOBJS))
 $(LIB):	$(OBJS) $(SOBJS)
 	$(call cmd_link_o_target, $(OBJS) $(SOBJS))
 
-clean:
-	rm -f $(SOBJS) $(OBJS)
-
-distclean:	clean
-	rm -f $(LIB) core *.bak $(obj).depend
-
 #########################################################################
 
 # defines $(obj).depend target
diff --git a/board/mpl/pati/Makefile b/board/mpl/pati/Makefile
index 937dfec..dae381d 100644
--- a/board/mpl/pati/Makefile
+++ b/board/mpl/pati/Makefile
@@ -38,12 +38,6 @@  SOBJS	:= $(addprefix $(obj),$(SOBJS))
 $(LIB):	$(obj).depend $(OBJS)
 	$(call cmd_link_o_target, $(OBJS))
 
-clean:
-	rm -f $(SOBJS) $(OBJS)
-
-distclean:	clean
-	rm -f $(LIB) core *.bak $(obj).depend
-
 #########################################################################
 
 # defines $(obj).depend target
diff --git a/board/mpl/pip405/Makefile b/board/mpl/pip405/Makefile
index 8b4bbc5..9aebb9a 100644
--- a/board/mpl/pip405/Makefile
+++ b/board/mpl/pip405/Makefile
@@ -43,12 +43,6 @@  SOBJS	:= $(addprefix $(obj),$(SOBJS))
 $(LIB):	$(OBJS) $(SOBJS)
 	$(call cmd_link_o_target, $(OBJS) $(SOBJS))
 
-clean:
-	rm -f $(SOBJS) $(OBJS)
-
-distclean:	clean
-	rm -f $(LIB) core *.bak $(obj).depend
-
 #########################################################################
 
 # defines $(obj).depend target
diff --git a/board/mpl/vcma9/Makefile b/board/mpl/vcma9/Makefile
index 6228762..213741c 100644
--- a/board/mpl/vcma9/Makefile
+++ b/board/mpl/vcma9/Makefile
@@ -40,12 +40,6 @@  SOBJS	:= $(addprefix $(obj),$(SOBJS))
 $(LIB):	$(obj).depend $(OBJS) $(SOBJS)
 	$(call cmd_link_o_target, $(OBJS) $(SOBJS))
 
-clean:
-	rm -f $(SOBJS) $(OBJS)
-
-distclean:	clean
-	rm -f $(LIB) core *.bak $(obj).depend
-
 #########################################################################
 
 # defines $(obj).depend target
diff --git a/board/mpr2/Makefile b/board/mpr2/Makefile
index b9c45b9..ad67eb6 100644
--- a/board/mpr2/Makefile
+++ b/board/mpr2/Makefile
@@ -42,12 +42,6 @@  SOBJS	:= $(addprefix $(obj),$(SOBJS))
 $(LIB):	$(OBJS) $(SOBJS)
 	$(call cmd_link_o_target, $(OBJS) $(SOBJS))
 
-clean:
-	rm -f $(SOBJS) $(OBJS)
-
-distclean:	clean
-	rm -f $(LIB) core *.bak $(obj).depend
-
 #########################################################################
 
 # defines $(obj).depend target
diff --git a/board/ms7720se/Makefile b/board/ms7720se/Makefile
index 0bf7743..82a64a7 100644
--- a/board/ms7720se/Makefile
+++ b/board/ms7720se/Makefile
@@ -39,12 +39,6 @@  SOBJS	:= $(addprefix $(obj),$(SOBJS))
 $(LIB):	$(OBJS) $(SOBJS)
 	$(call cmd_link_o_target, $(OBJS) $(SOBJS))
 
-clean:
-	rm -f $(SOBJS) $(OBJS)
-
-distclean:	clean
-	rm -f $(LIB) core *.bak $(obj).depend
-
 #########################################################################
 
 # defines $(obj).depend target
diff --git a/board/ms7722se/Makefile b/board/ms7722se/Makefile
index fc8ae21..2b37c1a 100644
--- a/board/ms7722se/Makefile
+++ b/board/ms7722se/Makefile
@@ -36,12 +36,6 @@  SOBJS	:= $(addprefix $(obj),$(SOBJS))
 $(LIB):	$(OBJS) $(SOBJS)
 	$(call cmd_link_o_target, $(OBJS) $(SOBJS))
 
-clean:
-	rm -f $(SOBJS) $(OBJS)
-
-distclean:	clean
-	rm -f $(LIB) core *.bak $(obj).depend
-
 #########################################################################
 
 # defines $(obj).depend target
diff --git a/board/ms7750se/Makefile b/board/ms7750se/Makefile
index 8f1b459..c7088e8 100644
--- a/board/ms7750se/Makefile
+++ b/board/ms7750se/Makefile
@@ -31,12 +31,6 @@  SOBJS	:= $(addprefix $(obj),$(SOBJS))
 $(LIB):	$(OBJS) $(SOBJS)
 	$(call cmd_link_o_target, $(OBJS) $(SOBJS))
 
-clean:
-	rm -f $(SOBJS) $(OBJS)
-
-distclean:	clean
-	rm -f $(LIB) core *.bak $(obj).depend
-
 #########################################################################
 
 # defines $(obj).depend target
diff --git a/board/muas3001/Makefile b/board/muas3001/Makefile
index f219cf9..4a2f1fe 100644
--- a/board/muas3001/Makefile
+++ b/board/muas3001/Makefile
@@ -34,12 +34,6 @@  SOBJS	:= $(addprefix $(obj),$(SOBJS))
 $(LIB):	$(obj).depend $(OBJS)
 	$(call cmd_link_o_target, $(OBJS))
 
-clean:
-	rm -f $(SOBJS) $(OBJS)
-
-distclean:	clean
-	rm -f $(LIB) core *.bak .depend
-
 #########################################################################
 
 # defines $(obj).depend target
diff --git a/board/munices/Makefile b/board/munices/Makefile
index 5c7f947..257a080 100644
--- a/board/munices/Makefile
+++ b/board/munices/Makefile
@@ -34,12 +34,6 @@  SOBJS	:= $(addprefix $(obj),$(SOBJS))
 $(LIB):	$(obj).depend $(OBJS)
 	$(call cmd_link_o_target, $(OBJS))
 
-clean:
-	rm -f $(SOBJS) $(OBJS)
-
-distclean:	clean
-	rm -f $(LIB) core *.bak $(obj).depend
-
 #########################################################################
 
 # defines $(obj).depend target
diff --git a/board/mx1ads/Makefile b/board/mx1ads/Makefile
index 20d7b86..82ef6df 100644
--- a/board/mx1ads/Makefile
+++ b/board/mx1ads/Makefile
@@ -39,12 +39,6 @@  SOBJS	:= $(addprefix $(obj),$(SOBJS))
 $(LIB):	$(obj).depend $(OBJS) $(SOBJS)
 	$(call cmd_link_o_target, $(OBJS) $(SOBJS))
 
-clean:
-	rm -f $(SOBJS) $(OBJS)
-
-distclean:	clean
-	rm -f $(LIB) core *.bak $(obj).depend
-
 #########################################################################
 
 # defines $(obj).depend target
diff --git a/board/ns9750dev/Makefile b/board/ns9750dev/Makefile
index 7794fbd..0d082c5 100644
--- a/board/ns9750dev/Makefile
+++ b/board/ns9750dev/Makefile
@@ -35,12 +35,6 @@  SOBJS	:= $(addprefix $(obj),$(SOBJS))
 $(LIB):	$(obj).depend $(OBJS) $(SOBJS)
 	$(call cmd_link_o_target, $(OBJS) $(SOBJS))
 
-clean:
-	rm -f $(SOBJS) $(OBJS)
-
-distclean:	clean
-	rm -f $(LIB) core *.bak $(obj).depend
-
 #########################################################################
 
 # defines $(obj).depend target
diff --git a/board/nvidia/harmony/Makefile b/board/nvidia/harmony/Makefile
index ebd8e02..0319166 100644
--- a/board/nvidia/harmony/Makefile
+++ b/board/nvidia/harmony/Makefile
@@ -39,12 +39,6 @@  OBJS	:= $(addprefix $(obj),$(COBJS))
 $(LIB):	$(obj).depend $(OBJS)
 	$(AR) $(ARFLAGS) $@ $(OBJS)
 
-clean:
-	rm -f $(OBJS)
-
-distclean:	clean
-	rm -f $(LIB) core *.bak $(obj).depend
-
 #########################################################################
 
 # defines $(obj).depend target
diff --git a/board/nvidia/seaboard/Makefile b/board/nvidia/seaboard/Makefile
index ebd8e02..0319166 100644
--- a/board/nvidia/seaboard/Makefile
+++ b/board/nvidia/seaboard/Makefile
@@ -39,12 +39,6 @@  OBJS	:= $(addprefix $(obj),$(COBJS))
 $(LIB):	$(obj).depend $(OBJS)
 	$(AR) $(ARFLAGS) $@ $(OBJS)
 
-clean:
-	rm -f $(OBJS)
-
-distclean:	clean
-	rm -f $(LIB) core *.bak $(obj).depend
-
 #########################################################################
 
 # defines $(obj).depend target
diff --git a/board/o2dnt/Makefile b/board/o2dnt/Makefile
index 3c99739..9e5e21e 100644
--- a/board/o2dnt/Makefile
+++ b/board/o2dnt/Makefile
@@ -35,12 +35,6 @@  SOBJS	:= $(addprefix $(obj),$(SOBJS))
 $(LIB):	$(obj).depend $(OBJS)
 	$(call cmd_link_o_target, $(OBJS))
 
-clean:
-	rm -f $(SOBJS) $(OBJS)
-
-distclean:	clean
-	rm -f $(LIB) core *.bak $(obj).depend
-
 #########################################################################
 
 # defines $(obj).depend target
diff --git a/board/overo/Makefile b/board/overo/Makefile
index 22ba774..154960f 100644
--- a/board/overo/Makefile
+++ b/board/overo/Makefile
@@ -33,12 +33,6 @@  OBJS	:= $(addprefix $(obj),$(COBJS))
 $(LIB):	$(obj).depend $(OBJS)
 	$(call cmd_link_o_target, $(OBJS))
 
-clean:
-	rm -f $(OBJS)
-
-distclean:	clean
-	rm -f $(LIB) core *.bak $(obj).depend
-
 #########################################################################
 
 # defines $(obj).depend target
diff --git a/board/palmld/Makefile b/board/palmld/Makefile
index 29cdaee..85d1fb4 100644
--- a/board/palmld/Makefile
+++ b/board/palmld/Makefile
@@ -31,12 +31,6 @@  OBJS	:= $(addprefix $(obj),$(COBJS))
 $(LIB):	$(obj).depend $(OBJS)
 	$(call cmd_link_o_target, $(OBJS))
 
-clean:
-	rm -f $(OBJS)
-
-distclean:	clean
-	rm -f $(LIB) core *.bak $(obj).depend
-
 #########################################################################
 
 # defines $(obj).depend target
diff --git a/board/palmtc/Makefile b/board/palmtc/Makefile
index 15ef659..1c4bda7 100644
--- a/board/palmtc/Makefile
+++ b/board/palmtc/Makefile
@@ -32,12 +32,6 @@  SOBJS	:= $(addprefix $(obj),$(SOBJS))
 $(LIB):	$(obj).depend $(OBJS)
 	$(call cmd_link_o_target, $(OBJS))
 
-clean:
-	rm -f $(OBJS)
-
-distclean:	clean
-	rm -f $(LIB) core *.bak $(obj).depend
-
 #########################################################################
 
 # defines $(obj).depend target
diff --git a/board/pandora/Makefile b/board/pandora/Makefile
index 0308681..f57485e 100644
--- a/board/pandora/Makefile
+++ b/board/pandora/Makefile
@@ -33,12 +33,6 @@  OBJS	:= $(addprefix $(obj),$(COBJS))
 $(LIB):	$(obj).depend $(OBJS)
 	$(call cmd_link_o_target, $(OBJS))
 
-clean:
-	rm -f $(OBJS)
-
-distclean:	clean
-	rm -f $(LIB) core *.bak $(obj).depend
-
 #########################################################################
 
 # defines $(obj).depend target
diff --git a/board/pcs440ep/Makefile b/board/pcs440ep/Makefile
index 8708834..bf4d3e8 100644
--- a/board/pcs440ep/Makefile
+++ b/board/pcs440ep/Makefile
@@ -35,12 +35,6 @@  SOBJS	:= $(addprefix $(obj),$(SOBJS))
 $(LIB):	$(OBJS) $(SOBJS)
 	$(call cmd_link_o_target, $(OBJS))
 
-clean:
-	rm -f $(SOBJS) $(OBJS)
-
-distclean:	clean
-	rm -f $(LIB) core *.bak $(obj).depend
-
 #########################################################################
 
 # defines $(obj).depend target
diff --git a/board/pdm360ng/Makefile b/board/pdm360ng/Makefile
index 1b3d530..090e584 100644
--- a/board/pdm360ng/Makefile
+++ b/board/pdm360ng/Makefile
@@ -35,12 +35,6 @@  SOBJS	:= $(addprefix $(obj),$(SOBJS))
 $(LIB):	$(obj).depend $(OBJS)
 	$(call cmd_link_o_target, $(OBJS))
 
-clean:
-	rm -f $(SOBJS) $(OBJS)
-
-distclean:	clean
-	rm -f $(LIB) core *.bak $(obj).depend
-
 #########################################################################
 
 # defines $(obj).depend target
diff --git a/board/phytec/pcm030/Makefile b/board/phytec/pcm030/Makefile
index f5d88bb..5af7fa9 100644
--- a/board/phytec/pcm030/Makefile
+++ b/board/phytec/pcm030/Makefile
@@ -34,12 +34,6 @@  SOBJS	:= $(addprefix $(obj),$(SOBJS))
 $(LIB):	$(obj).depend $(OBJS)
 	$(call cmd_link_o_target, $(OBJS))
 
-clean:
-	rm -f $(SOBJS) $(OBJS)
-
-distclean:	clean
-	rm -f $(LIB) core *.bak $(obj).depend
-
 #########################################################################
 
 # defines $(obj).depend target
diff --git a/board/pleb2/Makefile b/board/pleb2/Makefile
index 9b076f5..bc29610 100644
--- a/board/pleb2/Makefile
+++ b/board/pleb2/Makefile
@@ -34,12 +34,6 @@  OBJS	:= $(addprefix $(obj),$(COBJS))
 $(LIB):	$(obj).depend $(OBJS)
 	$(call cmd_link_o_target, $(OBJS))
 
-clean:
-	rm -f $(OBJS)
-
-distclean:	clean
-	rm -f $(LIB) core *.bak $(obj).depend
-
 #########################################################################
 
 # defines $(obj).depend target
diff --git a/board/pm520/Makefile b/board/pm520/Makefile
index d45db9f..db84c41 100644
--- a/board/pm520/Makefile
+++ b/board/pm520/Makefile
@@ -35,12 +35,6 @@  SOBJS	:= $(addprefix $(obj),$(SOBJS))
 $(LIB):	$(obj).depend $(OBJS)
 	$(call cmd_link_o_target, $(OBJS))
 
-clean:
-	rm -f $(SOBJS) $(OBJS)
-
-distclean:	clean
-	rm -f $(LIB) core *.bak $(obj).depend
-
 #########################################################################
 
 # defines $(obj).depend target
diff --git a/board/ppmc7xx/Makefile b/board/ppmc7xx/Makefile
index ff27a20..953a5e3 100644
--- a/board/ppmc7xx/Makefile
+++ b/board/ppmc7xx/Makefile
@@ -36,12 +36,6 @@  SOBJS	:= $(addprefix $(obj),$(SOBJS))
 $(LIB):	$(obj).depend $(OBJS) $(SOBJS)
 	$(call cmd_link_o_target, $(OBJS) $(SOBJS))
 
-clean:
-	rm -f $(SOBJS) $(OBJS)
-
-distclean:	clean
-	rm -f $(LIB) core *.bak $(obj).depend
-
 #########################################################################
 
 # defines $(obj).depend target
diff --git a/board/ppmc8260/Makefile b/board/ppmc8260/Makefile
index 0141ea6..13bbcc7 100644
--- a/board/ppmc8260/Makefile
+++ b/board/ppmc8260/Makefile
@@ -34,12 +34,6 @@  SOBJS	:= $(addprefix $(obj),$(SOBJS))
 $(LIB):	$(obj).depend $(OBJS)
 	$(call cmd_link_o_target, $(OBJS))
 
-clean:
-	rm -f $(SOBJS) $(OBJS)
-
-distclean:	clean
-	rm -f $(LIB) core *.bak $(obj).depend
-
 #########################################################################
 
 # defines $(obj).depend target
diff --git a/board/prodrive/alpr/Makefile b/board/prodrive/alpr/Makefile
index 66ff738..a7d1cee 100644
--- a/board/prodrive/alpr/Makefile
+++ b/board/prodrive/alpr/Makefile
@@ -35,12 +35,6 @@  SOBJS	:= $(addprefix $(obj),$(SOBJS))
 $(LIB):	$(OBJS) $(SOBJS)
 	$(call cmd_link_o_target, $(OBJS))
 
-clean:
-	rm -f $(SOBJS) $(OBJS)
-
-distclean:	clean
-	rm -f $(LIB) core *.bak $(obj).depend
-
 #########################################################################
 
 # defines $(obj).depend target
diff --git a/board/prodrive/p3mx/Makefile b/board/prodrive/p3mx/Makefile
index 59dc27d..55ee8c2 100644
--- a/board/prodrive/p3mx/Makefile
+++ b/board/prodrive/p3mx/Makefile
@@ -39,12 +39,6 @@  SOBJS	:= $(addprefix $(obj),$(SOBJS))
 $(LIB):	$(obj).depend $(OBJS) $(SOBJS)
 	$(call cmd_link_o_target, $(OBJS) $(SOBJS))
 
-clean:
-	rm -f $(SOBJS) $(OBJS)
-
-distclean:	clean
-	rm -f $(LIB) core *.bak $(obj).depend
-
 #########################################################################
 
 # defines $(obj).depend target
diff --git a/board/prodrive/p3p440/Makefile b/board/prodrive/p3p440/Makefile
index 5b0ffc2..905ca7a 100644
--- a/board/prodrive/p3p440/Makefile
+++ b/board/prodrive/p3p440/Makefile
@@ -35,12 +35,6 @@  SOBJS	:= $(addprefix $(obj),$(SOBJS))
 $(LIB):	$(OBJS) $(SOBJS)
 	$(call cmd_link_o_target, $(OBJS))
 
-clean:
-	rm -f $(SOBJS) $(OBJS)
-
-distclean:	clean
-	rm -f $(LIB) core *.bak $(obj).depend
-
 #########################################################################
 
 # defines $(obj).depend target
diff --git a/board/prodrive/pdnb3/Makefile b/board/prodrive/pdnb3/Makefile
index 40a6fd2..8013283 100644
--- a/board/prodrive/pdnb3/Makefile
+++ b/board/prodrive/pdnb3/Makefile
@@ -34,12 +34,6 @@  SOBJS	:= $(addprefix $(obj),$(SOBJS))
 $(LIB):	$(obj).depend $(OBJS)
 	$(call cmd_link_o_target, $(OBJS))
 
-clean:
-	rm -f $(SOBJS) $(OBJS)
-
-distclean:	clean
-	rm -f $(LIB) core *.bak $(obj).depend
-
 #########################################################################
 
 # defines $(obj).depend target
diff --git a/board/psyent/pci5441/Makefile b/board/psyent/pci5441/Makefile
index 1cfe9e5..24b8d7d 100644
--- a/board/psyent/pci5441/Makefile
+++ b/board/psyent/pci5441/Makefile
@@ -39,12 +39,6 @@  SOBJS	:= $(addprefix $(obj),$(SOBJS))
 $(LIB):	$(obj).depend $(OBJS)
 	$(call cmd_link_o_target, $(OBJS))
 
-clean:
-	rm -f $(SOBJS) $(OBJS)
-
-distclean:	clean
-	rm -f $(LIB) core *.bak $(obj).depend
-
 #########################################################################
 
 # defines $(obj).depend target
diff --git a/board/psyent/pk1c20/Makefile b/board/psyent/pk1c20/Makefile
index 4677809..32530f8 100644
--- a/board/psyent/pk1c20/Makefile
+++ b/board/psyent/pk1c20/Makefile
@@ -39,12 +39,6 @@  SOBJS	:= $(addprefix $(obj),$(SOBJS))
 $(LIB):	$(obj).depend $(OBJS)
 	$(call cmd_link_o_target, $(OBJS))
 
-clean:
-	rm -f $(SOBJS) $(OBJS)
-
-distclean:	clean
-	rm -f $(LIB) core *.bak $(obj).depend
-
 #########################################################################
 
 # defines $(obj).depend target
diff --git a/board/pxa255_idp/Makefile b/board/pxa255_idp/Makefile
index dbde833..7660b2f 100644
--- a/board/pxa255_idp/Makefile
+++ b/board/pxa255_idp/Makefile
@@ -34,12 +34,6 @@  OBJS	:= $(addprefix $(obj),$(COBJS))
 $(LIB):	$(obj).depend $(OBJS)
 	$(call cmd_link_o_target, $(OBJS))
 
-clean:
-	rm -f $(OBJS)
-
-distclean:	clean
-	rm -f $(LIB) core *.bak $(obj).depend
-
 #########################################################################
 
 # defines $(obj).depend target
diff --git a/board/quad100hd/Makefile b/board/quad100hd/Makefile
index 4ceb344..4c17ce4 100644
--- a/board/quad100hd/Makefile
+++ b/board/quad100hd/Makefile
@@ -35,12 +35,6 @@  SOBJS	:= $(addprefix $(obj),$(SOBJS))
 $(LIB):	$(OBJS) $(SOBJS)
 	$(call cmd_link_o_target, $(OBJS) $(SOBJS))
 
-clean:
-	rm -f $(SOBJS) $(OBJS)
-
-distclean:	clean
-	rm -f $(LIB) core *.bak $(obj).depend
-
 #########################################################################
 
 # defines $(obj).depend target
diff --git a/board/rattler/Makefile b/board/rattler/Makefile
index 9079aad..d9039f6 100644
--- a/board/rattler/Makefile
+++ b/board/rattler/Makefile
@@ -34,12 +34,6 @@  SOBJS	:= $(addprefix $(obj),$(SOBJS))
 $(LIB):	$(obj).depend $(OBJS)
 	$(call cmd_link_o_target, $(OBJS))
 
-clean:
-	rm -f $(SOBJS) $(OBJS)
-
-distclean:	clean
-	rm -f $(LIB) core *.bak $(obj).depend
-
 #########################################################################
 
 # defines $(obj).depend target
diff --git a/board/renesas/MigoR/Makefile b/board/renesas/MigoR/Makefile
index 3529810..f33c466 100644
--- a/board/renesas/MigoR/Makefile
+++ b/board/renesas/MigoR/Makefile
@@ -36,12 +36,6 @@  SOBJS	:= $(addprefix $(obj),$(SOBJS))
 $(LIB):	$(OBJS) $(SOBJS)
 	$(call cmd_link_o_target, $(OBJS) $(SOBJS))
 
-clean:
-	rm -f $(SOBJS) $(OBJS)
-
-distclean:	clean
-	rm -f $(LIB) core *.bak $(obj).depend
-
 #########################################################################
 
 # defines $(obj).depend target
diff --git a/board/renesas/ap325rxa/Makefile b/board/renesas/ap325rxa/Makefile
index 5a2a0f3..94b78d4 100644
--- a/board/renesas/ap325rxa/Makefile
+++ b/board/renesas/ap325rxa/Makefile
@@ -35,12 +35,6 @@  SOBJS	:= $(addprefix $(obj),$(SOBJS))
 $(LIB):	$(OBJS) $(SOBJS)
 	$(call cmd_link_o_target, $(OBJS) $(SOBJS))
 
-clean:
-	rm -f $(SOBJS) $(OBJS)
-
-distclean:	clean
-	rm -f $(LIB) core *.bak $(obj).depend
-
 #########################################################################
 
 # defines $(obj).depend target
diff --git a/board/renesas/r2dplus/Makefile b/board/renesas/r2dplus/Makefile
index 7d92354..c17e1e2 100644
--- a/board/renesas/r2dplus/Makefile
+++ b/board/renesas/r2dplus/Makefile
@@ -31,12 +31,6 @@  SOBJS	:= $(addprefix $(obj),$(SOBJS))
 $(LIB):	$(OBJS) $(SOBJS)
 	$(call cmd_link_o_target, $(OBJS) $(SOBJS))
 
-clean:
-	rm -f $(SOBJS) $(OBJS)
-
-distclean:	clean
-	rm -f $(LIB) core *.bak $(obj).depend
-
 #########################################################################
 
 # defines $(obj).depend target
diff --git a/board/renesas/r7780mp/Makefile b/board/renesas/r7780mp/Makefile
index 14c5e42..1583772 100644
--- a/board/renesas/r7780mp/Makefile
+++ b/board/renesas/r7780mp/Makefile
@@ -32,12 +32,6 @@  SOBJS	:= $(addprefix $(obj),$(SOBJS))
 $(LIB):	$(OBJS) $(SOBJS)
 	$(call cmd_link_o_target, $(OBJS) $(SOBJS))
 
-clean:
-	rm -f $(SOBJS) $(OBJS)
-
-distclean:	clean
-	rm -f $(LIB) core *.bak $(obj).depend
-
 #########################################################################
 
 # defines $(obj).depend target
diff --git a/board/renesas/rsk7203/Makefile b/board/renesas/rsk7203/Makefile
index f908ba0..4b05a55 100644
--- a/board/renesas/rsk7203/Makefile
+++ b/board/renesas/rsk7203/Makefile
@@ -33,12 +33,6 @@  SOBJS	:= $(addprefix $(obj),$(SOBJS))
 $(LIB):	$(obj).depend $(OBJS) $(SOBJS)
 	$(call cmd_link_o_target, $(OBJS) $(SOBJS))
 
-clean:
-	rm -f $(SOBJS) $(OBJS)
-
-distclean:	clean
-	rm -f $(LIB) core *.bak .depend
-
 #########################################################################
 
 # defines $(obj).depend target
diff --git a/board/renesas/rsk7264/Makefile b/board/renesas/rsk7264/Makefile
index a0ffc87..9d56d07 100644
--- a/board/renesas/rsk7264/Makefile
+++ b/board/renesas/rsk7264/Makefile
@@ -18,12 +18,6 @@  SOBJS	:= $(addprefix $(obj),$(SOBJS))
 $(LIB):	$(obj).depend $(OBJS) $(SOBJS)
 	$(call cmd_link_o_target, $(OBJS) $(SOBJS))
 
-clean:
-	rm -f $(SOBJS) $(OBJS)
-
-distclean:	clean
-	rm -f $(LIB) core *.bak .depend
-
 #########################################################################
 
 # defines $(obj).depend target
diff --git a/board/renesas/sh7757lcr/Makefile b/board/renesas/sh7757lcr/Makefile
index dd14d7c..a292553 100644
--- a/board/renesas/sh7757lcr/Makefile
+++ b/board/renesas/sh7757lcr/Makefile
@@ -26,12 +26,6 @@  SOBJS	:= lowlevel_init.o
 $(LIB):	$(obj).depend $(COBJS) $(SOBJS)
 	$(call cmd_link_o_target, $(COBJS) $(SOBJS))
 
-clean:
-	rm -f $(SOBJS) $(OBJS)
-
-distclean:	clean
-	rm -f $(LIB) core *.bak $(obj).depend
-
 #########################################################################
 
 # defines $(obj).depend target
diff --git a/board/renesas/sh7763rdp/Makefile b/board/renesas/sh7763rdp/Makefile
index 5f37700..5bf6dfa 100644
--- a/board/renesas/sh7763rdp/Makefile
+++ b/board/renesas/sh7763rdp/Makefile
@@ -35,12 +35,6 @@  SOBJS	:= $(addprefix $(obj),$(SOBJS))
 $(LIB):	$(OBJS) $(SOBJS)
 	$(call cmd_link_o_target, $(OBJS) $(SOBJS))
 
-clean:
-	rm -f $(SOBJS) $(OBJS)
-
-distclean:	clean
-	rm -f $(LIB) core *.bak $(obj).depend
-
 #########################################################################
 
 # defines $(obj).depend target
diff --git a/board/renesas/sh7785lcr/Makefile b/board/renesas/sh7785lcr/Makefile
index e404fa6..1506beb 100644
--- a/board/renesas/sh7785lcr/Makefile
+++ b/board/renesas/sh7785lcr/Makefile
@@ -30,12 +30,6 @@  SOBJS	:= $(addprefix $(obj),$(SOBJS))
 $(LIB): $(obj).depend $(OBJS) $(SOBJS)
 	$(call cmd_link_o_target, $(OBJS) $(SOBJS))
 
-clean:
-	rm -f $(SOBJS) $(OBJS)
-
-distclean:	clean
-	rm -f $(LIB) core *.bak $(obj).depend
-
 #########################################################################
 
 # defines $(obj).depend target
diff --git a/board/ronetix/pm9261/Makefile b/board/ronetix/pm9261/Makefile
index 4b49808..0abca0d 100644
--- a/board/ronetix/pm9261/Makefile
+++ b/board/ronetix/pm9261/Makefile
@@ -41,12 +41,6 @@  SOBJS	:= $(addprefix $(obj),$(SOBJS-y))
 $(LIB):	$(obj).depend $(OBJS) $(SOBJS)
 	$(call cmd_link_o_target, $(OBJS))
 
-clean:
-	rm -f $(SOBJS) $(OBJS)
-
-distclean:	clean
-	rm -f $(LIB) core *.bak $(obj).depend
-
 #########################################################################
 
 # defines $(obj).depend target
diff --git a/board/ronetix/pm9263/Makefile b/board/ronetix/pm9263/Makefile
index 2fc9fb4..68baec7 100644
--- a/board/ronetix/pm9263/Makefile
+++ b/board/ronetix/pm9263/Makefile
@@ -41,12 +41,6 @@  SOBJS	:= $(addprefix $(obj),$(SOBJS-y))
 $(LIB):	$(obj).depend $(OBJS) $(SOBJS)
 	$(call cmd_link_o_target, $(OBJS))
 
-clean:
-	rm -f $(SOBJS) $(OBJS)
-
-distclean:	clean
-	rm -f $(LIB) core *.bak $(obj).depend
-
 #########################################################################
 
 # defines $(obj).depend target
diff --git a/board/ronetix/pm9g45/Makefile b/board/ronetix/pm9g45/Makefile
index cb01262..e586964 100644
--- a/board/ronetix/pm9g45/Makefile
+++ b/board/ronetix/pm9g45/Makefile
@@ -38,12 +38,6 @@  SOBJS	:= $(addprefix $(obj),$(SOBJS))
 $(LIB):	$(obj).depend $(OBJS) $(SOBJS)
 	$(call cmd_link_o_target, $(OBJS) $(SOBJS))
 
-clean:
-	rm -f $(SOBJS) $(OBJS)
-
-distclean:	clean
-	rm -f $(LIB) core *.bak $(obj).depend
-
 #########################################################################
 
 # defines $(obj).depend target
diff --git a/board/rpxsuper/Makefile b/board/rpxsuper/Makefile
index 73450ac..2e68457 100644
--- a/board/rpxsuper/Makefile
+++ b/board/rpxsuper/Makefile
@@ -34,12 +34,6 @@  SOBJS	:= $(addprefix $(obj),$(SOBJS))
 $(LIB):	$(obj).depend $(OBJS)
 	$(call cmd_link_o_target, $(OBJS))
 
-clean:
-	rm -f $(SOBJS) $(OBJS)
-
-distclean:	clean
-	rm -f $(LIB) core *.bak $(obj).depend
-
 #########################################################################
 
 # defines $(obj).depend target
diff --git a/board/rsdproto/Makefile b/board/rsdproto/Makefile
index d297622..c7fb645 100644
--- a/board/rsdproto/Makefile
+++ b/board/rsdproto/Makefile
@@ -35,12 +35,6 @@  SOBJS	:= $(addprefix $(obj),$(SOBJS))
 $(LIB):	$(obj).depend $(OBJS) $(SOBJS)
 	$(call cmd_link_o_target, $(OBJS) $(SOBJS))
 
-clean:
-	rm -f $(SOBJS) $(OBJS)
-
-distclean:	clean
-	rm -f $(LIB) core *.bak $(obj).depend
-
 #########################################################################
 
 # defines $(obj).depend target
diff --git a/board/sacsng/Makefile b/board/sacsng/Makefile
index eae0f02..d9e78ba 100644
--- a/board/sacsng/Makefile
+++ b/board/sacsng/Makefile
@@ -34,12 +34,6 @@  SOBJS	:= $(addprefix $(obj),$(SOBJS))
 $(LIB):	$(obj).depend $(OBJS)
 	$(call cmd_link_o_target, $(OBJS))
 
-clean:
-	rm -f $(SOBJS) $(OBJS)
-
-distclean:	clean
-	rm -f $(LIB) core *.bak $(obj).depend
-
 #########################################################################
 
 # defines $(obj).depend target
diff --git a/board/samsung/goni/Makefile b/board/samsung/goni/Makefile
index edc4665..ecde7a7 100644
--- a/board/samsung/goni/Makefile
+++ b/board/samsung/goni/Makefile
@@ -38,12 +38,6 @@  SOBJS	:= $(addprefix $(obj),$(SOBJS))
 $(LIB):	$(obj).depend $(SOBJS) $(OBJS)
 	$(call cmd_link_o_target, $(SOBJS) $(OBJS))
 
-clean:
-	rm -f $(SOBJS) $(OBJS)
-
-distclean:	clean
-	rm -f $(LIB) core *.bak $(obj).depend
-
 #########################################################################
 
 # defines $(obj).depend target
diff --git a/board/samsung/smdk2410/Makefile b/board/samsung/smdk2410/Makefile
index 0afe1e2..b8657b4 100644
--- a/board/samsung/smdk2410/Makefile
+++ b/board/samsung/smdk2410/Makefile
@@ -35,12 +35,6 @@  SOBJS	:= $(addprefix $(obj),$(SOBJS))
 $(LIB):	$(obj).depend $(OBJS) $(SOBJS)
 	$(call cmd_link_o_target, $(OBJS) $(SOBJS))
 
-clean:
-	rm -f $(SOBJS) $(OBJS)
-
-distclean:	clean
-	rm -f $(LIB) core *.bak $(obj).depend
-
 #########################################################################
 
 # defines $(obj).depend target
diff --git a/board/samsung/smdk6400/Makefile b/board/samsung/smdk6400/Makefile
index 40bf57e..0d3e63b 100644
--- a/board/samsung/smdk6400/Makefile
+++ b/board/samsung/smdk6400/Makefile
@@ -38,12 +38,6 @@  SOBJS	:= $(addprefix $(obj),$(SOBJS))
 $(LIB):	$(obj).depend $(SOBJS) $(OBJS)
 	$(call cmd_link_o_target, $(SOBJS) $(OBJS))
 
-clean:
-	rm -f $(SOBJS) $(OBJS)
-
-distclean:	clean
-	rm -f $(LIB) core *.bak $(obj).depend
-
 #########################################################################
 
 # defines $(obj).depend target
diff --git a/board/samsung/smdkc100/Makefile b/board/samsung/smdkc100/Makefile
index 61d4b25..b961113 100644
--- a/board/samsung/smdkc100/Makefile
+++ b/board/samsung/smdkc100/Makefile
@@ -39,12 +39,6 @@  SOBJS	:= $(addprefix $(obj),$(SOBJS))
 $(LIB):	$(obj).depend $(SOBJS) $(OBJS)
 	$(call cmd_link_o_target, $(SOBJS) $(OBJS))
 
-clean:
-	rm -f $(SOBJS) $(OBJS)
-
-distclean:	clean
-	rm -f $(LIB) core *.bak $(obj).depend
-
 #########################################################################
 
 # defines $(obj).depend target
diff --git a/board/samsung/universal_c210/Makefile b/board/samsung/universal_c210/Makefile
index 0200220..bfec08f 100644
--- a/board/samsung/universal_c210/Makefile
+++ b/board/samsung/universal_c210/Makefile
@@ -35,12 +35,6 @@  SOBJS	:= $(addprefix $(obj),$(SOBJS))
 $(LIB):	$(obj).depend $(SOBJS) $(OBJS)
 	$(call cmd_link_o_target, $(SOBJS) $(OBJS))
 
-clean:
-	rm -f $(SOBJS) $(OBJS)
-
-distclean:	clean
-	rm -f $(LIB) core *.bak $(obj).depend
-
 #########################################################################
 
 # defines $(obj).depend target
diff --git a/board/sandburst/karef/Makefile b/board/sandburst/karef/Makefile
index d447140..fe9b514 100644
--- a/board/sandburst/karef/Makefile
+++ b/board/sandburst/karef/Makefile
@@ -52,12 +52,6 @@  SOBJS	:= $(addprefix $(obj),$(SOBJS))
 $(LIB):	$(OBJS) $(SOBJS)
 	$(call cmd_link_o_target, $(OBJS))
 
-clean:
-	rm -f $(SOBJS) $(OBJS)
-
-distclean:	clean
-	rm -f $(LIB) core *.bak $(obj).depend
-
 #########################################################################
 
 # defines $(obj).depend target
diff --git a/board/sandburst/metrobox/Makefile b/board/sandburst/metrobox/Makefile
index e98c989..6019d59 100644
--- a/board/sandburst/metrobox/Makefile
+++ b/board/sandburst/metrobox/Makefile
@@ -50,12 +50,6 @@  SOBJS	:= $(addprefix $(obj),$(SOBJS))
 $(LIB):	$(OBJS) $(SOBJS)
 	$(call cmd_link_o_target, $(OBJS))
 
-clean:
-	rm -f $(SOBJS) $(OBJS)
-
-distclean:	clean
-	rm -f $(LIB) core *.bak $(obj).depend
-
 #########################################################################
 
 # defines $(obj).depend target
diff --git a/board/sbc405/Makefile b/board/sbc405/Makefile
index 0f53340..c9ec62d 100644
--- a/board/sbc405/Makefile
+++ b/board/sbc405/Makefile
@@ -34,12 +34,6 @@  SOBJS	:= $(addprefix $(obj),$(SOBJS))
 $(LIB):	$(OBJS) $(SOBJS)
 	$(call cmd_link_o_target, $(OBJS))
 
-clean:
-	rm -f $(SOBJS) $(OBJS)
-
-distclean:	clean
-	rm -f $(LIB) core *.bak $(obj).depend
-
 #########################################################################
 
 # defines $(obj).depend target
diff --git a/board/sbc8260/Makefile b/board/sbc8260/Makefile
index f1d86fc..3f0580f 100644
--- a/board/sbc8260/Makefile
+++ b/board/sbc8260/Makefile
@@ -34,12 +34,6 @@  SOBJS	:= $(addprefix $(obj),$(SOBJS))
 $(LIB):	$(obj).depend $(OBJS)
 	$(call cmd_link_o_target, $(OBJS))
 
-clean:
-	rm -f $(SOBJS) $(OBJS)
-
-distclean:	clean
-	rm -f $(LIB) core *.bak $(obj).depend
-
 #########################################################################
 
 # defines $(obj).depend target
diff --git a/board/sbc8349/Makefile b/board/sbc8349/Makefile
index 24c7b98..39e9b24 100644
--- a/board/sbc8349/Makefile
+++ b/board/sbc8349/Makefile
@@ -35,12 +35,6 @@  SOBJS	:= $(addprefix $(obj),$(SOBJS))
 $(LIB):	$(obj).depend $(OBJS)
 	$(call cmd_link_o_target, $(OBJS))
 
-clean:
-	rm -f $(SOBJS) $(OBJS)
-
-distclean:	clean
-	rm -f $(LIB) core *.bak $(obj).depend
-
 #########################################################################
 
 # defines $(obj).depend target
diff --git a/board/sbc8548/Makefile b/board/sbc8548/Makefile
index f68ec8d..150846e 100644
--- a/board/sbc8548/Makefile
+++ b/board/sbc8548/Makefile
@@ -40,12 +40,6 @@  SOBJS	:= $(addprefix $(obj),$(SOBJS))
 $(LIB):	$(obj).depend $(OBJS) $(SOBJS)
 	$(call cmd_link_o_target, $(OBJS))
 
-clean:
-	rm -f $(OBJS) $(SOBJS)
-
-distclean:	clean
-	rm -f $(LIB) core *.bak $(obj).depend
-
 #########################################################################
 
 # defines $(obj).depend target
diff --git a/board/sbc8560/Makefile b/board/sbc8560/Makefile
index a402ee4..ce01560 100644
--- a/board/sbc8560/Makefile
+++ b/board/sbc8560/Makefile
@@ -40,12 +40,6 @@  SOBJS	:= $(addprefix $(obj),$(SOBJS))
 $(LIB):	$(obj).depend $(OBJS) $(SOBJS)
 	$(call cmd_link_o_target, $(OBJS))
 
-clean:
-	rm -f $(OBJS) $(SOBJS)
-
-distclean:	clean
-	rm -f $(LIB) core *.bak $(obj).depend
-
 #########################################################################
 
 # defines $(obj).depend target
diff --git a/board/sbc8641d/Makefile b/board/sbc8641d/Makefile
index 433c132..caba9b9 100644
--- a/board/sbc8641d/Makefile
+++ b/board/sbc8641d/Makefile
@@ -36,13 +36,6 @@  SOBJS	:= $(addprefix $(obj),$(SOBJS))
 $(LIB):	$(obj).depend $(OBJS) $(SOBJS)
 	$(call cmd_link_o_target, $(OBJS))
 
-clean:
-	rm -f $(OBJS) $(SOBJS)
-
-.PHONY: distclean
-distclean:	clean
-	rm -f $(LIB) core *.bak $(obj).depend
-
 #########################################################################
 
 # defines $(obj).depend target
diff --git a/board/sc3/Makefile b/board/sc3/Makefile
index 48f5cf6..2d81a5e 100644
--- a/board/sc3/Makefile
+++ b/board/sc3/Makefile
@@ -35,12 +35,6 @@  SOBJS	:= $(addprefix $(obj),$(SOBJS))
 $(LIB):	$(OBJS) $(SOBJS)
 	$(call cmd_link_o_target, $(OBJS) $(SOBJS))
 
-clean:
-	rm -f $(SOBJS) $(OBJS)
-
-distclean:	clean
-	rm -f $(LIB) core *.bak $(obj).depend
-
 #########################################################################
 
 # defines $(obj).depend target
diff --git a/board/scb9328/Makefile b/board/scb9328/Makefile
index a980f76..7aea557 100644
--- a/board/scb9328/Makefile
+++ b/board/scb9328/Makefile
@@ -35,12 +35,6 @@  SOBJS	:= $(addprefix $(obj),$(SOBJS))
 $(LIB):	$(obj).depend $(OBJS) $(SOBJS)
 	$(call cmd_link_o_target, $(OBJS) $(SOBJS))
 
-clean:
-	rm -f $(SOBJS) $(OBJS)
-
-distclean:	clean
-	rm -f $(LIB) core *.bak $(obj).depend
-
 #########################################################################
 
 # defines $(obj).depend target
diff --git a/board/sheldon/simpc8313/Makefile b/board/sheldon/simpc8313/Makefile
index f18aded..2c9ad50 100644
--- a/board/sheldon/simpc8313/Makefile
+++ b/board/sheldon/simpc8313/Makefile
@@ -34,12 +34,6 @@  SOBJS	:= $(addprefix $(obj),$(SOBJS))
 $(LIB):	$(obj).depend $(OBJS)
 	$(call cmd_link_o_target, $(OBJS))
 
-clean:
-	rm -f $(SOBJS) $(OBJS)
-
-distclean:	clean
-	rm -f $(LIB) core *.bak $(obj).depend
-
 #########################################################################
 
 # defines $(obj).depend target
diff --git a/board/shmin/Makefile b/board/shmin/Makefile
index 06888cd..33fd9c7 100644
--- a/board/shmin/Makefile
+++ b/board/shmin/Makefile
@@ -33,12 +33,6 @@  SOBJS	:= $(addprefix $(obj),$(SOBJS))
 $(LIB):	$(obj).depend $(OBJS) $(SOBJS)
 	$(AR) $(ARFLAGS) $@ $(OBJS) $(SOBJS)
 
-clean:
-	rm -f $(SOBJS) $(OBJS)
-
-distclean:	clean
-	rm -f $(LIB) core *.bak .depend
-
 #########################################################################
 
 # defines $(obj).depend target
diff --git a/board/siemens/SCM/Makefile b/board/siemens/SCM/Makefile
index 3871079..07cc5a6 100644
--- a/board/siemens/SCM/Makefile
+++ b/board/siemens/SCM/Makefile
@@ -40,12 +40,6 @@  SOBJS	:= $(addprefix $(obj),$(SOBJS))
 $(LIB):	$(OBJS)
 	$(call cmd_link_o_target, $(OBJS))
 
-clean:
-	rm -f $(SOBJS) $(OBJS)
-
-distclean:	clean
-	rm -f $(LIB) core *.bak $(obj).depend
-
 #########################################################################
 
 # defines $(obj).depend target
diff --git a/board/socrates/Makefile b/board/socrates/Makefile
index 1ca6377..ec2afe0 100644
--- a/board/socrates/Makefile
+++ b/board/socrates/Makefile
@@ -42,12 +42,6 @@  SOBJS	:= $(addprefix $(obj),$(SOBJS))
 $(LIB):	$(obj).depend $(OBJS) $(SOBJS)
 	$(call cmd_link_o_target, $(OBJS))
 
-clean:
-	rm -f $(OBJS) $(SOBJS)
-
-distclean:	clean
-	rm -f $(LIB) core *.bak $(obj).depend
-
 #########################################################################
 
 # defines $(obj).depend target
diff --git a/board/sorcery/Makefile b/board/sorcery/Makefile
index ec5cf53..e1752e3 100644
--- a/board/sorcery/Makefile
+++ b/board/sorcery/Makefile
@@ -34,12 +34,6 @@  SOBJS	:= $(addprefix $(obj),$(SOBJS))
 $(LIB):	$(OBJS)
 	$(call cmd_link_o_target, $(OBJS))
 
-clean:
-	rm -f $(SOBJS) $(OBJS)
-
-distclean:	clean
-	rm -f $(LIB) core *.bak $(obj).depend
-
 #########################################################################
 
 # defines $(obj).depend target
diff --git a/board/spear/common/Makefile b/board/spear/common/Makefile
index e0df6c1..11f81e4 100644
--- a/board/spear/common/Makefile
+++ b/board/spear/common/Makefile
@@ -39,12 +39,6 @@  SOBJS	:= $(addprefix $(obj),$(SOBJS))
 $(LIB):	$(obj).depend $(OBJS) $(SOBJS)
 	$(call cmd_link_o_target, $(OBJS) $(SOBJS))
 
-clean:
-	rm -f $(SOBJS) $(OBJS)
-
-distclean:	clean
-	rm -f $(LIB) core *.bak $(obj).depend
-
 #########################################################################
 # This is for $(obj).depend target
 include $(SRCTREE)/rules.mk
diff --git a/board/spear/spear300/Makefile b/board/spear/spear300/Makefile
index b9b0fed..aa10749 100644
--- a/board/spear/spear300/Makefile
+++ b/board/spear/spear300/Makefile
@@ -35,12 +35,6 @@  SOBJS	:= $(addprefix $(obj),$(SOBJS))
 $(LIB):	$(obj).depend $(OBJS) $(SOBJS)
 	$(call cmd_link_o_target, $(OBJS) $(SOBJS))
 
-clean:
-	rm -f $(SOBJS) $(OBJS)
-
-distclean:	clean
-	rm -f $(LIB) core *.bak $(obj).depend
-
 #########################################################################
 
 # defines $(obj).depend target
diff --git a/board/spear/spear310/Makefile b/board/spear/spear310/Makefile
index 6dce093..c5b6327 100644
--- a/board/spear/spear310/Makefile
+++ b/board/spear/spear310/Makefile
@@ -35,12 +35,6 @@  SOBJS	:= $(addprefix $(obj),$(SOBJS))
 $(LIB):	$(obj).depend $(OBJS) $(SOBJS)
 	$(call cmd_link_o_target, $(OBJS) $(SOBJS))
 
-clean:
-	rm -f $(SOBJS) $(OBJS)
-
-distclean:	clean
-	rm -f $(LIB) core *.bak $(obj).depend
-
 #########################################################################
 
 # defines $(obj).depend target
diff --git a/board/spear/spear320/Makefile b/board/spear/spear320/Makefile
index f6bd7dd..68dd734 100644
--- a/board/spear/spear320/Makefile
+++ b/board/spear/spear320/Makefile
@@ -35,12 +35,6 @@  SOBJS	:= $(addprefix $(obj),$(SOBJS))
 $(LIB):	$(obj).depend $(OBJS) $(SOBJS)
 	$(call cmd_link_o_target, $(OBJS) $(SOBJS))
 
-clean:
-	rm -f $(SOBJS) $(OBJS)
-
-distclean:	clean
-	rm -f $(LIB) core *.bak $(obj).depend
-
 #########################################################################
 
 # defines $(obj).depend target
diff --git a/board/spear/spear600/Makefile b/board/spear/spear600/Makefile
index 6b643bf..e2bd5ab 100644
--- a/board/spear/spear600/Makefile
+++ b/board/spear/spear600/Makefile
@@ -35,12 +35,6 @@  SOBJS	:= $(addprefix $(obj),$(SOBJS))
 $(LIB):	$(obj).depend $(OBJS) $(SOBJS)
 	$(call cmd_link_o_target, $(OBJS) $(SOBJS))
 
-clean:
-	rm -f $(SOBJS) $(OBJS)
-
-distclean:	clean
-	rm -f $(LIB) core *.bak $(obj).depend
-
 #########################################################################
 
 # defines $(obj).depend target
diff --git a/board/st-ericsson/u8500/Makefile b/board/st-ericsson/u8500/Makefile
index 91c2abf..4091a42 100644
--- a/board/st-ericsson/u8500/Makefile
+++ b/board/st-ericsson/u8500/Makefile
@@ -34,12 +34,6 @@  SOBJS	:= $(addprefix $(obj),$(SOBJS))
 $(LIB): $(obj).depend $(OBJS) $(SOBJS)
 	$(call cmd_link_o_target, $(OBJS) $(SOBJS))
 
-clean:
-	rm -f $(SOBJS) $(OBJS)
-
-distclean:	clean
-	rm -f $(LIB) core *.bak $(obj).depend
-
 #########################################################################
 
 # defines $(obj).depend target
diff --git a/board/st/nhk8815/Makefile b/board/st/nhk8815/Makefile
index 60b87b1..a89dcc1 100644
--- a/board/st/nhk8815/Makefile
+++ b/board/st/nhk8815/Makefile
@@ -39,12 +39,6 @@  SOBJS	:= $(addprefix $(obj),$(SOBJS))
 $(LIB): $(obj).depend $(OBJS) $(SOBJS)
 	$(call cmd_link_o_target, $(OBJS) $(SOBJS))
 
-clean:
-	rm -f $(SOBJS) $(OBJS)
-
-distclean:	clean
-	rm -f $(LIB) core *.bak $(obj).depend
-
 #########################################################################
 
 # defines $(obj).depend target
diff --git a/board/stx/stxgp3/Makefile b/board/stx/stxgp3/Makefile
index 5eccfab..61ee8a5 100644
--- a/board/stx/stxgp3/Makefile
+++ b/board/stx/stxgp3/Makefile
@@ -38,12 +38,6 @@  SOBJS	:= $(addprefix $(obj),$(SOBJS))
 $(LIB):	$(obj).depend $(OBJS) $(SOBJS)
 	$(call cmd_link_o_target, $(OBJS))
 
-clean:
-	rm -f $(OBJS) $(SOBJS)
-
-distclean:	clean
-	rm -f $(LIB) core *.bak $(obj).depend
-
 #########################################################################
 
 # defines $(obj).depend target
diff --git a/board/stx/stxssa/Makefile b/board/stx/stxssa/Makefile
index 6b47ceb..ce6ab50 100644
--- a/board/stx/stxssa/Makefile
+++ b/board/stx/stxssa/Makefile
@@ -37,12 +37,6 @@  SOBJS	:= $(addprefix $(obj),$(SOBJS))
 $(LIB):	$(obj).depend $(OBJS) $(SOBJS)
 	$(call cmd_link_o_target, $(OBJS))
 
-clean:
-	rm -f $(OBJS) $(SOBJS)
-
-distclean:	clean
-	rm -f $(LIB) core *.bak $(obj).depend
-
 #########################################################################
 
 # defines $(obj).depend target
diff --git a/board/sx1/Makefile b/board/sx1/Makefile
index 27d85b0..292459f 100644
--- a/board/sx1/Makefile
+++ b/board/sx1/Makefile
@@ -35,12 +35,6 @@  SOBJS	:= $(addprefix $(obj),$(SOBJS))
 $(LIB):	$(obj).depend $(OBJS) $(SOBJS)
 	$(call cmd_link_o_target, $(OBJS) $(SOBJS))
 
-clean:
-	rm -f $(SOBJS) $(OBJS)
-
-distclean:	clean
-	rm -f $(LIB) core *.bak $(obj).depend
-
 #########################################################################
 
 # defines $(obj).depend target
diff --git a/board/syteco/jadecpu/Makefile b/board/syteco/jadecpu/Makefile
index 30818d2..c99252c 100644
--- a/board/syteco/jadecpu/Makefile
+++ b/board/syteco/jadecpu/Makefile
@@ -39,12 +39,6 @@  SOBJS	:= $(addprefix $(obj),$(SOBJS))
 $(LIB):	$(obj).depend $(OBJS) $(SOBJS)
 	$(call cmd_link_o_target, $(OBJS) $(SOBJS))
 
-clean:
-	rm -f $(SOBJS) $(OBJS)
-
-distclean:	clean
-	rm -f $(LIB) core *.bak $(obj).depend
-
 #########################################################################
 
 # defines $(obj).depend target
diff --git a/board/syteco/zmx25/Makefile b/board/syteco/zmx25/Makefile
index 5a0e5b3..7463e53 100644
--- a/board/syteco/zmx25/Makefile
+++ b/board/syteco/zmx25/Makefile
@@ -35,12 +35,6 @@  SOBJS	:= $(addprefix $(obj),$(SOBJS))
 $(LIB):	$(obj).depend $(OBJS) $(SOBJS)
 	$(call cmd_link_o_target, $(OBJS) $(SOBJS))
 
-clean:
-	rm -f $(SOBJS) $(OBJS)
-
-distclean:	clean
-	rm -f $(LIB) core *.bak $(obj).depend
-
 #########################################################################
 
 # defines $(obj).depend target
diff --git a/board/t3corp/Makefile b/board/t3corp/Makefile
index 4211b7b..aafd3c9 100644
--- a/board/t3corp/Makefile
+++ b/board/t3corp/Makefile
@@ -39,12 +39,6 @@  all:	$(LIB) $(SOBJS)
 $(LIB):	$(OBJS)
 	$(call cmd_link_o_target, $^)
 
-clean:
-	rm -f $(SOBJS) $(OBJS)
-
-distclean:	clean
-	rm -f $(LIB) core *.bak $(obj).depend
-
 #########################################################################
 
 # defines $(obj).depend target
diff --git a/board/tcm-bf518/Makefile b/board/tcm-bf518/Makefile
index cde8168..4e128bb 100644
--- a/board/tcm-bf518/Makefile
+++ b/board/tcm-bf518/Makefile
@@ -38,12 +38,6 @@  SOBJS	:= $(addprefix $(obj),$(SOBJS-y))
 $(LIB):	$(obj).depend $(OBJS) $(SOBJS)
 	$(call cmd_link_o_target, $(OBJS) $(SOBJS))
 
-clean:
-	rm -f $(SOBJS) $(OBJS)
-
-distclean:	clean
-	rm -f $(LIB) core *.bak $(obj).depend
-
 #########################################################################
 
 # defines $(obj).depend target
diff --git a/board/tcm-bf537/Makefile b/board/tcm-bf537/Makefile
index 4d7bf14..9a31b8d 100644
--- a/board/tcm-bf537/Makefile
+++ b/board/tcm-bf537/Makefile
@@ -38,12 +38,6 @@  SOBJS	:= $(addprefix $(obj),$(SOBJS-y))
 $(LIB):	$(obj).depend $(OBJS) $(SOBJS)
 	$(call cmd_link_o_target, $(OBJS) $(SOBJS))
 
-clean:
-	rm -f $(SOBJS) $(OBJS)
-
-distclean:	clean
-	rm -f $(LIB) core *.bak $(obj).depend
-
 #########################################################################
 
 # defines $(obj).depend target
diff --git a/board/ti/am3517crane/Makefile b/board/ti/am3517crane/Makefile
index 1fe2bca..59a9210 100644
--- a/board/ti/am3517crane/Makefile
+++ b/board/ti/am3517crane/Makefile
@@ -32,12 +32,6 @@  OBJS	:= $(addprefix $(obj),$(COBJS))
 $(LIB):	$(obj).depend $(OBJS)
 	$(call cmd_link_o_target, $(OBJS))
 
-clean:
-	rm -f $(OBJS)
-
-distclean:	clean
-	rm -f $(LIB) core *.bak $(obj).depend
-
 #########################################################################
 
 # defines $(obj).depend target
diff --git a/board/ti/beagle/Makefile b/board/ti/beagle/Makefile
index d9f445f..a07cb25 100644
--- a/board/ti/beagle/Makefile
+++ b/board/ti/beagle/Makefile
@@ -35,12 +35,6 @@  OBJS	:= $(addprefix $(obj),$(COBJS))
 $(LIB):	$(obj).depend $(OBJS)
 	$(call cmd_link_o_target, $(OBJS))
 
-clean:
-	rm -f $(OBJS)
-
-distclean:	clean
-	rm -f $(LIB) core *.bak $(obj).depend
-
 #########################################################################
 
 # defines $(obj).depend target
diff --git a/board/ti/evm/Makefile b/board/ti/evm/Makefile
index 2ff8356..229214f 100644
--- a/board/ti/evm/Makefile
+++ b/board/ti/evm/Makefile
@@ -33,12 +33,6 @@  OBJS	:= $(addprefix $(obj),$(COBJS))
 $(LIB):	$(obj).depend $(OBJS)
 	$(call cmd_link_o_target, $(OBJS))
 
-clean:
-	rm -f $(OBJS)
-
-distclean:	clean
-	rm -f $(LIB) core *.bak $(obj).depend
-
 #########################################################################
 
 # defines $(obj).depend target
diff --git a/board/ti/omap1510inn/Makefile b/board/ti/omap1510inn/Makefile
index 9281fc2..00de439 100644
--- a/board/ti/omap1510inn/Makefile
+++ b/board/ti/omap1510inn/Makefile
@@ -35,12 +35,6 @@  SOBJS	:= $(addprefix $(obj),$(SOBJS))
 $(LIB):	$(obj).depend $(OBJS) $(SOBJS)
 	$(call cmd_link_o_target, $(OBJS) $(SOBJS))
 
-clean:
-	rm -f $(SOBJS) $(OBJS)
-
-distclean:	clean
-	rm -f $(LIB) core *.bak $(obj).depend
-
 #########################################################################
 
 # defines $(obj).depend target
diff --git a/board/ti/omap1610inn/Makefile b/board/ti/omap1610inn/Makefile
index 4e21a37..2b8641f 100644
--- a/board/ti/omap1610inn/Makefile
+++ b/board/ti/omap1610inn/Makefile
@@ -35,12 +35,6 @@  SOBJS	:= $(addprefix $(obj),$(SOBJS))
 $(LIB):	$(obj).depend $(OBJS) $(SOBJS)
 	$(call cmd_link_o_target, $(OBJS) $(SOBJS))
 
-clean:
-	rm -f $(SOBJS) $(OBJS)
-
-distclean:	clean
-	rm -f $(LIB) core *.bak $(obj).depend
-
 #########################################################################
 
 # defines $(obj).depend target
diff --git a/board/ti/omap2420h4/Makefile b/board/ti/omap2420h4/Makefile
index 5174d89..cddd7e6 100644
--- a/board/ti/omap2420h4/Makefile
+++ b/board/ti/omap2420h4/Makefile
@@ -35,12 +35,6 @@  SOBJS	:= $(addprefix $(obj),$(SOBJS))
 $(LIB):	$(obj).depend $(OBJS) $(SOBJS)
 	$(call cmd_link_o_target, $(OBJS) $(SOBJS))
 
-clean:
-	rm -f $(SOBJS) $(OBJS)
-
-distclean:	clean
-	rm -f $(LIB) core *.bak $(obj).depend
-
 #########################################################################
 
 # defines $(obj).depend target
diff --git a/board/ti/omap5912osk/Makefile b/board/ti/omap5912osk/Makefile
index e2de898..c5520cb 100644
--- a/board/ti/omap5912osk/Makefile
+++ b/board/ti/omap5912osk/Makefile
@@ -35,12 +35,6 @@  SOBJS	:= $(addprefix $(obj),$(SOBJS))
 $(LIB):	$(obj).depend $(OBJS) $(SOBJS)
 	$(call cmd_link_o_target, $(OBJS) $(SOBJS))
 
-clean:
-	rm -f $(SOBJS) $(OBJS)
-
-distclean:	clean
-	rm -f $(LIB) core *.bak $(obj).depend
-
 #########################################################################
 
 # defines $(obj).depend target
diff --git a/board/ti/omap730p2/Makefile b/board/ti/omap730p2/Makefile
index a04f7aa..af019b8 100644
--- a/board/ti/omap730p2/Makefile
+++ b/board/ti/omap730p2/Makefile
@@ -35,12 +35,6 @@  SOBJS	:= $(addprefix $(obj),$(SOBJS))
 $(LIB):	$(obj).depend $(OBJS) $(SOBJS)
 	$(call cmd_link_o_target, $(OBJS) $(SOBJS))
 
-clean:
-	rm -f $(SOBJS) $(OBJS)
-
-distclean:	clean
-	rm -f $(LIB) core *.bak $(obj).depend
-
 #########################################################################
 
 # defines $(obj).depend target
diff --git a/board/ti/panda/Makefile b/board/ti/panda/Makefile
index 09f88ee..ec493f5 100644
--- a/board/ti/panda/Makefile
+++ b/board/ti/panda/Makefile
@@ -35,12 +35,6 @@  OBJS	:= $(addprefix $(obj),$(COBJS))
 $(LIB):	$(obj).depend $(OBJS)
 	$(call cmd_link_o_target, $(OBJS))
 
-clean:
-	rm -f $(OBJS)
-
-distclean:	clean
-	rm -f $(LIB) core *.bak $(obj).depend
-
 #########################################################################
 
 # defines $(obj).depend target
diff --git a/board/ti/sdp3430/Makefile b/board/ti/sdp3430/Makefile
index bce8534..9660a4e 100644
--- a/board/ti/sdp3430/Makefile
+++ b/board/ti/sdp3430/Makefile
@@ -33,12 +33,6 @@  OBJS	:= $(addprefix $(obj),$(COBJS))
 $(LIB):	$(obj).depend $(OBJS)
 	$(call cmd_link_o_target, $(OBJS))
 
-clean:
-	rm -f $(OBJS)
-
-distclean:	clean
-	rm -f $(LIB) core *.bak $(obj).depend
-
 #########################################################################
 
 # defines $(obj).depend target
diff --git a/board/ti/sdp4430/Makefile b/board/ti/sdp4430/Makefile
index 12f2743..806fdf4 100644
--- a/board/ti/sdp4430/Makefile
+++ b/board/ti/sdp4430/Makefile
@@ -35,12 +35,6 @@  OBJS	:= $(addprefix $(obj),$(COBJS))
 $(LIB):	$(obj).depend $(OBJS)
 	$(call cmd_link_o_target, $(OBJS))
 
-clean:
-	rm -f $(OBJS)
-
-distclean:	clean
-	rm -f $(LIB) core *.bak $(obj).depend
-
 #########################################################################
 
 # defines $(obj).depend target
diff --git a/board/ti/tnetv107xevm/Makefile b/board/ti/tnetv107xevm/Makefile
index 03238f0..baa53e3 100644
--- a/board/ti/tnetv107xevm/Makefile
+++ b/board/ti/tnetv107xevm/Makefile
@@ -34,12 +34,6 @@  all: $(LIB)
 $(LIB):	$(obj).depend $(OBJS) $(SOBJS)
 	$(call cmd_link_o_target, $(OBJS) $(SOBJS))
 
-clean:
-	rm -f $(SOBJS) $(OBJS)
-
-distclean:	clean
-	rm -f $(LIB) core *.bak *~ .depend
-
 #########################################################################
 # This is for $(obj).depend target
 include $(SRCTREE)/rules.mk
diff --git a/board/timll/devkit8000/Makefile b/board/timll/devkit8000/Makefile
index 3f160b2..f64da63 100644
--- a/board/timll/devkit8000/Makefile
+++ b/board/timll/devkit8000/Makefile
@@ -36,12 +36,6 @@  OBJS	:= $(addprefix $(obj),$(COBJS))
 $(LIB):	$(obj).depend $(OBJS)
 	$(call cmd_link_o_target, $(OBJS))
 
-clean:
-	rm -f $(OBJS)
-
-distclean:	clean
-	rm -f $(LIB) core *.bak $(obj).depend
-
 #########################################################################
 
 # defines $(obj).depend target
diff --git a/board/total5200/Makefile b/board/total5200/Makefile
index 066d9ca..f5984f7 100644
--- a/board/total5200/Makefile
+++ b/board/total5200/Makefile
@@ -34,12 +34,6 @@  SOBJS	:= $(addprefix $(obj),$(SOBJS))
 $(LIB):	$(obj).depend $(OBJS)
 	$(call cmd_link_o_target, $(OBJS))
 
-clean:
-	rm -f $(SOBJS) $(OBJS)
-
-distclean:	clean
-	rm -f $(LIB) core *.bak $(obj).depend
-
 #########################################################################
 
 # defines $(obj).depend target
diff --git a/board/tqc/tqm5200/Makefile b/board/tqc/tqm5200/Makefile
index d0e68c3..c7fa474 100644
--- a/board/tqc/tqm5200/Makefile
+++ b/board/tqc/tqm5200/Makefile
@@ -34,12 +34,6 @@  SOBJS	:= $(addprefix $(obj),$(SOBJS))
 $(LIB):	$(obj).depend $(OBJS)
 	$(call cmd_link_o_target, $(OBJS))
 
-clean:
-	rm -f $(SOBJS) $(OBJS)
-
-distclean:	clean
-	rm -f $(LIB) core *.bak $(obj).depend
-
 cam5200_flash.o:	cam5200_flash.c
 	$(CC) $(CFLAGS) -c -o $@ $<
 
diff --git a/board/tqc/tqm834x/Makefile b/board/tqc/tqm834x/Makefile
index bce53a4..bcf73c3 100644
--- a/board/tqc/tqm834x/Makefile
+++ b/board/tqc/tqm834x/Makefile
@@ -38,12 +38,6 @@  SOBJS	:= $(addprefix $(obj),$(SOBJS))
 $(LIB):	$(obj).depend $(OBJS)
 	$(call cmd_link_o_target, $(OBJS))
 
-clean:
-	rm -f $(SOBJS) $(OBJS)
-
-distclean:	clean
-	rm -f $(LIB) core *.bak $(obj).depend
-
 #########################################################################
 
 # defines $(obj).depend target
diff --git a/board/tqc/tqm85xx/Makefile b/board/tqc/tqm85xx/Makefile
index a40a895..0a5501f 100644
--- a/board/tqc/tqm85xx/Makefile
+++ b/board/tqc/tqm85xx/Makefile
@@ -40,12 +40,6 @@  SOBJS	:= $(addprefix $(obj),$(SOBJS))
 $(LIB):	$(obj).depend $(OBJS) $(SOBJS)
 	$(call cmd_link_o_target, $(OBJS))
 
-clean:
-	rm -f $(OBJS) $(SOBJS)
-
-distclean:	clean
-	rm -f $(LIB) core *.bak $(obj).depend
-
 #########################################################################
 
 # defines $(obj).depend target
diff --git a/board/trizepsiv/Makefile b/board/trizepsiv/Makefile
index eac00ae..0928af5 100644
--- a/board/trizepsiv/Makefile
+++ b/board/trizepsiv/Makefile
@@ -33,12 +33,6 @@  OBJS	:= $(addprefix $(obj),$(COBJS))
 $(LIB):	$(obj).depend $(OBJS)
 	$(call cmd_link_o_target, $(OBJS))
 
-clean:
-	rm -f $(OBJS)
-
-distclean:	clean
-	rm -f $(LIB) core *.bak $(obj).depend
-
 #########################################################################
 
 # defines $(obj).depend target
diff --git a/board/ttcontrol/vision2/Makefile b/board/ttcontrol/vision2/Makefile
index 9ed8246..393ad68 100644
--- a/board/ttcontrol/vision2/Makefile
+++ b/board/ttcontrol/vision2/Makefile
@@ -32,12 +32,6 @@  SOBJS	:= $(addprefix $(obj),$(SOBJS))
 $(LIB):	$(obj).depend $(OBJS) $(SOBJS)
 	$(call cmd_link_o_target, $(OBJS) $(SOBJS))
 
-clean:
-	rm -f $(SOBJS) $(OBJS)
-
-distclean:	clean
-	rm -f $(LIB) core *.bak .depend
-
 #########################################################################
 
 # defines $(obj).depend target
diff --git a/board/v38b/Makefile b/board/v38b/Makefile
index d463db4..af47164 100644
--- a/board/v38b/Makefile
+++ b/board/v38b/Makefile
@@ -34,12 +34,6 @@  SOBJS	:= $(addprefix $(obj),$(SOBJS))
 $(LIB):	$(obj).depend $(OBJS)
 	$(call cmd_link_o_target, $(OBJS))
 
-clean:
-	rm -f $(SOBJS) $(OBJS)
-
-distclean:	clean
-	rm -f $(LIB) core *.bak $(obj).depend
-
 #########################################################################
 
 # defines $(obj).depend target
diff --git a/board/ve8313/Makefile b/board/ve8313/Makefile
index 4a1b249..2f79b87 100644
--- a/board/ve8313/Makefile
+++ b/board/ve8313/Makefile
@@ -34,12 +34,6 @@  SOBJS	:= $(addprefix $(obj),$(SOBJS))
 $(LIB):	$(obj).depend $(OBJS)
 	$(call cmd_link_o_target, $(OBJS))
 
-clean:
-	rm -f $(SOBJS) $(OBJS)
-
-distclean:	clean
-	rm -f $(LIB) core *.bak $(obj).depend
-
 #########################################################################
 
 # defines $(obj).depend target
diff --git a/board/vpac270/Makefile b/board/vpac270/Makefile
index f9acf63..b5c60fd 100644
--- a/board/vpac270/Makefile
+++ b/board/vpac270/Makefile
@@ -31,12 +31,6 @@  OBJS	:= $(addprefix $(obj),$(COBJS))
 $(LIB):	$(obj).depend $(OBJS)
 	$(call cmd_link_o_target, $(OBJS))
 
-clean:
-	rm -f $(OBJS)
-
-distclean:	clean
-	rm -f $(LIB) core *.bak $(obj).depend
-
 #########################################################################
 
 # defines $(obj).depend target
diff --git a/board/w7o/Makefile b/board/w7o/Makefile
index 5c94870..1b5ae29 100644
--- a/board/w7o/Makefile
+++ b/board/w7o/Makefile
@@ -39,12 +39,6 @@  SOBJS	:= $(addprefix $(obj),$(SOBJS))
 $(LIB):	$(OBJS) $(SOBJS)
 	$(call cmd_link_o_target, $^)
 
-clean:
-	rm -f $(SOBJS) $(OBJS)
-
-distclean:	clean
-	rm -f $(LIB) core *.bak $(obj).depend
-
 #########################################################################
 
 # defines $(obj).depend target
diff --git a/board/xaeniax/Makefile b/board/xaeniax/Makefile
index 0a2fe96..d2b6238 100644
--- a/board/xaeniax/Makefile
+++ b/board/xaeniax/Makefile
@@ -33,12 +33,6 @@  OBJS	:= $(addprefix $(obj),$(COBJS))
 $(LIB):	$(obj).depend $(OBJS)
 	$(call cmd_link_o_target, $(OBJS))
 
-clean:
-	rm -f $(OBJS)
-
-distclean:	clean
-	rm -f $(LIB) core *.bak $(obj).depend
-
 #########################################################################
 
 # defines $(obj).depend target
diff --git a/board/xes/common/Makefile b/board/xes/common/Makefile
index 39d105f..30871a9 100644
--- a/board/xes/common/Makefile
+++ b/board/xes/common/Makefile
@@ -44,12 +44,6 @@  SOBJS	:= $(addprefix $(obj),$(SOBJS))
 $(LIB):	$(obj).depend $(OBJS)
 	$(call cmd_link_o_target, $(OBJS))
 
-clean:
-	rm -f $(SOBJS) $(OBJS)
-
-distclean:	clean
-	rm -f $(LIB) core *.bak $(obj).depend
-
 #########################################################################
 
 # defines $(obj).depend target
diff --git a/board/xes/xpedite1000/Makefile b/board/xes/xpedite1000/Makefile
index 5b0ffc2..905ca7a 100644
--- a/board/xes/xpedite1000/Makefile
+++ b/board/xes/xpedite1000/Makefile
@@ -35,12 +35,6 @@  SOBJS	:= $(addprefix $(obj),$(SOBJS))
 $(LIB):	$(OBJS) $(SOBJS)
 	$(call cmd_link_o_target, $(OBJS))
 
-clean:
-	rm -f $(SOBJS) $(OBJS)
-
-distclean:	clean
-	rm -f $(LIB) core *.bak $(obj).depend
-
 #########################################################################
 
 # defines $(obj).depend target
diff --git a/board/xes/xpedite517x/Makefile b/board/xes/xpedite517x/Makefile
index cac32e9..2c7301d 100644
--- a/board/xes/xpedite517x/Makefile
+++ b/board/xes/xpedite517x/Makefile
@@ -36,12 +36,6 @@  SOBJS	:= $(addprefix $(obj),$(SOBJS-y))
 $(LIB):	$(obj).depend $(OBJS) $(SOBJS)
 	$(call cmd_link_o_target, $(OBJS))
 
-clean:
-	rm -f $(OBJS) $(SOBJS)
-
-distclean:	clean
-	rm -f $(LIB) core *.bak .depend
-
 #########################################################################
 
 # defines $(obj).depend target
diff --git a/board/xes/xpedite520x/Makefile b/board/xes/xpedite520x/Makefile
index a774816..496012b 100644
--- a/board/xes/xpedite520x/Makefile
+++ b/board/xes/xpedite520x/Makefile
@@ -39,12 +39,6 @@  SOBJS	:= $(addprefix $(obj),$(SOBJS-y))
 $(LIB):	$(obj).depend $(OBJS) $(SOBJS)
 	$(call cmd_link_o_target, $(OBJS))
 
-clean:
-	rm -f $(OBJS) $(SOBJS)
-
-distclean:	clean
-	rm -f $(LIB) core *.bak .depend
-
 #########################################################################
 
 # defines $(obj).depend target
diff --git a/board/xes/xpedite537x/Makefile b/board/xes/xpedite537x/Makefile
index 86138f9..6b8d5a2 100644
--- a/board/xes/xpedite537x/Makefile
+++ b/board/xes/xpedite537x/Makefile
@@ -29,12 +29,6 @@  SOBJS	:= $(addprefix $(obj),$(SOBJS-y))
 $(LIB):	$(obj).depend $(OBJS) $(SOBJS)
 	$(call cmd_link_o_target, $(OBJS))
 
-clean:
-	rm -f $(OBJS) $(SOBJS)
-
-distclean:	clean
-	rm -f $(LIB) core *.bak .depend
-
 #########################################################################
 
 # defines $(obj).depend target
diff --git a/board/xes/xpedite550x/Makefile b/board/xes/xpedite550x/Makefile
index 7bc224c..bafa753 100644
--- a/board/xes/xpedite550x/Makefile
+++ b/board/xes/xpedite550x/Makefile
@@ -23,12 +23,6 @@  SOBJS	:= $(addprefix $(obj),$(SOBJS-y))
 $(LIB):	$(obj).depend $(OBJS) $(SOBJS)
 	$(call cmd_link_o_target, $(OBJS))
 
-clean:
-	rm -f $(OBJS) $(SOBJS)
-
-distclean:	clean
-	rm -f $(LIB) core *.bak .depend
-
 #########################################################################
 
 # defines $(obj).depend target
diff --git a/board/xilinx/microblaze-generic/Makefile b/board/xilinx/microblaze-generic/Makefile
index efe64d8..761203d 100644
--- a/board/xilinx/microblaze-generic/Makefile
+++ b/board/xilinx/microblaze-generic/Makefile
@@ -34,12 +34,6 @@  SOBJS	:= $(addprefix $(obj),$(SOBJS))
 $(LIB):	$(OBJS) $(SOBJS)
 	$(call cmd_link_o_target, $^)
 
-clean:
-	rm -f $(SOBJS) $(OBJS)
-
-distclean:	clean
-	rm -f $(LIB) core *.bak $(obj).depend
-
 #########################################################################
 
 # defines $(obj).depend target
diff --git a/board/xilinx/ppc405-generic/Makefile b/board/xilinx/ppc405-generic/Makefile
index 501fd46..73d5145 100644
--- a/board/xilinx/ppc405-generic/Makefile
+++ b/board/xilinx/ppc405-generic/Makefile
@@ -41,12 +41,6 @@  SOBJS	:= $(addprefix $(obj),$(SOBJS))
 $(LIB):	$(obj).depend $(OBJS) $(SOBJS)
 	$(call cmd_link_o_target, $(OBJS))
 
-clean:
-	rm -f $(SOBJS) $(OBJS)
-
-distclean:	clean
-	rm -f $(LIB) core *.bak .depend
-
 #########################################################################
 
 # defines $(obj).depend target
diff --git a/board/xilinx/ppc440-generic/Makefile b/board/xilinx/ppc440-generic/Makefile
index ed2cf9f..5d2848d 100644
--- a/board/xilinx/ppc440-generic/Makefile
+++ b/board/xilinx/ppc440-generic/Makefile
@@ -42,12 +42,6 @@  SOBJS	:= $(addprefix $(obj),$(SOBJS))
 $(LIB):	$(obj).depend $(OBJS) $(SOBJS)
 	$(call cmd_link_o_target, $(OBJS))
 
-clean:
-	rm -f $(SOBJS) $(OBJS)
-
-distclean:	clean
-	rm -f $(LIB) core *.bak .depend
-
 #########################################################################
 
 # defines $(obj).depend target
diff --git a/board/xm250/Makefile b/board/xm250/Makefile
index 4e86cc2..6a0cca0 100644
--- a/board/xm250/Makefile
+++ b/board/xm250/Makefile
@@ -33,12 +33,6 @@  OBJS	:= $(addprefix $(obj),$(COBJS))
 $(LIB):	$(obj).depend $(OBJS)
 	$(call cmd_link_o_target, $(OBJS))
 
-clean:
-	rm -f $(OBJS)
-
-distclean:	clean
-	rm -f $(LIB) core *.bak $(obj).depend
-
 #########################################################################
 
 # defines $(obj).depend target
diff --git a/board/zeus/Makefile b/board/zeus/Makefile
index 1ed0265..b5b506a 100644
--- a/board/zeus/Makefile
+++ b/board/zeus/Makefile
@@ -35,12 +35,6 @@  SOBJS	:= $(addprefix $(obj),$(SOBJS))
 $(LIB):	$(OBJS) $(SOBJS)
 	$(call cmd_link_o_target, $(OBJS) $(SOBJS))
 
-clean:
-	rm -f $(SOBJS) $(OBJS)
-
-distclean:	clean
-	rm -f $(LIB) core *.bak $(obj).depend
-
 #########################################################################
 
 # defines $(obj).depend target
diff --git a/board/zipitz2/Makefile b/board/zipitz2/Makefile
index 16eea07..7bd542b 100644
--- a/board/zipitz2/Makefile
+++ b/board/zipitz2/Makefile
@@ -36,12 +36,6 @@  OBJS	:= $(addprefix $(obj),$(COBJS))
 $(LIB):	$(obj).depend $(OBJS)
 	$(call cmd_link_o_target, $(OBJS))
 
-clean:
-	rm -f $(OBJS)
-
-distclean:	clean
-	rm -f $(LIB) core *.bak $(obj).depend
-
 #########################################################################
 
 # defines $(obj).depend target
diff --git a/board/zpc1900/Makefile b/board/zpc1900/Makefile
index 9079aad..d9039f6 100644
--- a/board/zpc1900/Makefile
+++ b/board/zpc1900/Makefile
@@ -34,12 +34,6 @@  SOBJS	:= $(addprefix $(obj),$(SOBJS))
 $(LIB):	$(obj).depend $(OBJS)
 	$(call cmd_link_o_target, $(OBJS))
 
-clean:
-	rm -f $(SOBJS) $(OBJS)
-
-distclean:	clean
-	rm -f $(LIB) core *.bak $(obj).depend
-
 #########################################################################
 
 # defines $(obj).depend target