Robert P. J. Day wrote: > i was curious about what it would take to build only the appropriate > toolchain for the moment from a fresh checkout of openwrt (and whether > that's even a reasonable question to ask). I think it's reasonable to ask. I did plan on making it possible to separate out the toolchain from the rest of the build system to make it installable, globally or locally (for the user).
[...] > ah, as i've mentioned in a posting some time back, openwrt insists > on building and using its own "sed" even if one is already available, > so i just hacked the tools build to build only "sed" as an experiment, > then "make tools/install" to get that locally-built "sed", and once > again took a shot at: > > $ make toolchain/install > > and, at the moment, the build is humming along nicely. which inspires > the following questions: > > * should i expect to be able to build a toolchain from a fresh > checkout? given that there is a "toolchain/install" target, one > concludes that this should be legal. > > * should i need to "make tools/install" first? AFAICT, the only > reason you need to do that is to get "sed", and if the build process > was smart enough to use the local "sed" if it was available, that step > wouldn't be necessary. I will fix the sed thing soon. the $(SED) variable does not need to point to the full path of the sed in the host staging dir or the toolchain dir, since those are included in $(TARGET_PATH) already. > * finally, what is the list of menuconfig options that might affect > the toolchain build, and once i build that toolchain, can i come back > later and finish the configuration without having to re-do any of that > earlier work? in short, once i have a toolchain, can i just pick up > where i left off to finish configuring and building my loadable image? Theoretically yes, but there are a few options not currently present in the toolchain directory name, so undetected after config changes: - binutils version - uClibc version (might have changed by svn up) Other than that, it should work. - Felix _______________________________________________ openwrt-devel mailing list openwrt-devel@lists.openwrt.org http://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel