On Fri, Sep 4, 2015 at 12:45 PM, Alexey Brodkin <alexey.brod...@synopsys.com> wrote: > Hi Jonas, > > On Fri, 2015-09-04 at 12:40 +0200, Jonas Gorski wrote: >> Hi, >> >> On Fri, Sep 4, 2015 at 12:35 PM, Alexey Brodkin >> > If one of my proposals above ok? >> > For example this one? >> > ------->8-------- >> > * target/linux/arcv1 (or arc700) >> > * target/linux/arcv2 (or archs38) >> > ------->8-------- >> > >> > In this scheme we do have different architectures with incompatible >> > tools and binaries. >> >> Right, although I would think >> >> target/linux/arc/arcv1/ >> target/linux/arc/arcv2/ >> >> would be better, as surely they will share all the driver options, and >> only differ in the selected cpu. Also that would mean you/we only have >> one set of kernel patches to maintain. > > Agree. > So then what about boards? Where should they be placed in this hierarchy? > Will it be something like that? > > * target/linux/arc/arcv1/axs101 (or "axs10x" for uniformity) > /nsim_700 (or "nsim" for uniformity) > * target/linux/arc/arcv2/axs103 (or "axs10x") > /nsim_hs (or "nsim")
Boards usually don't have their own directories, you would define profiles in target/linux/arc/<subtarget>/profiles. These are usually grouped by manufacturer, so a synopsis.mk would contain all reference/development boards directly offered by you. It is also common to provide a "Default" / "Generic" profile for building all boards at once, which has a reasonable set of packages (mostly kmods) to include that cover the most common devices found on the boards (e.g. if most boards have usb, it should include the usb modules etc). Within your target/linux/arc/base-files you would use a runtime detection mechanism for determining the board at first boot to generate an appropriate network config etc. Since you are using device tree, you can easily use /proc/device-tree/model (or compatible) for identifying the board you are running on. The most recent iteration of setup-default-config uses base-files/etc/board.d/ (see ramips), and the most common is setting up through base-files/etc/uci-defaults/ scripts. I can't really give you much information about the former, since I haven't used it myself. Jonas _______________________________________________ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel