Hi All, in order to avoid the absoluted-path issue, I suggest to use the script wrapper.sh (used to create the toolchain target).
https://dev.openwrt.org/browser/trunk/target/toolchain/files/wrapper.sh Can we integrate this script also into the SDK target? thanks and best regards, luigi On Sun, Feb 21, 2010 at 3:49 PM, Bas Mevissen <ab...@basmevissen.nl> wrote: > On 02/19/2010 08:08 PM, Felix Fietkau wrote: > >> I disagree with the way manufacturers typically set up board support >> packages. Often you have to install something as root, which is annoying >> for people that only have user accounts on some machines. Often you can >> only have one globally installed instance of the SDK, which makes it >> annoying to support multiple different versions, or even just multiple >> minor variations of the toolchain. >> > > That's true, but for most of people it is a convenient way to just have > to install an SDK and start developing. > > One issue with pre-compiled SDK's is gcc hardcoded absolute paths to > libraries that make relocation difficult. There are scripts that change > the absolute paths to relative one. Then it is possible to install a > precompiled SDK in the user accessible location you want. > > With OpenWRT, it is possible to have multiple different version > installed at the same time. You can simply choose a different location > for every variant where you build OpenWRT, e.g. build one in > /opt/OpenWRT/<platform>/<variant1> and another one in > /opt/OpenWRT/<platform>/<variant2> > > By sourcing a (to be written) script say > /opt/OpenWRT/<platform>/<the_variant>/settings.rc you switch between > different variants. > >> Why do you want to call it outside of the tree? You can keep your >> packages as a separate feed, which makes it easy to keep track of your >> own work without having to fully integrate it into the OpenWrt tree. >> > > Personally, I like a complete separation between open source and > propriety code. So when developing propriety code which uses OpenWRT as > a platform, I prefer to use a fixed tree of OpenWRT stuff (packaged and > installed somewhere) and have an entirely separate tree of propriety > code in which I can simply call "make". Then the resulting binaries, > kmods and images should land somewhere in my propriety tree. > > Please note that I'm not saying that the system with the feeds is not > working properly! I just want to offer an OpenWRT based SDK for a > certain board (including kernel headers and .config actually) as an easy > to install package and an archive with only the propriety stuff. > > One then only needs to install the SDK, unpack the archive with the > propriety code and run make. > > Bas. > _______________________________________________ > openwrt-devel mailing list > openwrt-devel@lists.openwrt.org > https://lists.openwrt.org/mailman/listinfo/openwrt-devel > -- Luigi 'Comio' Mantellini R&D - Software Industrie Dial Face S.p.A. Via Canzo, 4 20068 Peschiera Borromeo (MI), Italy Tel.: +39 02 5167 2813 Fax: +39 02 5167 2459 web: www.idf-hit.com mail: luigi.mantell...@idf-hit.com _______________________________________________ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel