On Fri, 22 Apr 2011, Andy Green wrote: > On 04/21/2011 07:47 PM, Somebody in the thread at some point said: > > On Thu, 21 Apr 2011, Andy Green wrote: > > > > > On 04/21/2011 07:08 PM, Somebody in the thread at some point said: > > > > > > > > > make ARCH=arm defconfig > > > > > > cat arch/arm/configs/omap4_defconfig>>.config > > > > > > make ARCH=arm oldnoconfig > > > > > > > > make omap4_defconfig > > > > > > Wow that is a lot simpler... if you know it. > > > > > > When trying to figure this out I googled the original patch that added the > > > savedefconfig and it doesn't mention this Makefile magic; I guess it was > > > added > > > later. > > > > In fact, this has been there almost forever. The rule is in > > scripts/kconfig/Makefile on line 354. > > Still, the fact is before you can just copy a whole config from > arch/arm/configs to be .config and vice-versa which has been my usage pattern. > Now with these optimized defconfigs, that doesn't work; it doesn't hurt to > document how to use the new way (even better with your make target method).
Sure. And you can still copy arch/arm/configs/foo_defconfig to .config and it should work (maybe a "make oldconfig" needed not to be prompted for all missing options). But "make foo_defconfig" is shorter. > It's possible I'm the only guy who missed the day at school where they talked > about arbitrary defconfig targets in Makefile but I doubt it. Well, most people are not aware of those goodies, so don't feel ashamed. I'm sure you weren't alone at the beach that day. ;-) Nicolas _______________________________________________ linaro-dev mailing list linaro-dev@lists.linaro.org http://lists.linaro.org/mailman/listinfo/linaro-dev