On 04/12/2018 at 19:36, Rob Herring wrote: > Olof, Arnd, > > I've put together a script to move the dts files and update the > makefiles. It doesn't handle files not following a common prefix which > isn't many and some includes within the dts files will need some fixups > by hand. > > MAINTAINERS will also need updating. > > A few questions: > > Do we want to move absolutely everything to subdirs? There's quite a > few platforms with only 1-2 platforms. I haven't added these to the > list yet, but can. > > Do any vendors need another level of directories? davinci, omap, nspire, > etc. for TI for example. > > What to do with armv7m.dtsi? I guess it should remain and we just fixup > the include. There may be a few other cross vendor things. > > > Sub-arch maintainers, > 'vendor_map' below is the mapping of file prefix to new subdirectory > (the SoC vendor prefix). Please comment if there are any issues. It'll certainly break some of our scripts (CI, building scripts, overlay makefiles, etc.). We already experienced it when adding the "dts" directory. But if it's needed... > 8<----------------------------------------------------------- > #!/usr/bin/env python3 > > import os > import re > from git import Git > import glob > > vendor_map = { [..] > 'integ' : 'arm', > 've' : 'arm', > 'aspeed' : 'aspeed', > 'at91' : 'atmel', As it's a new directory, what about creating a "microchip" one as it's our vendor's name now. > 'sama' : 'atmel', If desired, you can extend to sama5d for the current files. Adding the entry 'sam9' : "microchip", can be future proof... Best regards, -- Nicolas Ferre